PG::UndefinedTable: ERROR: relation "dce_lti_users" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_users"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "dce_lti_users" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_users"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "dce_lti_users" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_users"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "dce_lti_users" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_users"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "dce_lti_users" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_users"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "dce_lti_users" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_users"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "dce_lti_users" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_users"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "dce_lti_users" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_users"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "dce_lti_users" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_users"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 18:05:54.379892"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 18:05:54.379892"]]  (2.2ms) COMMIT DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.7ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:15:58.153398"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:15:58.153398"]]  (4.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:15:58.161951"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:15:58.161951"]]  (2.4ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:15:58.167032"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:15:58.167032"]]  (2.2ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:15:58.171500"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 18:15:58.171500"]]  (2.2ms) COMMIT DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:15:58.176252"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 18:15:58.176252"]]  (2.3ms) COMMIT DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]] DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1  (0.1ms) ROLLBACK DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1  (0.1ms) ROLLBACK DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1  (0.1ms) ROLLBACK DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1  (0.1ms) ROLLBACK DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1  (0.1ms) ROLLBACK DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (1.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 18:36:50.266740"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 18:36:50.266740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:36:50.276580"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 18:36:50.276580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 8]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:36:50.279512"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 18:36:50.279512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:36:50.282843"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:36:50.282843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:36:50.287215"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:36:50.287215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:36:50.289987"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:36:50.289987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:37:07.899940"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:37:07.899940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:37:07.905890"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:37:07.905890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:37:07.909721"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:37:07.909721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 18:37:07.924904"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 18:37:07.924904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:37:07.930850"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 18:37:07.930850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 17]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:37:07.933728"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 18:37:07.933728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 18]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:32.246330"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:41:32.246330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:32.253455"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:41:32.253455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:32.256070"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:41:32.256070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 18:41:32.272594"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 18:41:32.272594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:32.278783"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 18:41:32.278783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 23]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:32.281561"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 18:41:32.281561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 24]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:59.006880"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 18:41:59.006880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:59.012884"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 18:41:59.012884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:59.015685"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:41:59.015685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:59.018811"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:41:59.018811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:41:59.022857"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:41:59.022857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 18:41:59.027329"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 18:41:59.027329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:54:21.526448"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:54:21.526448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:54:21.533302"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:54:21.533302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:54:21.536050"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 18:54:21.536050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:54:21.541059"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 18:54:21.541059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 18:54:21.545361"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 18:54:21.545361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 18:54:21.558503"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 18:54:21.558503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:16:17.851156"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 19:16:17.851156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 7]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:16:17.858620"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 19:16:17.858620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 8]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 19:16:17.864486"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 19:16:17.864486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:16:17.884265"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:16:17.884265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:16:17.887732"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:16:17.887732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:16:17.891412"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:16:17.891412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.6ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.4ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 19:48:01.806577"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 19:48:01.806577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:01.816165"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 19:48:01.816165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 14]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:01.819543"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 19:48:01.819543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:01.824483"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:48:01.824483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:01.827002"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:48:01.827002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:01.829418"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:48:01.829418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:40.163392"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 19:48:40.163392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:40.171012"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 19:48:40.171012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:40.174041"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:48:40.174041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:40.177169"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:48:40.177169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:48:40.179611"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:48:40.179611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 19:48:40.186135"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 19:48:40.186135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:50:24.456311"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:50:24.456311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:50:24.462358"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:50:24.462358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:50:24.464762"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 19:50:24.464762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 19:50:24.480167"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 19:50:24.480167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:50:24.486947"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 19:50:24.486947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 19:50:24.489648"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 19:50:24.489648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:07:23.862881"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:07:23.862881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:07:23.866594"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:07:35.258839"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:07:35.258839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:07:35.262625"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 23ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:10:52.668588"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:10:52.668588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:10:52.672578"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:11:40.148508"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:11:40.148508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:11:40.152285"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:12:40.649971"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:12:40.649971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:12:40.653707"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 4ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 4ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:13:39.797388"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:13:39.797388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:13:39.801599"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 24ms (ActiveRecord: 3.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:14:26.377229"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:14:26.377229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:14:26.381077"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:15:41.803996"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:15:41.803996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:15:41.807701"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 3.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:15:45.289254"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 20:15:45.289254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:45.295377"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:15:45.295377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:45.298730"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:15:45.298730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:45.302795"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:15:45.302795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:45.305470"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 20:15:45.305470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 19]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:45.308576"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 20:15:45.308576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 20]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:15:45.369359"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:15:45.369359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:15:45.371361"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 32ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:15:56.196379"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:15:56.196379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:15:56.198572"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:15:56.258093"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 20:15:56.258093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:56.267382"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 20:15:56.267382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 24]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:56.270286"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 20:15:56.270286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 25]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:56.275627"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:15:56.275627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:56.278630"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:15:56.278630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:15:56.280935"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:15:56.280935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:17:48.340610"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:17:48.340610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:17:48.344439"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:17:48.393568"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 20:17:48.393568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:17:48.396804"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 20:17:48.396804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:17:48.399600"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:17:48.399600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:17:48.403493"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:17:48.403493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:17:48.408252"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:17:48.408252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:17:48.415218"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 20:17:48.415218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:20:51.055475"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:20:51.055475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:20:51.060684"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 20ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:20:51.095551"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 20:20:51.095551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.9ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:20:51.100123"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 20:20:51.100123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:20:51.129606"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:20:51.129606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:20:51.133256"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:20:51.133256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:20:51.136039"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:20:51.136039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:20:51.141884"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 20:20:51.141884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:24:24.029285"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:24:24.029285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:24:24.034973"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:24:24.034973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:24:24.038065"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:24:24.038065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:24:24.041252"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 20:24:24.041252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:24:24.045202"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 20:24:24.045202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:24:24.057155"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 20:24:24.057155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:24:24.084501"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:24:24.084501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:24:24.086295"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:42:06.527411"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:42:06.527411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:42:06.531588"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:42:06.531588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:42:06.533966"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-03 20:42:06.533966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:42:06.537180"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-03 20:42:06.537180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-03 20:42:06.541243"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-03 20:42:06.541243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:42:06.549936"], ["lti_user_id", "a"], ["updated_at", "2014-10-03 20:42:06.549936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-03 20:42:06.566599"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-03 20:42:06.566599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-03 20:42:06.568335"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 24ms (Views: 24.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 13:53:17.356149"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 13:53:17.356149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 13:53:17.362216"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 31ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:53:17.404686"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 13:53:17.404686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:53:17.409121"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 13:53:17.409121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:53:17.412215"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 13:53:17.412215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:53:17.415207"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 13:53:17.415207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:53:17.417949"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 13:53:17.417949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 13:53:17.424121"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 13:53:17.424121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 13:54:07.565404"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 13:54:07.565404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 13:54:07.567761"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 23ms (Views: 22.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 13:54:07.626831"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 13:54:07.626831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:54:07.636062"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 13:54:07.636062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:54:07.639082"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 13:54:07.639082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:54:07.641706"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 13:54:07.641706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:54:07.645924"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 13:54:07.645924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 13:54:07.648411"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 13:54:07.648411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 13:59:25.698757"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 13:59:25.698757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 13:59:25.702524"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 23ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:01:38.298868"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:01:38.298868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:01:38.302884"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 23ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:09:02.705023"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:09:02.705023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:09:02.709227"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:09:14.565490"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:09:14.565490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:09:14.569436"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:11:50.334873"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:11:50.334873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:11:50.338833"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 21ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:13:04.973155"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:13:04.973155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:13:04.976776"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:13:08.321549"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:13:08.321549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:13:08.325507"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 3.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:13:08.405887"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 14:13:08.405887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:13:08.415435"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 14:13:08.415435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:13:08.418367"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 14:13:08.418367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 17]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:13:08.422934"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:13:08.422934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:13:08.425389"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:13:08.425389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:13:08.427621"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:13:08.427621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:18:48.871955"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:18:48.871955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:18:48.877340"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:18:48.877340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:18:48.880186"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:18:48.880186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:18:48.883999"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 14:18:48.883999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 24]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:18:48.888294"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 14:18:48.888294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 25]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:18:48.904210"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 14:18:48.904210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:18:48.926160"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:18:48.926160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:18:48.928115"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:19:00.044228"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 14:19:00.044228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:00.053924"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 14:19:00.053924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 29]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:00.056797"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 14:19:00.056797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 30]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:00.059775"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:19:00.059775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:00.063972"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:19:00.063972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:00.066684"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:19:00.066684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:19:00.121084"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:19:00.121084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:19:00.122817"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (4.1ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:19:11.380376"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:19:11.380376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:19:11.382649"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.6ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:19:11.451524"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 14:19:11.451524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:11.457453"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:19:11.457453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:11.461673"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:19:11.461673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (3.6ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:11.467912"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:19:11.467912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:11.470784"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 14:19:11.470784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 40]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:11.473447"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 14:19:11.473447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 41]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:19:14.003280"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:19:14.003280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:19:14.006724"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 20ms (ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:14.045864"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:19:14.045864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:14.075146"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:19:14.075146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:14.078732"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:19:14.078732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:19:14.091286"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 14:19:14.091286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:14.097220"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 14:19:14.097220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 47]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:19:14.100108"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 14:19:14.100108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 48]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:26:12.752418"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:26:12.752418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:26:12.756305"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:26:12.812900"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 14:26:12.812900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:26:12.816001"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 14:26:12.816001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:26:12.820729"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 14:26:12.820729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:26:12.838807"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:26:12.838807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:26:12.841420"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:26:12.841420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:26:12.844024"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:26:12.844024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:32:51.368941"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:32:51.368941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:32:51.372939"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:32:51.398468"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:32:51.398468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:32:51.402023"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:32:51.402023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:32:51.404413"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:32:51.404413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:32:51.407598"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 14:32:51.407598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:32:51.410266"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 14:32:51.410266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:32:51.447290"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 14:32:51.447290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.6ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.6ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:34:34.921882"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 14:34:34.921882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 14:34:34.926102"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:34:34.982507"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:34:34.982507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:34:34.986406"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:34:34.986406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:34:34.990238"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 14:34:34.990238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:34:34.993311"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 14:34:34.993311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 14:34:34.996064"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 14:34:34.996064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 13]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 14:34:35.007261"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 14:34:35.007261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:04:34.439598"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:04:34.439598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:04:34.445601"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:04:34.445601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:04:34.448340"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:04:34.448340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:04:34.451724"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 15:04:34.451724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 18]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:04:34.455447"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 15:04:34.455447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 19]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:04:34.488983"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 15:04:34.488983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:04:34.511053"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 15:04:34.511053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 15:04:34.512852"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:27:14.326538"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 15:27:14.326538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 22]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:27:14.332466"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 15:27:14.332466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 23]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:27:14.335466"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:27:14.335466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:27:14.338658"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:27:14.338658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:27:14.341049"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:27:14.341049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:27:14.346499"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 15:27:14.346499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:27:14.398547"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 15:27:14.398547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 15:27:14.400582"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:28:33.523831"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 15:28:33.523831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:28:33.534674"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 15:28:33.534674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 30]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:28:33.537999"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 15:28:33.537999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 31]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:28:33.540943"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:28:33.540943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:28:33.545484"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:28:33.545484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:28:33.548250"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:28:33.548250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:28:33.557802"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 15:28:33.557802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 15:28:33.559848"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:29:57.519918"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 15:29:57.519918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 15:29:57.522454"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:29:57.555244"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 15:29:57.555244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:29:57.566613"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 15:29:57.566613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:29:57.569514"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 15:29:57.569514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:29:57.573860"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:29:57.573860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:29:57.576515"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:29:57.576515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:29:57.579870"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:29:57.579870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:32:38.649607"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:32:38.649607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:32:38.656522"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:32:38.656522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:32:38.659369"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:32:38.659369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:32:38.700285"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 15:32:38.700285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:32:38.706212"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 15:32:38.706212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:32:38.708958"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 15:32:38.708958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:32:38.743233"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 15:32:38.743233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 15:32:38.745082"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:33:13.417579"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 15:33:13.417579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 15) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 15 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 15:33:13.421416"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 3.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:33:13.502014"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 15:33:13.502014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:33:13.506384"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 15:33:13.506384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 17]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:33:13.513206"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 15:33:13.513206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:33:13.527912"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:33:13.527912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:33:13.532375"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:33:13.532375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:33:13.534817"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:33:13.534817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:34:19.490825"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 15:34:19.490825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 15:34:19.493423"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:34:19.522483"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 15:34:19.522483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 23]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:34:19.525470"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 15:34:19.525470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 24]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:34:19.528250"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:34:19.528250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:34:19.531843"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:34:19.531843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:34:19.534340"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:34:19.534340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:34:19.539612"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 15:34:19.539612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:35:31.473381"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 15:35:31.473381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 15:35:31.477391"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/a_url Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:35:31.540704"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:35:31.540704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:35:31.544478"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:35:31.544478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:35:31.547810"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 15:35:31.547810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:35:31.550347"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 15:35:31.550347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 33]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 15:35:31.553117"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 15:35:31.553117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 34]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 15:35:31.564574"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 15:35:31.564574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 18:59:04.276611"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 18:59:04.276611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:04.288033"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 18:59:04.288033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 37]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:04.291247"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 18:59:04.291247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 38]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:04.296092"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 18:59:04.296092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:04.299042"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 18:59:04.299042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:04.301464"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 18:59:04.301464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 18:59:04.326226"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 18:59:04.326226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 18:59:04.328303"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 18:59:19.520500"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 18:59:19.520500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 18:59:19.522738"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 18:59:19.555774"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 18:59:19.555774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:19.564896"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 18:59:19.564896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:19.567663"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 18:59:19.567663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:19.571974"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 18:59:19.571974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:19.574324"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 18:59:19.574324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 18:59:19.576613"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 18:59:19.576613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 18:59:37.125982"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 18:59:37.125982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 18:59:37.130039"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 3.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:01:05.892206"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 19:01:05.892206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 19:01:05.895654"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 21ms (ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:01:40.147180"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 19:01:40.147180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 19:01:40.151193"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 3.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:03:21.738698"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 19:03:21.738698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 19:03:21.742565"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 3.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:06:00.929184"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 19:06:00.929184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 19:06:00.932746"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:06:10.999428"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 19:06:10.999428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 19:06:11.004556"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 20ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 27ms (Views: 26.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:06:57.682532"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 19:06:57.682532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 19:06:57.686078"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:03.768110"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 19:07:03.768110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:03.773592"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 19:07:03.773592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:03.777343"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 19:07:03.777343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:07:03.814933"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 19:07:03.814933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:03.820795"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 19:07:03.820795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 19]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:03.823516"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 19:07:03.823516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 20]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:07:03.859524"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 19:07:03.859524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 19:07:03.861546"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:08.280145"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 19:07:08.280145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:08.285521"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 19:07:08.285521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:08.288300"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 19:07:08.288300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:08.291892"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 19:07:08.291892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 25]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:07:08.295944"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 19:07:08.295944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 26]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:07:08.329576"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 19:07:08.329576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:07:08.356526"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 19:07:08.356526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 19:07:08.358309"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:11:37.071572"], ["lti_user_id", "a"], ["updated_at", "2014-10-06 19:11:37.071572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:11:37.080684"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 19:11:37.080684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:11:37.083324"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 19:11:37.083324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:11:37.085830"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-06 19:11:37.085830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:11:37.088296"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-06 19:11:37.088296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 33]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-06 19:11:37.091543"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-06 19:11:37.091543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 34]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-06 19:11:37.138814"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-06 19:11:37.138814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-06 19:11:37.141683"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.6ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 17ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 8340ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.7ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 13:57:21.673624"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 13:57:21.673624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 36]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 13:57:21.680110"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 13:57:21.680110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 37]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 13:57:21.683304"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 13:57:21.683304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 13:57:21.686707"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 13:57:21.686707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 13:57:21.689790"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 13:57:21.689790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 13:57:21.694384"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 13:57:21.694384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 13:57:21.742044"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 13:57:21.742044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 13:57:21.744128"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:10:59.892278"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:10:59.892278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:10:59.896110"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:10:59.983863"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:10:59.983863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:10:59.989777"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:10:59.989777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:10:59.994231"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:10:59.994231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:10:59.996636"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:10:59.996636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:10:59.999335"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:10:59.999335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 48]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:11:00.002523"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:11:00.002523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 49]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:24:56.471159"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:24:56.471159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 50) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 50 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:24:56.498903"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 43ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:24:56.530742"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:24:56.530742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:24:56.534481"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:24:56.534481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:24:56.537109"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:24:56.537109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:24:56.541296"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:24:56.541296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 54]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-9' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:24:56.544554"], ["lti_user_id", "user_id-9"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:24:56.544554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 55]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (1.8ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:24:56.559495"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:24:56.559495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:30:45.897492"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:30:45.897492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:30:45.901648"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:30:45.901648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:30:45.904570"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:30:45.904570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:30:45.907953"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:30:45.907953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:30:45.912276"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:30:45.912276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:30:45.921448"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:30:45.921448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:30:45.939864"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:30:45.939864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:30:45.941566"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:32:42.809923"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:32:42.809923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:32:42.813784"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 3.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:32:45.899860"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:32:45.899860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:32:45.913574"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:32:45.913574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:32:45.916488"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:32:45.916488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:32:45.919269"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:32:45.919269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:32:45.923854"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:32:45.923854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:32:45.926900"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:32:45.926900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:32:45.956999"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:32:45.956999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 15) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 15 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:32:45.958767"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/sessions/create Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:33:49.196816"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:33:49.196816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:33:49.200816"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 22ms (ActiveRecord: 3.5ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:34:02.604693"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:34:02.604693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:34:02.608356"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 21ms (ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:34:02.658383"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:34:02.658383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:34:02.659788"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:34:48.210347"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:34:48.210347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:34:48.214373"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 3.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:34:48.234239"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:34:48.234239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:34:48.235993"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:34:48.272626"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:34:48.272626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:34:48.274041"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:34:57.843834"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:34:57.843834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:34:57.848249"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 3.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:34:57.872410"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:34:57.872410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:34:57.873965"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:34:57.906087"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:34:57.906087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:34:57.907720"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (4.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:35:17.765672"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:35:17.765672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:35:17.769153"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:35:17.781038"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:35:17.781038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:35:17.782272"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.8ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:35:17.789093"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:35:17.789093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:35:17.790714"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:35:17.809419"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:35:17.809419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 28]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:35:17.812951"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:35:17.812951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 29]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:35:17.816150"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:35:17.816150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:35:17.819608"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:35:17.819608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:35:17.821836"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:35:17.821836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:35:17.826877"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:35:17.826877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:39:53.920597"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:39:53.920597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:53.928458"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:39:53.928458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:53.933497"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:39:53.933497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:53.936300"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:39:53.936300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:53.938720"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:39:53.938720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 38]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:53.941676"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:39:53.941676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 39]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:39:53.949314"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:39:53.949314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 40) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 40 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:39:53.951403"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:39:53.972272"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:39:53.972272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 41) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 41 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:39:53.973558"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:39:53.981015"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:39:53.981015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:39:53.982661"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:39:57.363253"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:39:57.363253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:39:57.365475"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:39:57.391865"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:39:57.391865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:39:57.393127"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:39:57.397713"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:39:57.397713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 45) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 45 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:39:57.399050"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:57.420039"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:39:57.420039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 46]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:57.423396"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:39:57.423396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 47]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:39:57.428352"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:39:57.428352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:57.440963"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:39:57.440963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:57.445367"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:39:57.445367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:39:57.447731"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:39:57.447731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:40:27.891777"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:40:27.891777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 52) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 52 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:40:27.895636"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 42ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:40:27.900985"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:40:27.900985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 53) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 53 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:40:27.902307"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:40:27.906898"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:40:27.906898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 54) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 54 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:40:27.908234"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:27.940850"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:40:27.940850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 55]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:27.944028"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:40:27.944028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 56]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:27.946790"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:40:27.946790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:27.950525"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:40:27.950525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:27.953579"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:40:27.953579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:40:27.959492"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:40:27.959492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:40:57.243875"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:40:57.243875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:57.256568"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:40:57.256568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 62]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:57.259528"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:40:57.259528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 63]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:57.262194"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:40:57.262194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:57.266390"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:40:57.266390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:40:57.268810"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:40:57.268810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:40:57.278502"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:40:57.278502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 67) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 67 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:40:57.280282"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:40:57.287790"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:40:57.287790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 68) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 68 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:40:57.289345"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:40:57.296353"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:40:57.296353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 69) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 69 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:40:57.297730"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:53:08.945703"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:53:08.945703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 70) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 70 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:53:08.948231"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:53:08.957395"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:53:08.957395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 71) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 71 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:53:08.958664"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:53:08.963017"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:53:08.963017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 72) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 72 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:53:08.964264"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:53:08.995878"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:53:08.995878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:09.004507"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:53:09.004507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 74]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:09.007263"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:53:09.007263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 75]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:09.011965"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:53:09.011965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:09.014416"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:53:09.014416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:09.016914"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:53:09.016914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:33.412088"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:53:33.412088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:33.417280"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:53:33.417280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:33.420739"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:53:33.420739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:33.423378"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:53:33.423378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:53:33.427184"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:53:33.427184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:53:33.460564"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:53:33.460564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:53:33.479446"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:53:33.479446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:53:33.481253"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:53:33.507279"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:53:33.507279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:53:33.508689"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:53:33.518919"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:53:33.518919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:53:33.520301"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:55:11.298992"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:55:11.298992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:55:11.303220"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:55:11.303220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:55:11.305991"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 14:55:11.305991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:55:11.309412"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 14:55:11.309412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 14:55:11.314095"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 14:55:11.314095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:55:11.322747"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 14:55:11.322747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:55:11.340417"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:55:11.340417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:55:11.342323"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:55:11.353771"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:55:11.353771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:55:11.355258"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 14:55:11.362111"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 14:55:11.362111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 14:55:11.363318"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:04:28.315233"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 15:04:28.315233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:04:28.321365"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 15:04:28.321365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:04:28.324348"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 15:04:28.324348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:04:28.327391"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 15:04:28.327391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:04:28.329655"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 15:04:28.329655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 15:04:28.334845"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 15:04:28.334845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 15:04:28.385405"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 15:04:28.385405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 15:04:28.387206"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 15:04:28.394694"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 15:04:28.394694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 15:04:28.395933"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 15:04:28.406669"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 15:04:28.406669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 15:04:28.408268"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (1.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:06:50.369393"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 15:06:50.369393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:06:50.374404"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 15:06:50.374404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:06:50.377027"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 15:06:50.377027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 15:06:50.390958"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 15:06:50.390958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:06:50.396679"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 15:06:50.396679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 23]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 15:06:50.399489"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 15:06:50.399489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 24]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 15:06:50.406180"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 15:06:50.406180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 15:06:50.407975"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 15:06:50.430552"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 15:06:50.430552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 15:06:50.431899"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 15:06:50.438628"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 15:06:50.438628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 15:06:50.439934"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 16:59:43.391171"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 16:59:43.391171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 16:59:43.393675"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 16:59:43.403045"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 16:59:43.403045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 16:59:43.404500"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 16:59:43.414111"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 16:59:43.414111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 16:59:43.415741"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 16:59:43.439470"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 16:59:43.439470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 31]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 16:59:43.443300"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 16:59:43.443300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 32]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 16:59:43.449763"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 16:59:43.449763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 16:59:43.463409"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 16:59:43.463409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 16:59:43.466853"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 16:59:43.466853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 16:59:43.470206"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 16:59:43.470206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:01:59.806641"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:01:59.806641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:01:59.810757"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 45ms (ActiveRecord: 3.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:01:59.826842"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:01:59.826842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:01:59.828193"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:01:59.832982"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:01:59.832982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:01:59.834519"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:01:59.860521"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:01:59.860521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:01:59.871089"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:01:59.871089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 41]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:01:59.874600"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:01:59.874600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 42]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:01:59.878925"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:01:59.878925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:01:59.881251"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:01:59.881251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:01:59.883299"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:01:59.883299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:05:03.088877"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:05:03.088877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:05:03.094368"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:05:03.094368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:05:03.097751"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:05:03.097751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:05:03.135592"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:05:03.135592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:05:03.141649"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:05:03.141649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 50]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:05:03.144589"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:05:03.144589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 51]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:05:03.179732"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:05:03.179732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 52) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 52 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:05:03.181503"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:05:03.208095"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:05:03.208095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 53) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 53 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:05:03.209579"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:05:03.214016"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:05:03.214016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 54) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 54 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:05:03.215208"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:05:51.357383"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:05:51.357383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 55 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:05:51.361068"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:05:51.367393"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:05:51.367393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 56) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 56 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:05:51.368853"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:05:51.375738"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:05:51.375738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 57) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 57 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:05:51.376912"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 27ms (Views: 26.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:06:02.981300"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:06:02.981300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:06:02.985132"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:06:02.985132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:06:02.988846"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:06:02.988846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:06:03.002095"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:06:03.002095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:06:03.007991"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:06:03.007991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 62]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:06:03.011403"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:06:03.011403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 63]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:06:03.035694"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:06:03.035694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 64) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 64 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:06:03.037470"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:06:03.060616"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:06:03.060616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 65) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 65 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:06:03.061846"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:06:03.066392"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:06:03.066392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 66) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 66 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:06:03.067586"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to Completed 500 Internal Server Error in 20200ms  (0.3ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:10:37.957319"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:10:37.957319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:10:37.963909"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:10:37.963909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:10:37.966602"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:10:37.966602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:10:37.970375"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:10:37.970375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 70]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:10:37.974232"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:10:37.974232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 71]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:10:38.010520"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:10:38.010520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:10:38.033181"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:10:38.033181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 73) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 73 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:10:38.035200"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:10:38.044190"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:10:38.044190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 74) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 74 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:10:38.045840"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:10:38.050963"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:10:38.050963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 75) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 75 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:10:38.052373"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to Completed 500 Internal Server Error in 40448ms  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:11:39.179322"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:11:39.179322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 76) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 76 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:11:39.187858"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 37ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:11:39.204331"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:11:39.204331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 77) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 77 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:11:39.209529"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 14ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:11:39.225238"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:11:39.225238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 78) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 78 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:11:39.230645"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 14ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to Completed 500 Internal Server Error in 12151ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to Completed 500 Internal Server Error in 1477ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to Completed 500 Internal Server Error in 847ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:11:53.821654"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:11:53.821654"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 79]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:11:53.834400"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:11:53.834400"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 80]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:11:53.847561"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:11:53.847561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:11:53.915144"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:11:53.915144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:11:53.923970"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:11:53.923970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:11:53.937054"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:11:53.937054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (1.0ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:15:41.016623"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:15:41.016623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 85) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 85 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:15:41.042434"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 43ms (ActiveRecord: 4.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:14.607754"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:19:14.607754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:14.612475"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:19:14.612475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:14.615098"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:19:14.615098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:19:14.657297"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:19:14.657297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:14.663312"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:19:14.663312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 90]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:14.666926"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:19:14.666926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 91]]  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:19:14.702982"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:19:14.702982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 92) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 92 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:19:14.704980"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to Completed 500 Internal Server Error in 4103ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to Completed 500 Internal Server Error in 1332ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to Completed 500 Internal Server Error in 717ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to Completed 500 Internal Server Error in 731ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:19:21.684052"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:19:21.684052"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 93) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 93 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:19:21.689716"], ["user_image", #]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 15ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:19:21.705375"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:19:21.705375"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 94) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 94 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:19:21.710662"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 14ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:19:36.223215"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:19:36.223215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:36.233833"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:19:36.233833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 96]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:36.237036"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:19:36.237036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 97]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:36.239847"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:19:36.239847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:36.244308"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:19:36.244308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:19:36.246678"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:19:36.246678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:19:36.275953"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:19:36.275953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 101) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 101 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:19:36.278471"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:19:36.291105"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:19:36.291105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 102) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 102 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:19:36.292495"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:19:36.296540"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:19:36.296540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 103) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 103 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:19:36.297814"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:22:41.031032"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:22:41.031032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 104) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 104 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:22:41.034613"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 42ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:22:41.039793"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:22:41.039793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 105) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 105 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:22:41.040987"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:22:41.045238"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:22:41.045238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 106) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 106 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:22:41.046489"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:41.069448"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:22:41.069448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:41.073515"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:22:41.073515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:41.076418"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:22:41.076418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:41.080145"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:22:41.080145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 110]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:41.082896"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:22:41.082896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 111]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:22:41.094915"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:22:41.094915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:56.724893"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:22:56.724893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:56.730275"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:22:56.730275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:56.732962"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:22:56.732962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:56.736455"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:22:56.736455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 116]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:22:56.740345"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:22:56.740345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 117]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:22:56.776349"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:22:56.776349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:22:56.808823"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:22:56.808823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 119) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 119 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:22:56.810758"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:22:56.823751"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:22:56.823751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 120) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 120 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:22:56.825071"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:22:56.829263"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:22:56.829263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 121) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 121 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:22:56.830530"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to Completed 500 Internal Server Error in 4669ms  (0.3ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:02.379617"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:24:02.379617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 122]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:02.385597"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:24:02.385597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 123]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:02.388563"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:24:02.388563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:02.391644"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:24:02.391644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:02.394919"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:24:02.394919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:02.400661"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:24:02.400661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:02.452442"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:24:02.452442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 128) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 128 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:24:02.454767"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:02.484733"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:24:02.484733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 129) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 129 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:24:02.486432"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:02.494275"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:24:02.494275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 130) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 130 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:24:02.495657"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.9ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:27.011620"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:24:27.011620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:27.018121"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:24:27.018121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:27.022539"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:24:27.022539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:27.025590"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:24:27.025590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:27.028314"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:24:27.028314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 135]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:27.031039"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:24:27.031039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 136]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:27.071439"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:24:27.071439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 137) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 137 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:24:27.073514"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:27.093515"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:24:27.093515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 138) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 138 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:24:27.094893"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:27.104074"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:24:27.104074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 139) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 139 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:24:27.105369"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:30.505307"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:24:30.505307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:30.515731"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:24:30.515731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 141]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:30.518789"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:24:30.518789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 142]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:30.521500"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:24:30.521500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:30.526186"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:24:30.526186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:24:30.528965"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:24:30.528965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:30.555653"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:24:30.555653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 146) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 146 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:24:30.557752"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:30.569278"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:24:30.569278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 147) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 147 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:24:30.570601"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:24:30.574840"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:24:30.574840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 148) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 148 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:24:30.576351"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:32:17.263111"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:32:17.263111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:17.272559"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:32:17.272559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:17.275309"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:32:17.275309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:17.279213"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:32:17.279213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:17.282104"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:32:17.282104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 153]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:17.285019"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:32:17.285019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 154]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:32:17.297417"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:32:17.297417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 155) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 155 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:32:17.299259"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:32:17.318261"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:32:17.318261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 156) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 156 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:32:17.319875"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:32:17.329472"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:32:17.329472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 157) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 157 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:32:17.330799"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:39.924517"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:32:39.924517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 158]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:39.930620"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:32:39.930620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 159]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:32:39.935461"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:32:39.935461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:39.972733"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:32:39.972733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:39.976340"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:32:39.976340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:32:39.979620"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:32:39.979620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:32:40.005898"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:32:40.005898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 164) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 164 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:32:40.007751"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:32:40.023256"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:32:40.023256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 165) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 165 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:32:40.024724"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:32:40.029275"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:32:40.029275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 166) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 166 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:32:40.030429"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.8ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.7ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to Completed 500 Internal Server Error in 27240ms  (0.5ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:33:45.976061"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:33:45.976061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 167) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 167 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:33:46.001448"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 40ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:33:46.007385"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:33:46.007385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 168) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 168 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:33:46.008852"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:33:46.023951"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:33:46.023951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 169) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 169 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:33:46.025860"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:33:46.056199"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:33:46.056199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 170]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:33:46.059023"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:33:46.059023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 171]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:33:46.063757"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:33:46.063757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:33:46.077566"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:33:46.077566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:33:46.081132"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:33:46.081132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:33:46.084534"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:33:46.084534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:34:37.794802"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:34:37.794802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:34:37.800811"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:34:37.800811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:34:37.804208"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:34:37.804208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:34:37.840566"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:34:37.840566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:34:37.846974"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:34:37.846974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 180]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:34:37.850527"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:34:37.850527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 181]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:34:37.874802"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:34:37.874802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 182) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 182 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:34:37.876775"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:34:37.905313"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:34:37.905313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 183) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 183 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:34:37.906805"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:34:37.910962"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:34:37.910962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 184) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 184 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:34:37.912383"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:35:12.125948"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:35:12.125948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 185) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 185 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:35:12.130016"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 40ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:35:12.135414"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:35:12.135414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 186) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 186 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:35:12.136800"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:35:12.141234"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:35:12.141234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 187) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 187 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:35:12.142700"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:35:12.166022"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:35:12.166022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:35:12.170045"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:35:12.170045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:35:12.172698"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:35:12.172698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:35:12.176168"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:35:12.176168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 191]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:35:12.178977"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:35:12.178977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 192]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (1.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:35:12.193356"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:35:12.193356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.7ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:32.640091"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:47:32.640091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 194) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 194 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:47:32.666186"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 43ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:32.671931"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:47:32.671931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 195) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 195 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:47:32.673621"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:32.684986"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:47:32.684986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 196) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 196 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:47:32.687136"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:32.714904"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:47:32.714904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 197]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:32.718133"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:47:32.718133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 198]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:32.720793"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:47:32.720793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:32.723903"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:47:32.723903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:32.726349"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:47:32.726349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:32.734383"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:47:32.734383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:47.357201"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:47:47.357201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:47.366061"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:47:47.366061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:47.369006"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:47:47.369006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:47.371592"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:47:47.371592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:47.374621"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:47:47.374621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 207]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:47.377512"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:47:47.377512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 208]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:47.390069"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:47:47.390069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 209) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 209 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:47:47.391987"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:47.416540"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:47:47.416540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 210) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 210 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:47:47.418239"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:47.423183"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:47:47.423183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 211) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 211 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:47:47.424614"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:58.966338"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:47:58.966338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:58.972565"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:47:58.972565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:58.975268"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:47:58.975268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:59.012642"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:47:59.012642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:59.018943"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:47:59.018943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 216]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:47:59.022242"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:47:59.022242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 217]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:59.055889"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:47:59.055889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 218) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 218 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:47:59.058226"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:59.087743"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:47:59.087743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 219) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 219 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:47:59.088988"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:47:59.093275"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:47:59.093275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 220) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 220 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:47:59.094473"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:55:17.198812"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:55:17.198812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:55:17.224074"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 40ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:55:17.229248"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:55:17.229248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:55:17.230771"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:55:17.245232"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 17:55:17.245232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 17:55:17.247377"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:55:17.264543"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 17:55:17.264543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:55:17.268776"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 17:55:17.268776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:55:17.272386"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:55:17.272386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:55:17.276056"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:55:17.276056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 17:55:17.278567"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 17:55:17.278567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 17:55:17.285597"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 17:55:17.285597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 18:03:30.502797"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 18:03:30.502797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:03:30.513613"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 18:03:30.513613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:03:30.516300"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 18:03:30.516300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:03:30.518675"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 18:03:30.518675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:03:30.521316"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 18:03:30.521316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:03:30.524059"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 18:03:30.524059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 18:03:30.531290"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 18:03:30.531290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 18:03:30.533237"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 18:03:30.551083"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 18:03:30.551083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 18:03:30.552530"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 18:03:30.565517"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 18:03:30.565517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 18:03:30.566902"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:12:26.410482"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 18:12:26.410482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:12:26.416520"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 18:12:26.416520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:12:26.420283"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 18:12:26.420283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 18:12:26.459720"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 18:12:26.459720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:12:26.465525"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 18:12:26.465525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 14]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 18:12:26.468299"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 18:12:26.468299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 18:12:26.493341"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 18:12:26.493341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 18:12:26.495163"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 18:12:26.523592"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 18:12:26.523592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 18:12:26.524851"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 18:12:26.528880"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 18:12:26.528880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 18:12:26.530047"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:30.982288"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 19:41:30.982288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 19]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:30.989193"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 19:41:30.989193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 20]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:30.994625"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 19:41:30.994625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:31.033295"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 19:41:31.033295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:31.038002"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 19:41:31.038002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:31.040934"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 19:41:31.040934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:31.056634"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 19:41:31.056634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 19:41:31.058444"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:31.067347"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 19:41:31.067347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 19:41:31.068719"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:31.076848"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 19:41:31.076848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 19:41:31.078152"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:39.186620"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 19:41:39.186620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 28]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:39.191461"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 19:41:39.191461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 29]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:39.194060"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 19:41:39.194060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:39.197404"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 19:41:39.197404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:39.200444"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 19:41:39.200444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:39.206945"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 19:41:39.206945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:39.228452"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 19:41:39.228452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 19:41:39.230201"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:39.235069"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 19:41:39.235069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 19:41:39.236488"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:39.244977"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 19:41:39.244977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 36) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 36 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 19:41:39.246277"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:53.925732"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 19:41:53.925732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:53.932322"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 19:41:53.932322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:53.937521"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 19:41:53.937521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:53.940401"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 19:41:53.940401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:53.943042"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 19:41:53.943042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 41]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 19:41:53.945844"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 19:41:53.945844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 42]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:53.992896"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 19:41:53.992896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 19:41:53.994973"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:54.014368"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 19:41:54.014368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 19:41:54.015926"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 19:41:54.026228"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 19:41:54.026228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 45) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 45 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 19:41:54.027635"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:36:09.066600"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:36:09.066600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 46) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 46 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:36:09.070620"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 42ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:36:09.076386"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:36:09.076386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 47) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 47 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:36:09.077806"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:36:09.082492"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:36:09.082492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 48) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 48 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:36:09.083816"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:36:09.143863"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 20:36:09.143863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 49]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:36:09.147003"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 20:36:09.147003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 50]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:36:09.152290"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 20:36:09.152290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:36:09.167207"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:36:09.167207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:36:09.170068"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:36:09.170068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:36:09.172867"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:36:09.172867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:52:38.010634"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 20:52:38.010634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 55]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:52:38.017698"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 20:52:38.017698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 56]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:52:38.022001"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:52:38.022001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:52:38.025742"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:52:38.025742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:52:38.028639"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:52:38.028639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:52:38.034051"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 20:52:38.034051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:52:38.057849"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:52:38.057849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 61) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 61 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:52:38.059789"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:52:38.067386"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:52:38.067386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 62) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 62 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:52:38.068846"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:52:38.073528"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:52:38.073528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 63) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 63 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:52:38.074792"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:55:18.362866"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 20:55:18.362866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:55:18.373483"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 20:55:18.373483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 65]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:55:18.377054"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 20:55:18.377054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 66]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:55:18.380001"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:55:18.380001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:55:18.384972"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:55:18.384972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:55:18.387854"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:55:18.387854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:55:18.404677"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:55:18.404677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 70) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 70 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:55:18.406868"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:55:18.415882"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:55:18.415882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 71) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 71 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:55:18.417460"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:55:18.428182"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:55:18.428182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 72) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 72 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:55:18.429947"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:57:22.262287"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:57:22.262287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:57:22.266361"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 51ms (ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:57:22.292931"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:57:22.292931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:57:22.294468"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:57:22.301963"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-07 20:57:22.301963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-07 20:57:22.303575"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:57:22.331057"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:57:22.331057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:57:22.334580"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:57:22.334580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:57:22.339957"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-07 20:57:22.339957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:57:22.342984"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-07 20:57:22.342984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 7]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-07 20:57:22.346132"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-07 20:57:22.346132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 8]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-07 20:57:22.358134"], ["lti_user_id", "a"], ["updated_at", "2014-10-07 20:57:22.358134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 13:54:41.434055"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 13:54:41.434055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 13:54:41.436483"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 13:54:41.448311"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 13:54:41.448311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 13:54:41.449908"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 13:54:41.454547"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 13:54:41.454547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 13:54:41.455857"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 13:54:41.494413"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 13:54:41.494413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:54:41.505297"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 13:54:41.505297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:54:41.509025"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 13:54:41.509025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:54:41.512165"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 13:54:41.512165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:54:41.517614"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 13:54:41.517614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:54:41.520362"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 13:54:41.520362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.6ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 13:55:12.157083"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 13:55:12.157083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 13:55:12.159311"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 13:55:12.177655"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 13:55:12.177655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 13:55:12.179133"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 13:55:12.184073"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 13:55:12.184073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 13:55:12.185379"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:55:12.212551"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 13:55:12.212551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:55:12.217135"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 13:55:12.217135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:55:12.220544"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 13:55:12.220544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:55:12.223286"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 13:55:12.223286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 7]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 13:55:12.226387"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 13:55:12.226387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 8]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 13:55:12.236771"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 13:55:12.236771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 27ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:02:33.748249"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:02:33.748249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:02:33.754655"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:02:33.754655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:02:33.759193"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:02:33.759193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:02:33.761947"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:02:33.761947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:02:33.764748"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:02:33.764748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:02:33.767765"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:02:33.767765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:02:33.780443"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:02:33.780443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:02:33.782311"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:02:33.804055"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:02:33.804055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:02:33.805701"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:02:33.817005"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:02:33.817005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:02:33.818552"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:05:16.303225"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:05:16.303225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:05:16.306932"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 41ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:05:16.312413"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:05:16.312413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:05:16.313896"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:05:16.327500"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:05:16.327500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:05:16.329167"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:05:16.359008"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:05:16.359008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:05:16.368977"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:05:16.368977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 14]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:05:16.372114"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:05:16.372114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:05:16.374745"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:05:16.374745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:05:16.379124"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:05:16.379124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:05:16.381762"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:05:16.381762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:10:33.085343"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:10:33.085343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:10:33.088964"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 45ms (ActiveRecord: 3.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:10:33.107849"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:10:33.107849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:10:33.109572"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:10:33.115848"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:10:33.115848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:10:33.117430"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:10:33.138050"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:10:33.138050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 22]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:10:33.140991"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:10:33.140991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 23]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:10:33.146545"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:10:33.146545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:10:33.162646"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:10:33.162646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:10:33.166988"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:10:33.166988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:10:33.169268"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:10:33.169268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:12:21.521434"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:12:21.521434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 28]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:12:21.526921"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:12:21.526921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 29]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:12:21.533015"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:12:21.533015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:12:21.549291"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:12:21.549291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:12:21.552855"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:12:21.552855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:12:21.556109"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:12:21.556109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:12:21.565597"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:12:21.565597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:12:21.567390"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:12:21.583766"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:12:21.583766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:12:21.585114"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:12:21.589553"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:12:21.589553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 36) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 36 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:12:21.590771"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (1.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 29ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:13:06.209544"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:13:06.209544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:13:06.213792"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:13:06.219176"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:13:06.219176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:13:06.220427"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:13:06.227505"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:13:06.227505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:13:06.229108"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:06.261997"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:13:06.261997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:06.265741"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:13:06.265741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:06.268248"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:13:06.268248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:06.271933"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:13:06.271933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 43]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:06.274713"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:13:06.274713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 44]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:13:06.285164"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:13:06.285164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:57.346526"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:13:57.346526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 46]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:57.353647"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:13:57.353647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 47]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:57.356558"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:13:57.356558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:57.359922"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:13:57.359922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:13:57.362727"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:13:57.362727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:13:57.368658"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:13:57.368658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:13:57.439517"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:13:57.439517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 52) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 52 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:13:57.441630"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:13:57.450898"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:13:57.450898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 53) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 53 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:13:57.452387"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:13:57.463747"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:13:57.463747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 54) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 54 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:13:57.465348"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:15:42.316708"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:15:42.316708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:15:42.321286"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:15:42.321286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:15:42.323860"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:15:42.323860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:15:42.327369"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:15:42.327369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 58]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:15:42.332244"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:15:42.332244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 59]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:15:42.340642"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:15:42.340642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:15:42.371919"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:15:42.371919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 61) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 61 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:15:42.373828"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:15:42.389296"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:15:42.389296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 62) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 62 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:15:42.390879"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:15:42.395892"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:15:42.395892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 63) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 63 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:15:42.397277"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 29ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:02.246652"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:16:02.246652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:02.252327"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:16:02.252327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:02.255498"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:16:02.255498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:16:02.275376"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:16:02.275376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:02.282407"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:16:02.282407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 68]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:02.286315"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:16:02.286315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 69]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:16:02.293670"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:16:02.293670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 70) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 70 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:16:02.296132"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:16:02.315748"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:16:02.315748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 71) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 71 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:16:02.317250"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:16:02.328685"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:16:02.328685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 72) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 72 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:16:02.330013"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.3ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:16:22.584149"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:16:22.584149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 73) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 73 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:16:22.586659"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:16:22.591791"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:16:22.591791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 74) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 74 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:16:22.593033"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:16:22.607457"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:16:22.607457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 75) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 75 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:16:22.608739"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:22.624190"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:16:22.624190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 76]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:22.627432"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:16:22.627432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 77]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:22.630239"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:16:22.630239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:22.633479"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:16:22.633479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:22.636584"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:16:22.636584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:16:22.642213"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:16:22.642213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:35.916934"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:16:35.916934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 82]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:35.923288"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:16:35.923288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 83]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:16:35.929812"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:16:35.929812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:35.947469"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:16:35.947469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:35.950045"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:16:35.950045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:16:35.952503"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:16:35.952503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:00.723555"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:17:00.723555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 88]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:00.729664"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:17:00.729664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 89]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:00.732679"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:17:00.732679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:00.735895"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:17:00.735895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:00.738109"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:17:00.738109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:17:00.745499"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:17:00.745499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:17:34.737338"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:17:34.737338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:34.744180"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:17:34.744180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:34.748294"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:17:34.748294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:34.752097"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:17:34.752097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:34.754620"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:17:34.754620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 98]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:17:34.757816"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:17:34.757816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 99]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:05.216989"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:18:05.216989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 100]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:05.224108"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:18:05.224108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 101]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:05.229179"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:18:05.229179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:05.246623"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:05.246623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:05.249049"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:05.249049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:05.251428"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:05.251428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:19.249782"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:18:19.249782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 106]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:19.255033"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:18:19.255033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 107]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:19.257960"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:19.257960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:19.261202"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:19.261202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:19.263618"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:19.263618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:19.268840"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:18:19.268840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:19.332711"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:18:19.332711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 112) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 112 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:18:19.334526"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:19.347168"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:18:19.347168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 113) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 113 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:18:19.348718"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:19.356616"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:18:19.356616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 114) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 114 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:18:19.357933"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:32.834554"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:18:32.834554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 115]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:32.841578"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:18:32.841578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 116]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:32.844851"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:32.844851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:32.848179"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:32.848179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:32.850636"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:32.850636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:32.856237"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:18:32.856237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:53.731489"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:53.731489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:53.735421"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:53.735421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:53.739005"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:18:53.739005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:53.751328"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:18:53.751328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:53.756890"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:18:53.756890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 125]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:18:53.759596"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:18:53.759596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 126]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:53.764623"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:18:53.764623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 127) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 127 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:18:53.766599"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:53.791624"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:18:53.791624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 128) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 128 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:18:53.793159"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:18:53.797677"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:18:53.797677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 129) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 129 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:18:53.799044"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:09.648177"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:20:09.648177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:09.686393"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:20:09.686393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:09.702753"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:20:09.702753"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:09.714296"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:20:09.714296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:09.725626"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:20:09.725626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 134]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:09.738750"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:20:09.738750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 135]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:09.902216"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:20:09.902216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 136) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 136 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:20:09.909406"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:09.993938"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:20:09.993938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 137) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 137 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:20:09.999912"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 16ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:10.028115"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:20:10.028115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 138) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 138 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:20:10.034180"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 16ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 35ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:35.981028"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:20:35.981028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 139) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 139 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:20:35.984365"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:36.001802"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:20:36.001802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 140) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 140 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:20:36.003147"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:36.007973"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:20:36.007973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 141) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 141 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:20:36.009163"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:36.021639"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:20:36.021639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 142]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:36.025025"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:20:36.025025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 143]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:36.029889"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:20:36.029889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:36.042464"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:20:36.042464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:36.046887"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:20:36.046887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:36.049215"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:20:36.049215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:43.145142"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:20:43.145142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:43.156018"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:20:43.156018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 149]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:43.159642"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:20:43.159642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 150]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:43.164208"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:20:43.164208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:43.166580"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:20:43.166580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:20:43.169053"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:20:43.169053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:43.222944"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:20:43.222944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 154) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 154 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:20:43.224777"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:43.252136"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:20:43.252136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 155) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 155 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:20:43.253612"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:20:43.259099"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:20:43.259099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 156) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 156 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:20:43.260377"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:21:30.860783"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:21:30.860783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:21:30.870830"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:21:30.870830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 158]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:21:30.873857"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:21:30.873857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 159]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:21:30.877038"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:21:30.877038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:21:30.881287"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:21:30.881287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:21:30.883556"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:21:30.883556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 27ms (Views: 26.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:21:30.934771"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:21:30.934771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 163) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 163 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:21:30.936740"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:21:30.951726"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:21:30.951726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 164) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 164 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:21:30.953211"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:21:30.958156"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:21:30.958156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 165) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 165 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:21:30.960182"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:23:34.234906"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:23:34.234906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 166) LIMIT 1 SQL (1.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 166 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:23:34.239839"], ["user_image", #]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 3.2ms)  (0.8ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:23:34.254772"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:23:34.254772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 167) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 167 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:23:34.256300"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:23:34.260871"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:23:34.260871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 168) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 168 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:23:34.262194"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:23:34.325152"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:23:34.325152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 169]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:23:34.328695"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:23:34.328695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 170]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:23:34.334915"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:23:34.334915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:23:34.351433"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:23:34.351433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:23:34.355213"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:23:34.355213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:23:34.358876"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:23:34.358876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:25:18.634936"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:25:18.634936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:25:18.644844"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:25:18.644844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 176]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:25:18.647856"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:25:18.647856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 177]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:25:18.652878"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:25:18.652878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:25:18.655328"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:25:18.655328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:25:18.657534"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:25:18.657534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:25:18.725417"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:25:18.725417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 181) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 181 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:25:18.727286"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:25:18.751123"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:25:18.751123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 182) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 182 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:25:18.752530"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:25:18.760239"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:25:18.760239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 183) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 183 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:25:18.761628"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:26:08.312979"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:26:08.312979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 184) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 184 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:26:08.316811"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:26:08.335872"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:26:08.335872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 185) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 185 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:26:08.337145"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:26:08.341914"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:26:08.341914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 186) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 186 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:26:08.343212"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:26:08.403300"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:26:08.403300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:26:08.412594"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:26:08.412594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 188]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:26:08.415502"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:26:08.415502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 189]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:26:08.420534"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:26:08.420534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:26:08.422972"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:26:08.422972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:26:08.425251"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:26:08.425251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:29:35.307299"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:29:35.307299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:29:35.311143"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:29:35.316676"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:29:35.316676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:29:35.317880"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:29:35.322017"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:29:35.322017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:29:35.323296"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.3ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:29:35.403268"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:29:35.403268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:29:35.406592"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:29:35.406592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:29:35.411707"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:29:35.411707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:29:35.427248"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:29:35.427248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:29:35.430700"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:29:35.430700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:29:35.434214"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:29:35.434214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (1.8ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:37:44.776726"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:37:44.776726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:37:44.781766"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 24ms (ActiveRecord: 3.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:37:44.788606"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:37:44.788606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:37:44.790099"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:37:44.804498"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 14:37:44.804498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 14:37:44.806084"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (1.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:37:44.910694"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 14:37:44.910694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:37:44.915763"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 14:37:44.915763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 14:37:44.922788"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 14:37:44.922788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:37:44.945848"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:37:44.945848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:37:44.951344"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:37:44.951344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 14:37:44.955682"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 14:37:44.955682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:37:27.663897"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:37:27.663897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:37:27.667883"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:37:27.673291"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:37:27.673291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:37:27.674651"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:37:27.685563"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:37:27.685563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:37:27.686991"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:37:27.753186"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 15:37:27.753186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:37:27.756340"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 15:37:27.756340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 14]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:37:27.762366"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 15:37:27.762366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:37:27.779202"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 15:37:27.779202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:37:27.782596"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 15:37:27.782596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:37:27.787433"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 15:37:27.787433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:38:31.718180"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:38:31.718180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:38:31.721801"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:38:31.731327"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:38:31.731327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:38:31.732872"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:38:31.740514"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:38:31.740514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:38:31.741875"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:39:28.002555"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:39:28.002555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:39:28.006554"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 20ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:39:28.018838"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:39:28.018838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:39:28.020294"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:39:28.025261"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:39:28.025261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:39:28.026491"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (4.0ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:39:31.410546"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:39:31.410546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:39:31.414124"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:39:31.419908"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:39:31.419908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:39:31.421181"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:39:31.428519"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:39:31.428519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:39:31.429737"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:39:31.515338"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 15:39:31.515338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:39:31.518847"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 15:39:31.518847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:39:31.521361"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 15:39:31.521361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:39:31.525165"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 15:39:31.525165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 31]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:39:31.527974"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 15:39:31.527974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 32]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:39:31.538309"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 15:39:31.538309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:40:03.993916"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 15:40:03.993916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 34]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:40:04.000823"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 15:40:04.000823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 35]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:40:04.007098"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 15:40:04.007098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:40:04.026336"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 15:40:04.026336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:40:04.028958"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 15:40:04.028958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 15:40:04.031533"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 15:40:04.031533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:40:04.102406"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:40:04.102406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 40) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 40 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:40:04.104290"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:40:04.111845"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:40:04.111845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 41) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 41 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:40:04.113252"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:40:04.117934"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:40:04.117934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:40:04.119159"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 3326ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 15:59:02.214902"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 15:59:02.214902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 15:59:02.223409"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1226ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 16:00:15.572330"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 16:00:15.572330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 16:00:15.576763"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 3.4ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN PG::UndefinedTable: ERROR: relation "dce_lti_nonce_validators" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_nonce_validators... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_nonce_validators"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN PG::UndefinedTable: ERROR: relation "dce_lti_nonces" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_nonces"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_nonces"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN PG::UndefinedTable: ERROR: relation "dce_lti_nonces" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_nonces"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_nonces"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN PG::UndefinedTable: ERROR: relation "dce_lti_nonces" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_nonces"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_nonces"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN PG::UndefinedTable: ERROR: relation "dce_lti_nonces" does not exist LINE 5: WHERE a.attrelid = '"dce_lti_nonces"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"dce_lti_nonces"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:27:48.918061"], ["nonce", "100"], ["updated_at", "2014-10-08 17:27:48.918061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:27.812874"], ["nonce", "100"], ["updated_at", "2014-10-08 17:28:27.812874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:27.815409"], ["nonce", "100"], ["updated_at", "2014-10-08 17:28:27.815409"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:27.817753"], ["nonce", "100"], ["updated_at", "2014-10-08 17:28:27.817753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:31.161905"], ["nonce", "100"], ["updated_at", "2014-10-08 17:28:31.161905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:31.164634"], ["nonce", "100"], ["updated_at", "2014-10-08 17:28:31.164634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:31.165528"], ["nonce", "100"], ["updated_at", "2014-10-08 17:28:31.165528"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:31.206576"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 17:28:31.206576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:28:31.213838"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:28:31.213838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:28:31.218136"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:28:31.218136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:28:31.221411"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:28:31.221411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:28:31.223937"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 17:28:31.223937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:28:31.226733"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 17:28:31.226733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:31.256699"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:28:31.256699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:28:31.258750"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:31.266206"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:28:31.266206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:28:31.267433"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:31.286194"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:28:31.286194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:28:31.287451"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:28:31.294188"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:28:31.294188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:28:31.295573"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:29:52.080562"], ["nonce", "100"], ["updated_at", "2014-10-08 17:29:52.080562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:29:52.083290"], ["nonce", "100"], ["updated_at", "2014-10-08 17:29:52.083290"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:29:52.086264"], ["nonce", "100"], ["updated_at", "2014-10-08 17:29:52.086264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:30:01.570517"], ["nonce", "100"], ["updated_at", "2014-10-08 17:30:01.570517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:30:01.574519"], ["nonce", "100"], ["updated_at", "2014-10-08 17:30:01.574519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:30:01.575429"], ["nonce", "100"], ["updated_at", "2014-10-08 17:30:01.575429"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:30:45.949119"], ["nonce", "100"], ["updated_at", "2014-10-08 17:30:45.949119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:30:45.953016"], ["nonce", "100"], ["updated_at", "2014-10-08 17:30:45.953016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:30:45.953917"], ["nonce", "100"], ["updated_at", "2014-10-08 17:30:45.953917"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:31:44.168606"], ["nonce", "100"], ["updated_at", "2014-10-08 17:31:44.168606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:31:44.171375"], ["nonce", "100"], ["updated_at", "2014-10-08 17:31:44.171375"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:31:44.174290"], ["nonce", "100"], ["updated_at", "2014-10-08 17:31:44.174290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:31:55.027679"], ["nonce", "100"], ["updated_at", "2014-10-08 17:31:55.027679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:31:55.030228"], ["nonce", "100"], ["updated_at", "2014-10-08 17:31:55.030228"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:31:55.032994"], ["nonce", "100"], ["updated_at", "2014-10-08 17:31:55.032994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:30.208513"], ["nonce", "100"], ["updated_at", "2014-10-08 17:32:30.208513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:30.211697"], ["nonce", "100"], ["updated_at", "2014-10-08 17:32:30.211697"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:30.215192"], ["nonce", "100"], ["updated_at", "2014-10-08 17:32:30.215192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:33.427825"], ["nonce", "100"], ["updated_at", "2014-10-08 17:32:33.427825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:33.430971"], ["nonce", "100"], ["updated_at", "2014-10-08 17:32:33.430971"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:33.433390"], ["nonce", "100"], ["updated_at", "2014-10-08 17:32:33.433390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:33.483541"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 17:32:33.483541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:32:33.494232"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 17:32:33.494232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:32:33.497649"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 17:32:33.497649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:32:33.502291"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:32:33.502291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:32:33.505098"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:32:33.505098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:32:33.507373"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:32:33.507373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:33.528759"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:32:33.528759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:32:33.530715"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:33.536767"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:32:33.536767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:32:33.537971"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:33.544673"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:32:33.544673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:32:33.546108"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:32:33.556007"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:32:33.556007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:32:33.557271"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:33:25.398762"], ["nonce", "100"], ["updated_at", "2014-10-08 17:33:25.398762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:33:25.403260"], ["nonce", "100"], ["updated_at", "2014-10-08 17:33:25.403260"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:33:25.405736"], ["nonce", "100"], ["updated_at", "2014-10-08 17:33:25.405736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:33:32.878695"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:33:32.878695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:33:32.882900"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 25ms (ActiveRecord: 4.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:33:32.894382"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:33:32.894382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:33:32.895885"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:33:32.919225"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:33:32.919225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:33:32.920668"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:33:32.926235"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:33:32.926235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:33:32.928316"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (2.7ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:35:04.665098"], ["updated_at", "2014-10-08 17:35:04.665098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:35:04.680577"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:35:04.680577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:35:04.683035"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 4.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:35:04.688112"], ["updated_at", "2014-10-08 17:35:04.688112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:35:04.700786"], ["updated_at", "2014-10-08 17:35:04.700786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:35:04.704880"], ["updated_at", "2014-10-08 17:35:04.704880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:35:04.707036"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:35:04.707036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:35:04.708535"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:35:04.712223"], ["updated_at", "2014-10-08 17:35:04.712223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:35:04.713959"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:35:04.713959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:35:04.715245"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:35:04.719084"], ["updated_at", "2014-10-08 17:35:04.719084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:35:04.723194"], ["updated_at", "2014-10-08 17:35:04.723194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 28ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:35:04.785869"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 17:35:04.785869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:35:04.795782"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 17:35:04.795782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 29]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:35:04.798855"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 17:35:04.798855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 30]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:35:04.803507"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:35:04.803507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:35:04.805971"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:35:04.805971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:35:04.808591"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:35:04.808591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:35:04.814468"], ["nonce", "100"], ["updated_at", "2014-10-08 17:35:04.814468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:35:04.816254"], ["nonce", "100"], ["updated_at", "2014-10-08 17:35:04.816254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:35:04.817034"], ["nonce", "100"], ["updated_at", "2014-10-08 17:35:04.817034"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.6ms) Completed 200 OK in 3361ms (Views: 6.3ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:43:11.450083"], ["updated_at", "2014-10-08 17:43:11.450083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:43:11.467056"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:43:11.467056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:43:11.469619"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 5.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:43:11.475727"], ["updated_at", "2014-10-08 17:43:11.475727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:43:11.485675"], ["updated_at", "2014-10-08 17:43:11.485675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:43:11.487730"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:43:11.487730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:43:11.489062"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:43:11.493883"], ["updated_at", "2014-10-08 17:43:11.493883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:43:11.498789"], ["updated_at", "2014-10-08 17:43:11.498789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:43:11.502519"], ["updated_at", "2014-10-08 17:43:11.502519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 17:43:11.505640"], ["updated_at", "2014-10-08 17:43:11.505640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:43:11.507575"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 17:43:11.507575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 17:43:11.509160"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:43:11.529021"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 17:43:11.529021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:43:11.532573"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 17:43:11.532573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:43:11.535372"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:43:11.535372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:43:11.565094"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:43:11.565094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 17:43:11.568207"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 17:43:11.568207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:43:11.573626"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 17:43:11.573626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:43:11.599149"], ["nonce", "100"], ["updated_at", "2014-10-08 17:43:11.599149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:43:11.600413"], ["nonce", "100"], ["updated_at", "2014-10-08 17:43:11.600413"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 17:43:11.602123"], ["nonce", "100"], ["updated_at", "2014-10-08 17:43:11.602123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:29:36.721414"], ["nonce", "100"], ["updated_at", "2014-10-08 19:29:36.721414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:29:36.723997"], ["nonce", "100"], ["updated_at", "2014-10-08 19:29:36.723997"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:29:36.726636"], ["nonce", "100"], ["updated_at", "2014-10-08 19:29:36.726636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:29:53.509310"], ["nonce", "100"], ["updated_at", "2014-10-08 19:29:53.509310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:29:53.512509"], ["nonce", "100"], ["updated_at", "2014-10-08 19:29:53.512509"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:29:53.514974"], ["nonce", "100"], ["updated_at", "2014-10-08 19:29:53.514974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:30:35.093672"], ["nonce", "100"], ["updated_at", "2014-10-08 19:30:35.093672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:30:35.098171"], ["nonce", "100"], ["updated_at", "2014-10-08 19:30:35.098171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:30:35.099311"], ["nonce", "100"], ["updated_at", "2014-10-08 19:30:35.099311"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:30:46.250695"], ["nonce", "100"], ["updated_at", "2014-10-08 19:30:46.250695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:30:46.253642"], ["nonce", "100"], ["updated_at", "2014-10-08 19:30:46.253642"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:30:46.257271"], ["nonce", "100"], ["updated_at", "2014-10-08 19:30:46.257271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:30:59.055471"], ["nonce", "100"], ["updated_at", "2014-10-08 19:30:59.055471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:30:59.059618"], ["nonce", "100"], ["updated_at", "2014-10-08 19:30:59.059618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:30:59.060694"], ["nonce", "100"], ["updated_at", "2014-10-08 19:30:59.060694"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:35:17.510826"], ["nonce", "100"], ["updated_at", "2014-10-08 19:35:17.510826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:35:17.514771"], ["nonce", "100"], ["updated_at", "2014-10-08 19:35:17.514771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:35:17.515660"], ["nonce", "100"], ["updated_at", "2014-10-08 19:35:17.515660"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 19:39:11.900456"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 19:39:11.900456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 19:39:11.906417"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 19:39:11.906417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 19:39:11.909351"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 19:39:11.909351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 19:39:11.913049"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 19:39:11.913049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 19:39:11.915960"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 19:39:11.915960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:39:11.922943"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 19:39:11.922943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:39:11.974402"], ["nonce", "100"], ["updated_at", "2014-10-08 19:39:11.974402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:39:11.975922"], ["nonce", "100"], ["updated_at", "2014-10-08 19:39:11.975922"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:39:11.978367"], ["nonce", "100"], ["updated_at", "2014-10-08 19:39:11.978367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 19:39:11.983406"], ["updated_at", "2014-10-08 19:39:11.983406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:39:11.987246"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 19:39:11.987246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 19:39:11.989039"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 19:39:11.993521"], ["updated_at", "2014-10-08 19:39:11.993521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 19:39:12.005424"], ["updated_at", "2014-10-08 19:39:12.005424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 19:39:12.009424"], ["updated_at", "2014-10-08 19:39:12.009424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:39:12.011430"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 19:39:12.011430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 19:39:12.012740"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 19:39:12.017088"], ["updated_at", "2014-10-08 19:39:12.017088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 19:39:12.020535"], ["updated_at", "2014-10-08 19:39:12.020535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 19:39:12.023480"], ["updated_at", "2014-10-08 19:39:12.023480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 19:39:12.025172"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 19:39:12.025172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 19:39:12.026558"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:13.982709"], ["nonce", "100"], ["updated_at", "2014-10-08 20:31:13.982709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:13.986801"], ["nonce", "100"], ["updated_at", "2014-10-08 20:31:13.986801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:13.987793"], ["nonce", "100"], ["updated_at", "2014-10-08 20:31:13.987793"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 20:31:17.005919"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 20:31:17.005919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 20:31:17.011145"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 20:31:17.011145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 20:31:17.013903"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-08 20:31:17.013903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 20:31:17.017368"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-08 20:31:17.017368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 22]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-08 20:31:17.021199"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-08 20:31:17.021199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 23]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:17.031967"], ["lti_user_id", "a"], ["updated_at", "2014-10-08 20:31:17.031967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:17.052563"], ["nonce", "100"], ["updated_at", "2014-10-08 20:31:17.052563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:17.053676"], ["nonce", "100"], ["updated_at", "2014-10-08 20:31:17.053676"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:17.055753"], ["nonce", "100"], ["updated_at", "2014-10-08 20:31:17.055753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 20:31:17.095065"], ["updated_at", "2014-10-08 20:31:17.095065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 20:31:17.098467"], ["updated_at", "2014-10-08 20:31:17.098467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:17.100478"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 20:31:17.100478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 20:31:17.102312"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 20:31:17.113007"], ["updated_at", "2014-10-08 20:31:17.113007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:17.115095"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 20:31:17.115095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 20:31:17.116529"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 20:31:17.120580"], ["updated_at", "2014-10-08 20:31:17.120580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 20:31:17.125297"], ["updated_at", "2014-10-08 20:31:17.125297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 20:31:17.129944"], ["updated_at", "2014-10-08 20:31:17.129944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 20:31:17.133114"], ["updated_at", "2014-10-08 20:31:17.133114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 20:31:17.134939"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 20:31:17.134939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 20:31:17.136261"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 21:07:55.454596"], ["updated_at", "2014-10-08 21:07:55.454596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 21:07:55.471169"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 21:07:55.471169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 21:07:55.473564"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 5.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 21:07:55.484909"], ["updated_at", "2014-10-08 21:07:55.484909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 21:07:55.489784"], ["updated_at", "2014-10-08 21:07:55.489784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 21:07:55.493888"], ["updated_at", "2014-10-08 21:07:55.493888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 21:07:55.497697"], ["updated_at", "2014-10-08 21:07:55.497697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 21:07:55.499661"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 21:07:55.499661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 21:07:55.500826"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 21:07:55.504377"], ["updated_at", "2014-10-08 21:07:55.504377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-08 21:07:55.506338"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-08 21:07:55.506338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-08 21:07:55.507694"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-08 21:07:55.511974"], ["updated_at", "2014-10-08 21:07:55.511974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:28:47.281460"], ["nonce", "100"], ["updated_at", "2014-10-14 14:28:47.281460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:28:47.284750"], ["nonce", "100"], ["updated_at", "2014-10-14 14:28:47.284750"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:28:47.287532"], ["nonce", "100"], ["updated_at", "2014-10-14 14:28:47.287532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:28:47.383233"], ["lti_user_id", "a"], ["updated_at", "2014-10-14 14:28:47.383233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:28:47.393410"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-14 14:28:47.393410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:28:47.396458"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-14 14:28:47.396458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:28:47.401316"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 14:28:47.401316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:28:47.404091"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 14:28:47.404091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:28:47.406393"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 14:28:47.406393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-14 14:28:47.418072"], ["updated_at", "2014-10-14 14:28:47.418072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-14 14:28:47.426107"], ["updated_at", "2014-10-14 14:28:47.426107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:28:47.428139"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:28:47.428139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:28:47.430233"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-14 14:28:47.434805"], ["updated_at", "2014-10-14 14:28:47.434805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:28:47.436656"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:28:47.436656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:28:47.437938"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-14 14:28:47.441565"], ["updated_at", "2014-10-14 14:28:47.441565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-14 14:28:47.444911"], ["updated_at", "2014-10-14 14:28:47.444911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-14 14:28:47.447712"], ["updated_at", "2014-10-14 14:28:47.447712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:28:47.449541"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:28:47.449541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:28:47.450957"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-14 14:28:47.455378"], ["updated_at", "2014-10-14 14:28:47.455378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-10-14 14:33:07.594578"], ["updated_at", "2014-10-14 14:33:07.594578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:33:07.610541"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:33:07.610541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:33:07.612823"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 4.6ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:26.926611"], ["nonce", #], ["updated_at", "2014-10-14 14:51:26.926611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 14ms (Views: 4.5ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:43.763620"], ["nonce", #], ["updated_at", "2014-10-14 14:51:43.763620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 14ms (Views: 4.5ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.132312"], ["nonce", #], ["updated_at", "2014-10-14 14:51:47.132312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.148340"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:51:47.148340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:51:47.150477"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 4.2ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.161866"], ["nonce", #], ["updated_at", "2014-10-14 14:51:47.161866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.165599"], ["nonce", #], ["updated_at", "2014-10-14 14:51:47.165599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.177984"], ["nonce", #], ["updated_at", "2014-10-14 14:51:47.177984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.181073"], ["nonce", #], ["updated_at", "2014-10-14 14:51:47.181073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.182994"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:51:47.182994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:51:47.184711"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.188845"], ["nonce", #], ["updated_at", "2014-10-14 14:51:47.188845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.190981"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:51:47.190981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:51:47.192722"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.197590"], ["nonce", #], ["updated_at", "2014-10-14 14:51:47.197590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:47.201854"], ["nonce", #], ["updated_at", "2014-10-14 14:51:47.201854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:51:53.292181"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 14:51:53.292181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:51:53.298237"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 14:51:53.298237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:51:53.301582"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 14:51:53.301582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:51:53.304821"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-14 14:51:53.304821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 17]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 14:51:53.308537"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-14 14:51:53.308537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 18]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.320659"], ["lti_user_id", "a"], ["updated_at", "2014-10-14 14:51:53.320659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 27ms (Views: 26.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.368517"], ["nonce", #], ["updated_at", "2014-10-14 14:51:53.368517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.372779"], ["nonce", #], ["updated_at", "2014-10-14 14:51:53.372779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.376261"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:51:53.376261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:51:53.377956"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.382262"], ["nonce", #], ["updated_at", "2014-10-14 14:51:53.382262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.386710"], ["nonce", #], ["updated_at", "2014-10-14 14:51:53.386710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.388689"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:51:53.388689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:51:53.389968"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.393474"], ["nonce", #], ["updated_at", "2014-10-14 14:51:53.393474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.395256"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 14:51:53.395256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 14:51:53.396493"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.400095"], ["nonce", #], ["updated_at", "2014-10-14 14:51:53.400095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.404060"], ["nonce", #], ["updated_at", "2014-10-14 14:51:53.404060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.408821"], ["nonce", #], ["updated_at", "2014-10-14 14:51:53.408821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.459396"], ["nonce", "100"], ["updated_at", "2014-10-14 14:51:53.459396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.460367"], ["nonce", "100"], ["updated_at", "2014-10-14 14:51:53.460367"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 14:51:53.461903"], ["nonce", "100"], ["updated_at", "2014-10-14 14:51:53.461903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.588236"], ["nonce", #], ["updated_at", "2014-10-14 15:04:02.588236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.602456"], ["nonce", #], ["updated_at", "2014-10-14 15:04:02.602456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.606241"], ["nonce", #], ["updated_at", "2014-10-14 15:04:02.606241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.620123"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:04:02.620123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:04:02.622400"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.628466"], ["nonce", #], ["updated_at", "2014-10-14 15:04:02.628466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.632543"], ["nonce", #], ["updated_at", "2014-10-14 15:04:02.632543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.634757"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:04:02.634757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:04:02.636134"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.639574"], ["nonce", #], ["updated_at", "2014-10-14 15:04:02.639574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.641343"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:04:02.641343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:04:02.642845"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.647612"], ["nonce", #], ["updated_at", "2014-10-14 15:04:02.647612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:04:02.651389"], ["nonce", #], ["updated_at", "2014-10-14 15:04:02.651389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:09.966069"], ["nonce", #], ["updated_at", "2014-10-14 15:23:09.966069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.7ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:09.975381"], ["nonce", #], ["updated_at", "2014-10-14 15:23:09.975381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:09.978630"], ["nonce", #], ["updated_at", "2014-10-14 15:23:09.978630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:09.996652"], ["nonce", #], ["updated_at", "2014-10-14 15:23:09.996652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:09.999844"], ["nonce", #], ["updated_at", "2014-10-14 15:23:09.999844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:10.003854"], ["nonce", #], ["updated_at", "2014-10-14 15:23:10.003854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:10.007443"], ["nonce", #], ["updated_at", "2014-10-14 15:23:10.007443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:10.010432"], ["nonce", #], ["updated_at", "2014-10-14 15:23:10.010432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 30ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:10.065466"], ["nonce", "100"], ["updated_at", "2014-10-14 15:23:10.065466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:10.067121"], ["nonce", "100"], ["updated_at", "2014-10-14 15:23:10.067121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:10.067828"], ["nonce", "100"], ["updated_at", "2014-10-14 15:23:10.067828"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:23:10.074730"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:23:10.074730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:23:10.077512"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:23:10.077512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:23:10.079773"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:23:10.079773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:23:10.092625"], ["lti_user_id", "a"], ["updated_at", "2014-10-14 15:23:10.092625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:23:10.098279"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-14 15:23:10.098279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 30]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:23:10.101514"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-14 15:23:10.101514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 31]]  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.599268"], ["nonce", #], ["updated_at", "2014-10-14 15:30:03.599268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 12ms (Views: 4.1ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.610921"], ["nonce", #], ["updated_at", "2014-10-14 15:30:03.610921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.618638"], ["nonce", #], ["updated_at", "2014-10-14 15:30:03.618638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.635724"], ["nonce", #], ["updated_at", "2014-10-14 15:30:03.635724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.639901"], ["nonce", #], ["updated_at", "2014-10-14 15:30:03.639901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.643231"], ["nonce", #], ["updated_at", "2014-10-14 15:30:03.643231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.648608"], ["nonce", #], ["updated_at", "2014-10-14 15:30:03.648608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.651648"], ["nonce", #], ["updated_at", "2014-10-14 15:30:03.651648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.674637"], ["nonce", "100"], ["updated_at", "2014-10-14 15:30:03.674637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.676300"], ["nonce", "100"], ["updated_at", "2014-10-14 15:30:03.676300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.677059"], ["nonce", "100"], ["updated_at", "2014-10-14 15:30:03.677059"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:03.750344"], ["lti_user_id", "a"], ["updated_at", "2014-10-14 15:30:03.750344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:03.758404"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:30:03.758404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:03.761333"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:30:03.761333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:03.763746"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:30:03.763746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:03.766297"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-14 15:30:03.766297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:03.769005"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-14 15:30:03.769005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.057492"], ["lti_user_id", "a"], ["updated_at", "2014-10-14 15:30:26.057492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:26.063801"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:30:26.063801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:26.067768"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:30:26.067768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:26.071688"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:30:26.071688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:26.074237"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-14 15:30:26.074237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:30:26.077140"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-14 15:30:26.077140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.149979"], ["nonce", #], ["updated_at", "2014-10-14 15:30:26.149979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.154317"], ["nonce", #], ["updated_at", "2014-10-14 15:30:26.154317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.157445"], ["nonce", #], ["updated_at", "2014-10-14 15:30:26.157445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.176033"], ["nonce", #], ["updated_at", "2014-10-14 15:30:26.176033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.179667"], ["nonce", #], ["updated_at", "2014-10-14 15:30:26.179667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.184499"], ["nonce", #], ["updated_at", "2014-10-14 15:30:26.184499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.188049"], ["nonce", #], ["updated_at", "2014-10-14 15:30:26.188049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.190910"], ["nonce", #], ["updated_at", "2014-10-14 15:30:26.190910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.198506"], ["nonce", "100"], ["updated_at", "2014-10-14 15:30:26.198506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.200985"], ["nonce", "100"], ["updated_at", "2014-10-14 15:30:26.200985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:30:26.202434"], ["nonce", "100"], ["updated_at", "2014-10-14 15:30:26.202434"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.423332"], ["nonce", #], ["updated_at", "2014-10-14 15:31:07.423332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 13ms (Views: 4.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.437151"], ["nonce", #], ["updated_at", "2014-10-14 15:31:07.437151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.451941"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:31:07.451941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:31:07.454436"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 20ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.459261"], ["nonce", #], ["updated_at", "2014-10-14 15:31:07.459261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.470251"], ["nonce", #], ["updated_at", "2014-10-14 15:31:07.470251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.472312"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:31:07.472312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:31:07.473603"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.477478"], ["nonce", #], ["updated_at", "2014-10-14 15:31:07.477478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.479737"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:31:07.479737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 15) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 15 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:31:07.481073"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.485719"], ["nonce", #], ["updated_at", "2014-10-14 15:31:07.485719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.490156"], ["nonce", #], ["updated_at", "2014-10-14 15:31:07.490156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:07.493906"], ["nonce", #], ["updated_at", "2014-10-14 15:31:07.493906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.612535"], ["nonce", #], ["updated_at", "2014-10-14 15:31:10.612535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.626232"], ["nonce", #], ["updated_at", "2014-10-14 15:31:10.626232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.630105"], ["nonce", #], ["updated_at", "2014-10-14 15:31:10.630105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.644807"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:31:10.644807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:31:10.647099"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.652697"], ["nonce", #], ["updated_at", "2014-10-14 15:31:10.652697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.656787"], ["nonce", #], ["updated_at", "2014-10-14 15:31:10.656787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.658907"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:31:10.658907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:31:10.660232"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.663610"], ["nonce", #], ["updated_at", "2014-10-14 15:31:10.663610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.665491"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:31:10.665491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (1.1ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:31:10.666704"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.672085"], ["nonce", #], ["updated_at", "2014-10-14 15:31:10.672085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.675800"], ["nonce", #], ["updated_at", "2014-10-14 15:31:10.675800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 25ms (Views: 25.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.724913"], ["lti_user_id", "a"], ["updated_at", "2014-10-14 15:31:10.724913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:31:10.734548"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-14 15:31:10.734548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 20]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:31:10.737491"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-14 15:31:10.737491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 21]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:31:10.740120"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:31:10.740120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:31:10.743719"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:31:10.743719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:31:10.747046"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:31:10.747046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.761715"], ["nonce", "100"], ["updated_at", "2014-10-14 15:31:10.761715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.762659"], ["nonce", "100"], ["updated_at", "2014-10-14 15:31:10.762659"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:31:10.764317"], ["nonce", "100"], ["updated_at", "2014-10-14 15:31:10.764317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.579467"], ["lti_user_id", "a"], ["updated_at", "2014-10-14 15:37:04.579467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.7ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:37:04.617809"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-14 15:37:04.617809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:37:04.620902"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-14 15:37:04.620902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:37:04.625765"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:37:04.625765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:37:04.628520"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:37:04.628520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 15:37:04.630838"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 15:37:04.630838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.645551"], ["nonce", "100"], ["updated_at", "2014-10-14 15:37:04.645551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.646840"], ["nonce", "100"], ["updated_at", "2014-10-14 15:37:04.646840"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.649285"], ["nonce", "100"], ["updated_at", "2014-10-14 15:37:04.649285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.668835"], ["nonce", #], ["updated_at", "2014-10-14 15:37:04.668835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.674221"], ["nonce", #], ["updated_at", "2014-10-14 15:37:04.674221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.680878"], ["nonce", #], ["updated_at", "2014-10-14 15:37:04.680878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.683102"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:37:04.683102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:37:04.685107"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.689291"], ["nonce", #], ["updated_at", "2014-10-14 15:37:04.689291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.691131"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:37:04.691131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:37:04.692375"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.696702"], ["nonce", #], ["updated_at", "2014-10-14 15:37:04.696702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.700066"], ["nonce", #], ["updated_at", "2014-10-14 15:37:04.700066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.701997"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 15:37:04.701997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 15:37:04.703325"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.707544"], ["nonce", #], ["updated_at", "2014-10-14 15:37:04.707544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 15:37:04.711551"], ["nonce", #], ["updated_at", "2014-10-14 15:37:04.711551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.106814"], ["nonce", "100"], ["updated_at", "2014-10-14 17:02:06.106814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.109352"], ["nonce", "100"], ["updated_at", "2014-10-14 17:02:06.109352"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.111988"], ["nonce", "100"], ["updated_at", "2014-10-14 17:02:06.111988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:02:06.155036"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-14 17:02:06.155036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:02:06.158210"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-14 17:02:06.158210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.162862"], ["lti_user_id", "a"], ["updated_at", "2014-10-14 17:02:06.162862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:02:06.179254"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 17:02:06.179254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:02:06.181857"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 17:02:06.181857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:02:06.184508"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 17:02:06.184508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.205143"], ["nonce", #], ["updated_at", "2014-10-14 17:02:06.205143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.213294"], ["nonce", #], ["updated_at", "2014-10-14 17:02:06.213294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.216437"], ["nonce", #], ["updated_at", "2014-10-14 17:02:06.216437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.218393"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 17:02:06.218393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 17:02:06.220114"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.224281"], ["nonce", #], ["updated_at", "2014-10-14 17:02:06.224281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.228175"], ["nonce", #], ["updated_at", "2014-10-14 17:02:06.228175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.231433"], ["nonce", #], ["updated_at", "2014-10-14 17:02:06.231433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.233246"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 17:02:06.233246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 17:02:06.234387"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.237616"], ["nonce", #], ["updated_at", "2014-10-14 17:02:06.237616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.239313"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 17:02:06.239313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 17:02:06.240515"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:02:06.244266"], ["nonce", #], ["updated_at", "2014-10-14 17:02:06.244266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 29ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.529338"], ["nonce", "100"], ["updated_at", "2014-10-14 17:31:58.529338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.530904"], ["nonce", "100"], ["updated_at", "2014-10-14 17:31:58.530904"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.533162"], ["nonce", "100"], ["updated_at", "2014-10-14 17:31:58.533162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:31:58.538569"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-14 17:31:58.538569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:31:58.542210"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-14 17:31:58.542210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.547175"], ["lti_user_id", "a"], ["updated_at", "2014-10-14 17:31:58.547175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:31:58.561382"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 17:31:58.561382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:31:58.566182"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 17:31:58.566182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-14 17:31:58.569272"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-14 17:31:58.569272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.578761"], ["nonce", #], ["updated_at", "2014-10-14 17:31:58.578761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.583912"], ["nonce", #], ["updated_at", "2014-10-14 17:31:58.583912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.587790"], ["nonce", #], ["updated_at", "2014-10-14 17:31:58.587790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.590210"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 17:31:58.590210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 17:31:58.592283"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.597094"], ["nonce", #], ["updated_at", "2014-10-14 17:31:58.597094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.599472"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 17:31:58.599472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 17:31:58.601157"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.605784"], ["nonce", #], ["updated_at", "2014-10-14 17:31:58.605784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.609086"], ["nonce", #], ["updated_at", "2014-10-14 17:31:58.609086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.610924"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-14 17:31:58.610924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-14 17:31:58.612168"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.615670"], ["nonce", #], ["updated_at", "2014-10-14 17:31:58.615670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-14 17:31:58.619005"], ["nonce", #], ["updated_at", "2014-10-14 17:31:58.619005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.188445"], ["nonce", "100"], ["updated_at", "2014-10-15 14:57:29.188445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.191236"], ["nonce", "100"], ["updated_at", "2014-10-15 14:57:29.191236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.192155"], ["nonce", "100"], ["updated_at", "2014-10-15 14:57:29.192155"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.237809"], ["nonce", #], ["updated_at", "2014-10-15 14:57:29.237809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.243190"], ["nonce", #], ["updated_at", "2014-10-15 14:57:29.243190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.250258"], ["nonce", #], ["updated_at", "2014-10-15 14:57:29.250258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.262220"], ["nonce", #], ["updated_at", "2014-10-15 14:57:29.262220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.267316"], ["nonce", #], ["updated_at", "2014-10-15 14:57:29.267316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.271978"], ["nonce", #], ["updated_at", "2014-10-15 14:57:29.271978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.275821"], ["nonce", #], ["updated_at", "2014-10-15 14:57:29.275821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.279880"], ["nonce", #], ["updated_at", "2014-10-15 14:57:29.279880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:29.312600"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 14:57:29.312600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:29.320888"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:57:29.320888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:29.323480"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:57:29.323480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:29.325784"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:57:29.325784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:29.328332"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 14:57:29.328332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 14]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:29.331983"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 14:57:29.331983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 27ms (Views: 27.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.377770"], ["nonce", #], ["updated_at", "2014-10-15 14:57:41.377770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.383856"], ["nonce", #], ["updated_at", "2014-10-15 14:57:41.383856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.390843"], ["nonce", #], ["updated_at", "2014-10-15 14:57:41.390843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.404308"], ["nonce", #], ["updated_at", "2014-10-15 14:57:41.404308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.408855"], ["nonce", #], ["updated_at", "2014-10-15 14:57:41.408855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.413100"], ["nonce", #], ["updated_at", "2014-10-15 14:57:41.413100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.417712"], ["nonce", #], ["updated_at", "2014-10-15 14:57:41.417712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.421881"], ["nonce", #], ["updated_at", "2014-10-15 14:57:41.421881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.447595"], ["nonce", "100"], ["updated_at", "2014-10-15 14:57:41.447595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.449628"], ["nonce", "100"], ["updated_at", "2014-10-15 14:57:41.449628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.450456"], ["nonce", "100"], ["updated_at", "2014-10-15 14:57:41.450456"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:41.460743"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:57:41.460743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:41.465760"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:57:41.465760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:41.468332"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:57:41.468332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:41.482663"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 14:57:41.482663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:41.488482"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 14:57:41.488482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 20]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:41.491237"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 14:57:41.491237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 21]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 27ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.775826"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 14:57:54.775826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:54.783331"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:57:54.783331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:54.787416"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:57:54.787416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:54.790653"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:57:54.790653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:54.793588"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 14:57:54.793588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 26]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:57:54.796942"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 14:57:54.796942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 27]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.837488"], ["nonce", "100"], ["updated_at", "2014-10-15 14:57:54.837488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.840181"], ["nonce", "100"], ["updated_at", "2014-10-15 14:57:54.840181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.841072"], ["nonce", "100"], ["updated_at", "2014-10-15 14:57:54.841072"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.848688"], ["nonce", #], ["updated_at", "2014-10-15 14:57:54.848688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.853902"], ["nonce", #], ["updated_at", "2014-10-15 14:57:54.853902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.857971"], ["nonce", #], ["updated_at", "2014-10-15 14:57:54.857971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.871969"], ["nonce", #], ["updated_at", "2014-10-15 14:57:54.871969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.876509"], ["nonce", #], ["updated_at", "2014-10-15 14:57:54.876509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.880229"], ["nonce", #], ["updated_at", "2014-10-15 14:57:54.880229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.884476"], ["nonce", #], ["updated_at", "2014-10-15 14:57:54.884476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:57:54.888063"], ["nonce", #], ["updated_at", "2014-10-15 14:57:54.888063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.150088"], ["nonce", "100"], ["updated_at", "2014-10-15 14:58:27.150088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.178103"], ["nonce", "100"], ["updated_at", "2014-10-15 14:58:27.178103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.179060"], ["nonce", "100"], ["updated_at", "2014-10-15 14:58:27.179060"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.203395"], ["nonce", #], ["updated_at", "2014-10-15 14:58:27.203395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.208840"], ["nonce", #], ["updated_at", "2014-10-15 14:58:27.208840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) COMMIT  (1.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.216792"], ["nonce", #], ["updated_at", "2014-10-15 14:58:27.216792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.234714"], ["nonce", #], ["updated_at", "2014-10-15 14:58:27.234714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.239233"], ["nonce", #], ["updated_at", "2014-10-15 14:58:27.239233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.243176"], ["nonce", #], ["updated_at", "2014-10-15 14:58:27.243176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.246644"], ["nonce", #], ["updated_at", "2014-10-15 14:58:27.246644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.251233"], ["nonce", #], ["updated_at", "2014-10-15 14:58:27.251233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:58:27.271857"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 14:58:27.271857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:58:27.282174"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:58:27.282174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:58:27.285505"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:58:27.285505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:58:27.288459"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 14:58:27.288459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:58:27.291412"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 14:58:27.291412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 14:58:27.294682"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 14:58:27.294682"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:59:07.726739"], ["nonce", #], ["updated_at", "2014-10-15 14:59:07.726739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:59:07.736338"], ["nonce", #], ["updated_at", "2014-10-15 14:59:07.736338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:59:07.740388"], ["nonce", #], ["updated_at", "2014-10-15 14:59:07.740388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:59:07.748108"], ["nonce", #], ["updated_at", "2014-10-15 14:59:07.748108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:59:07.755360"], ["nonce", #], ["updated_at", "2014-10-15 14:59:07.755360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:59:07.759865"], ["nonce", #], ["updated_at", "2014-10-15 14:59:07.759865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:59:07.763526"], ["nonce", #], ["updated_at", "2014-10-15 14:59:07.763526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:59:07.768109"], ["nonce", #], ["updated_at", "2014-10-15 14:59:07.768109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 14:59:24.351867"], ["nonce", #], ["updated_at", "2014-10-15 14:59:24.351867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 14ms (Views: 4.7ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:00:11.843111"], ["nonce", #], ["updated_at", "2014-10-15 15:00:11.843111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 13ms (Views: 4.1ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:01:59.444335"], ["nonce", #], ["updated_at", "2014-10-15 15:01:59.444335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:01:59.461236"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:01:59.461236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:01:59.463609"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 27ms (ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.788493"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 15:02:02.788493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:02:02.797042"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:02:02.797042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:02:02.800178"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:02:02.800178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:02:02.803049"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:02:02.803049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:02:02.805968"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 15:02:02.805968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:02:02.808995"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 15:02:02.808995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.817528"], ["nonce", "100"], ["updated_at", "2014-10-15 15:02:02.817528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.820461"], ["nonce", "100"], ["updated_at", "2014-10-15 15:02:02.820461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.821359"], ["nonce", "100"], ["updated_at", "2014-10-15 15:02:02.821359"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.832384"], ["nonce", #], ["updated_at", "2014-10-15 15:02:02.832384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.834696"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:02:02.834696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:02:02.836607"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.843048"], ["nonce", #], ["updated_at", "2014-10-15 15:02:02.843048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.845158"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:02:02.845158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 15) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 15 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:02:02.846495"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.854653"], ["nonce", #], ["updated_at", "2014-10-15 15:02:02.854653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.867822"], ["nonce", #], ["updated_at", "2014-10-15 15:02:02.867822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.870019"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:02:02.870019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:02:02.871457"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.875595"], ["nonce", #], ["updated_at", "2014-10-15 15:02:02.875595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.880719"], ["nonce", #], ["updated_at", "2014-10-15 15:02:02.880719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.882815"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:02:02.882815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:02:02.884182"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.888244"], ["nonce", #], ["updated_at", "2014-10-15 15:02:02.888244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:02.892124"], ["nonce", #], ["updated_at", "2014-10-15 15:02:02.892124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:41.343875"], ["nonce", #], ["updated_at", "2014-10-15 15:02:41.343875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 14ms (Views: 4.1ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:41.357969"], ["nonce", #], ["updated_at", "2014-10-15 15:02:41.357969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:41.365068"], ["nonce", #], ["updated_at", "2014-10-15 15:02:41.365068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:41.368975"], ["nonce", #], ["updated_at", "2014-10-15 15:02:41.368975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:41.378828"], ["nonce", #], ["updated_at", "2014-10-15 15:02:41.378828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:41.383643"], ["nonce", #], ["updated_at", "2014-10-15 15:02:41.383643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:41.387969"], ["nonce", #], ["updated_at", "2014-10-15 15:02:41.387969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:02:41.394810"], ["nonce", #], ["updated_at", "2014-10-15 15:02:41.394810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:18.950614"], ["nonce", #], ["updated_at", "2014-10-15 15:03:18.950614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:18.967254"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:03:18.967254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:03:18.969519"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 27ms (ActiveRecord: 4.6ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.717740"], ["nonce", "100"], ["updated_at", "2014-10-15 15:03:24.717740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.720460"], ["nonce", "100"], ["updated_at", "2014-10-15 15:03:24.720460"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.722964"], ["nonce", "100"], ["updated_at", "2014-10-15 15:03:24.722964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.773877"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 15:03:24.773877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:03:24.784064"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 15:03:24.784064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 20]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:03:24.787369"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 15:03:24.787369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 21]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:03:24.790742"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:03:24.790742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:03:24.795793"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:03:24.795793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:03:24.798392"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:03:24.798392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.831163"], ["nonce", #], ["updated_at", "2014-10-15 15:03:24.831163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.836664"], ["nonce", #], ["updated_at", "2014-10-15 15:03:24.836664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.843493"], ["nonce", #], ["updated_at", "2014-10-15 15:03:24.843493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.848344"], ["nonce", #], ["updated_at", "2014-10-15 15:03:24.848344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.852273"], ["nonce", #], ["updated_at", "2014-10-15 15:03:24.852273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.854445"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:03:24.854445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:03:24.856333"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.860860"], ["nonce", #], ["updated_at", "2014-10-15 15:03:24.860860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.865019"], ["nonce", #], ["updated_at", "2014-10-15 15:03:24.865019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:24.869484"], ["nonce", #], ["updated_at", "2014-10-15 15:03:24.869484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:03:40.772772"], ["nonce", #], ["updated_at", "2014-10-15 15:03:40.772772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 14ms (Views: 4.7ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.483882"], ["nonce", #], ["updated_at", "2014-10-15 15:04:07.483882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.489857"], ["nonce", #], ["updated_at", "2014-10-15 15:04:07.489857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.493888"], ["nonce", #], ["updated_at", "2014-10-15 15:04:07.493888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.506156"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:04:07.506156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:04:07.508836"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.514087"], ["nonce", #], ["updated_at", "2014-10-15 15:04:07.514087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.518595"], ["nonce", #], ["updated_at", "2014-10-15 15:04:07.518595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.522104"], ["nonce", #], ["updated_at", "2014-10-15 15:04:07.522104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.524219"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:04:07.524219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:04:07.525591"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.529576"], ["nonce", #], ["updated_at", "2014-10-15 15:04:07.529576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.532076"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:04:07.532076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:04:07.533569"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:07.538386"], ["nonce", #], ["updated_at", "2014-10-15 15:04:07.538386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.050259"], ["nonce", "100"], ["updated_at", "2014-10-15 15:04:11.050259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.053135"], ["nonce", "100"], ["updated_at", "2014-10-15 15:04:11.053135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.054046"], ["nonce", "100"], ["updated_at", "2014-10-15 15:04:11.054046"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.094957"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 15:04:11.094957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:11.102083"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:04:11.102083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:11.106901"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:04:11.106901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:11.109712"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:04:11.109712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:11.112346"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 15:04:11.112346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 33]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:11.115302"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 15:04:11.115302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 34]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.120238"], ["nonce", #], ["updated_at", "2014-10-15 15:04:11.120238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.122536"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:04:11.122536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:04:11.124415"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.129094"], ["nonce", #], ["updated_at", "2014-10-15 15:04:11.129094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.134441"], ["nonce", #], ["updated_at", "2014-10-15 15:04:11.134441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.149449"], ["nonce", #], ["updated_at", "2014-10-15 15:04:11.149449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.152842"], ["nonce", #], ["updated_at", "2014-10-15 15:04:11.152842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.155213"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:04:11.155213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 36) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 36 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:04:11.156829"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.161012"], ["nonce", #], ["updated_at", "2014-10-15 15:04:11.161012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.164924"], ["nonce", #], ["updated_at", "2014-10-15 15:04:11.164924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.168157"], ["nonce", #], ["updated_at", "2014-10-15 15:04:11.168157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:11.170146"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:04:11.170146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:04:11.171534"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:53.715775"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 15:04:53.715775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 38]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:53.720991"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 15:04:53.720991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 39]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.725995"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 15:04:53.725995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:53.766673"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:04:53.766673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:53.770291"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:04:53.770291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:04:53.774154"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:04:53.774154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.791666"], ["nonce", #], ["updated_at", "2014-10-15 15:04:53.791666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.796544"], ["nonce", #], ["updated_at", "2014-10-15 15:04:53.796544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.800767"], ["nonce", #], ["updated_at", "2014-10-15 15:04:53.800767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.803051"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:04:53.803051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:04:53.804966"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.809884"], ["nonce", #], ["updated_at", "2014-10-15 15:04:53.809884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.813845"], ["nonce", #], ["updated_at", "2014-10-15 15:04:53.813845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.816008"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:04:53.816008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 45) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 45 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:04:53.817456"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.821283"], ["nonce", #], ["updated_at", "2014-10-15 15:04:53.821283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.823275"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:04:53.823275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 46) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 46 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:04:53.824647"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.828939"], ["nonce", #], ["updated_at", "2014-10-15 15:04:53.828939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.833328"], ["nonce", #], ["updated_at", "2014-10-15 15:04:53.833328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.853375"], ["nonce", "100"], ["updated_at", "2014-10-15 15:04:53.853375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.854379"], ["nonce", "100"], ["updated_at", "2014-10-15 15:04:53.854379"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:04:53.856160"], ["nonce", "100"], ["updated_at", "2014-10-15 15:04:53.856160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.689447"], ["nonce", "100"], ["updated_at", "2014-10-15 15:05:08.689447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.693483"], ["nonce", "100"], ["updated_at", "2014-10-15 15:05:08.693483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.694388"], ["nonce", "100"], ["updated_at", "2014-10-15 15:05:08.694388"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.701714"], ["nonce", #], ["updated_at", "2014-10-15 15:05:08.701714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.705434"], ["nonce", #], ["updated_at", "2014-10-15 15:05:08.705434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.710404"], ["nonce", #], ["updated_at", "2014-10-15 15:05:08.710404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.744984"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:05:08.744984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 47) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 47 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:05:08.747278"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 39ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.762481"], ["nonce", #], ["updated_at", "2014-10-15 15:05:08.762481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.764651"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:05:08.764651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 48) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 48 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:05:08.765981"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.770995"], ["nonce", #], ["updated_at", "2014-10-15 15:05:08.770995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.775005"], ["nonce", #], ["updated_at", "2014-10-15 15:05:08.775005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.779228"], ["nonce", #], ["updated_at", "2014-10-15 15:05:08.779228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.782836"], ["nonce", #], ["updated_at", "2014-10-15 15:05:08.782836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (2.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.785003"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 15:05:08.785003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 49) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 49 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 15:05:08.788680"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 7ms (ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:05:08.807712"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:05:08.807712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:05:08.813113"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:05:08.813113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:05:08.815790"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 15:05:08.815790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 15:05:08.829308"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 15:05:08.829308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:05:08.835388"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 15:05:08.835388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 54]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 15:05:08.838296"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 15:05:08.838296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 55]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.075710"], ["nonce", #], ["updated_at", "2014-10-15 18:37:31.075710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.081759"], ["nonce", #], ["updated_at", "2014-10-15 18:37:31.081759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.086204"], ["nonce", #], ["updated_at", "2014-10-15 18:37:31.086204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.097437"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:37:31.097437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:37:31.099950"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 1.8ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.104641"], ["nonce", #], ["updated_at", "2014-10-15 18:37:31.104641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.106589"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:37:31.106589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:37:31.107796"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.111899"], ["nonce", #], ["updated_at", "2014-10-15 18:37:31.111899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.116998"], ["nonce", #], ["updated_at", "2014-10-15 18:37:31.116998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.120397"], ["nonce", #], ["updated_at", "2014-10-15 18:37:31.120397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.122732"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:37:31.122732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:37:31.124328"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.128160"], ["nonce", #], ["updated_at", "2014-10-15 18:37:31.128160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:37:31.173359"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 18:37:31.173359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:37:31.177365"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 18:37:31.177365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.184722"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 18:37:31.184722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:37:31.203168"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 18:37:31.203168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:37:31.206840"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 18:37:31.206840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:37:31.210604"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 18:37:31.210604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.219271"], ["nonce", "100"], ["updated_at", "2014-10-15 18:37:31.219271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.220297"], ["nonce", "100"], ["updated_at", "2014-10-15 18:37:31.220297"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:37:31.222025"], ["nonce", "100"], ["updated_at", "2014-10-15 18:37:31.222025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.844766"], ["nonce", "100"], ["updated_at", "2014-10-15 18:42:13.844766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.848547"], ["nonce", "100"], ["updated_at", "2014-10-15 18:42:13.848547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.849349"], ["nonce", "100"], ["updated_at", "2014-10-15 18:42:13.849349"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.903794"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 18:42:13.903794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:42:13.912027"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 18:42:13.912027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:42:13.915024"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 18:42:13.915024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:42:13.917764"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 18:42:13.917764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:42:13.920300"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 18:42:13.920300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 14]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 18:42:13.923195"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 18:42:13.923195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.938476"], ["nonce", #], ["updated_at", "2014-10-15 18:42:13.938476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.943587"], ["nonce", #], ["updated_at", "2014-10-15 18:42:13.943587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.946123"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:42:13.946123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:42:13.948137"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.952207"], ["nonce", #], ["updated_at", "2014-10-15 18:42:13.952207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.965359"], ["nonce", #], ["updated_at", "2014-10-15 18:42:13.965359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.967219"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:42:13.967219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:42:13.968526"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.972600"], ["nonce", #], ["updated_at", "2014-10-15 18:42:13.972600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.977297"], ["nonce", #], ["updated_at", "2014-10-15 18:42:13.977297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.981058"], ["nonce", #], ["updated_at", "2014-10-15 18:42:13.981058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.984308"], ["nonce", #], ["updated_at", "2014-10-15 18:42:13.984308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:42:13.986192"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:42:13.986192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:42:13.987414"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:46:41.236729"], ["nonce", #], ["updated_at", "2014-10-15 18:46:41.236729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 13ms (Views: 4.3ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:21.752035"], ["nonce", #], ["updated_at", "2014-10-15 18:47:21.752035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:21.757782"], ["nonce", #], ["updated_at", "2014-10-15 18:47:21.757782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:21.762042"], ["nonce", #], ["updated_at", "2014-10-15 18:47:21.762042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:21.773184"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:47:21.773184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:47:21.775566"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 15ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:21.780298"], ["nonce", #], ["updated_at", "2014-10-15 18:47:21.780298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:21.784722"], ["nonce", #], ["updated_at", "2014-10-15 18:47:21.784722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:21.789398"], ["nonce", #], ["updated_at", "2014-10-15 18:47:21.789398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:21.792711"], ["nonce", #], ["updated_at", "2014-10-15 18:47:21.792711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:21.794622"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:47:21.794622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:47:21.795957"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.789621"], ["nonce", #], ["updated_at", "2014-10-15 18:47:55.789621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.795762"], ["nonce", #], ["updated_at", "2014-10-15 18:47:55.795762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.808886"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:47:55.808886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:47:55.810970"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.815901"], ["nonce", #], ["updated_at", "2014-10-15 18:47:55.815901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.828336"], ["nonce", #], ["updated_at", "2014-10-15 18:47:55.828336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.833115"], ["nonce", #], ["updated_at", "2014-10-15 18:47:55.833115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.837456"], ["nonce", #], ["updated_at", "2014-10-15 18:47:55.837456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.841007"], ["nonce", #], ["updated_at", "2014-10-15 18:47:55.841007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.842851"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:47:55.842851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:47:55.844004"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.847569"], ["nonce", #], ["updated_at", "2014-10-15 18:47:55.847569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:47:55.849841"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:47:55.849841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:47:55.851137"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.313728"], ["nonce", #], ["updated_at", "2014-10-15 18:48:11.313728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.320543"], ["nonce", #], ["updated_at", "2014-10-15 18:48:11.320543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.327812"], ["nonce", #], ["updated_at", "2014-10-15 18:48:11.327812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.339894"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:48:11.339894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:48:11.342044"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.358506"], ["nonce", #], ["updated_at", "2014-10-15 18:48:11.358506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.363387"], ["nonce", #], ["updated_at", "2014-10-15 18:48:11.363387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.366871"], ["nonce", #], ["updated_at", "2014-10-15 18:48:11.366871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.368869"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:48:11.368869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:48:11.370128"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.373745"], ["nonce", #], ["updated_at", "2014-10-15 18:48:11.373745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.375585"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:48:11.375585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:48:11.376790"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:48:11.380461"], ["nonce", #], ["updated_at", "2014-10-15 18:48:11.380461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:49:20.870065"], ["nonce", #], ["updated_at", "2014-10-15 18:49:20.870065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:49:41.671519"], ["nonce", #], ["updated_at", "2014-10-15 18:49:41.671519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.736787"], ["nonce", #], ["updated_at", "2014-10-15 18:50:12.736787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.753623"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:50:12.753623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:50:12.756128"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 5.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.767598"], ["nonce", #], ["updated_at", "2014-10-15 18:50:12.767598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.771119"], ["nonce", #], ["updated_at", "2014-10-15 18:50:12.771119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.775665"], ["nonce", #], ["updated_at", "2014-10-15 18:50:12.775665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.779920"], ["nonce", #], ["updated_at", "2014-10-15 18:50:12.779920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.783777"], ["nonce", #], ["updated_at", "2014-10-15 18:50:12.783777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.785828"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:50:12.785828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:50:12.787070"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.791565"], ["nonce", #], ["updated_at", "2014-10-15 18:50:12.791565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.793517"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 18:50:12.793517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 18:50:12.794924"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 18:50:12.799940"], ["nonce", #], ["updated_at", "2014-10-15 18:50:12.799940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:18:49.533817"], ["nonce", #], ["updated_at", "2014-10-15 19:18:49.533817"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:18:49.593425"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:18:49.593425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:18:49.600341"], ["user_image", #]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3836ms (ActiveRecord: 7.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1177ms (Views: 12.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.319164"], ["nonce", #], ["updated_at", "2014-10-15 19:19:01.319164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.3ms) Completed 200 OK in 14ms (Views: 5.3ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.331776"], ["nonce", #], ["updated_at", "2014-10-15 19:19:01.331776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.345875"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:19:01.345875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 31) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 31 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:19:01.349127"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 21ms (ActiveRecord: 3.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.354980"], ["nonce", #], ["updated_at", "2014-10-15 19:19:01.354980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.369869"], ["nonce", #], ["updated_at", "2014-10-15 19:19:01.369869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.373824"], ["nonce", #], ["updated_at", "2014-10-15 19:19:01.373824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.375806"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:19:01.375806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 32) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 32 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:19:01.377095"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.380990"], ["nonce", #], ["updated_at", "2014-10-15 19:19:01.380990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.385429"], ["nonce", #], ["updated_at", "2014-10-15 19:19:01.385429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.388786"], ["nonce", #], ["updated_at", "2014-10-15 19:19:01.388786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:19:01.391172"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:19:01.391172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 33) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 33 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:19:01.392795"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.683054"], ["nonce", #], ["updated_at", "2014-10-15 19:20:11.683054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 13ms (Views: 4.2ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.698842"], ["nonce", #], ["updated_at", "2014-10-15 19:20:11.698842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.702628"], ["nonce", #], ["updated_at", "2014-10-15 19:20:11.702628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.714915"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:20:11.714915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:20:11.716997"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 1.5ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.722801"], ["nonce", #], ["updated_at", "2014-10-15 19:20:11.722801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.727750"], ["nonce", #], ["updated_at", "2014-10-15 19:20:11.727750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.731490"], ["nonce", #], ["updated_at", "2014-10-15 19:20:11.731490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.733433"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:20:11.733433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:20:11.734585"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.738736"], ["nonce", #], ["updated_at", "2014-10-15 19:20:11.738736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.741948"], ["nonce", #], ["updated_at", "2014-10-15 19:20:11.741948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:11.744031"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:20:11.744031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 36) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 36 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:20:11.745309"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.929018"], ["nonce", #], ["updated_at", "2014-10-15 19:20:54.929018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.935617"], ["nonce", #], ["updated_at", "2014-10-15 19:20:54.935617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.946864"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:20:54.946864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:20:54.948983"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 15ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.960085"], ["nonce", #], ["updated_at", "2014-10-15 19:20:54.960085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.964881"], ["nonce", #], ["updated_at", "2014-10-15 19:20:54.964881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.970860"], ["nonce", #], ["updated_at", "2014-10-15 19:20:54.970860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.974696"], ["nonce", #], ["updated_at", "2014-10-15 19:20:54.974696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.978010"], ["nonce", #], ["updated_at", "2014-10-15 19:20:54.978010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.979938"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:20:54.979938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:20:54.981097"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.984508"], ["nonce", #], ["updated_at", "2014-10-15 19:20:54.984508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:20:54.986373"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:20:54.986373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:20:54.987643"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:51.970555"], ["nonce", "100"], ["updated_at", "2014-10-15 19:26:51.970555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:51.973110"], ["nonce", "100"], ["updated_at", "2014-10-15 19:26:51.973110"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:51.975423"], ["nonce", "100"], ["updated_at", "2014-10-15 19:26:51.975423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:51.985382"], ["nonce", #], ["updated_at", "2014-10-15 19:26:51.985382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:51.989055"], ["nonce", #], ["updated_at", "2014-10-15 19:26:51.989055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:51.998060"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:26:51.998060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 40) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 40 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:26:52.000213"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:52.004299"], ["nonce", #], ["updated_at", "2014-10-15 19:26:52.004299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:52.008069"], ["nonce", #], ["updated_at", "2014-10-15 19:26:52.008069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:52.010017"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:26:52.010017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 41) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 41 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:26:52.011161"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:52.014964"], ["nonce", #], ["updated_at", "2014-10-15 19:26:52.014964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:52.044933"], ["nonce", #], ["updated_at", "2014-10-15 19:26:52.044933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:52.048627"], ["nonce", #], ["updated_at", "2014-10-15 19:26:52.048627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:52.051734"], ["nonce", #], ["updated_at", "2014-10-15 19:26:52.051734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:52.053584"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:26:52.053584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:26:52.054772"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:26:52.070682"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:26:52.070682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 43]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:26:52.073700"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:26:52.073700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 44]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:26:52.076396"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:26:52.076396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:26:52.080755"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:26:52.080755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:26:52.083549"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:26:52.083549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:26:52.089817"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:26:52.089817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.293142"], ["nonce", "100"], ["updated_at", "2014-10-15 19:33:22.293142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.296256"], ["nonce", "100"], ["updated_at", "2014-10-15 19:33:22.296256"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.298631"], ["nonce", "100"], ["updated_at", "2014-10-15 19:33:22.298631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:22.341038"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:33:22.341038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 49]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:22.344386"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:33:22.344386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 50]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:22.346956"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:33:22.346956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:22.375456"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:33:22.375456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:22.378103"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:33:22.378103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.383402"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:33:22.383402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.405696"], ["nonce", #], ["updated_at", "2014-10-15 19:33:22.405696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.409369"], ["nonce", #], ["updated_at", "2014-10-15 19:33:22.409369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.411293"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:33:22.411293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 55) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 55 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:33:22.414009"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.418740"], ["nonce", #], ["updated_at", "2014-10-15 19:33:22.418740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.423585"], ["nonce", #], ["updated_at", "2014-10-15 19:33:22.423585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.426863"], ["nonce", #], ["updated_at", "2014-10-15 19:33:22.426863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.428817"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:33:22.428817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 56) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 56 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:33:22.430083"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.434109"], ["nonce", #], ["updated_at", "2014-10-15 19:33:22.434109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.438279"], ["nonce", #], ["updated_at", "2014-10-15 19:33:22.438279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.441621"], ["nonce", #], ["updated_at", "2014-10-15 19:33:22.441621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:22.443622"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:33:22.443622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 57) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 57 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:33:22.445307"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.476488"], ["nonce", "100"], ["updated_at", "2014-10-15 19:33:35.476488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.479414"], ["nonce", "100"], ["updated_at", "2014-10-15 19:33:35.479414"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.481887"], ["nonce", "100"], ["updated_at", "2014-10-15 19:33:35.481887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:35.495656"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:33:35.495656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:35.499247"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:33:35.499247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:35.502256"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:33:35.502256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:35.505757"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:33:35.505757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 61]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:33:35.509471"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:33:35.509471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 62]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.547479"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:33:35.547479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.583614"], ["nonce", #], ["updated_at", "2014-10-15 19:33:35.583614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.586000"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:33:35.586000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 64) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 64 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:33:35.587935"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.592239"], ["nonce", #], ["updated_at", "2014-10-15 19:33:35.592239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.600652"], ["nonce", #], ["updated_at", "2014-10-15 19:33:35.600652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.605146"], ["nonce", #], ["updated_at", "2014-10-15 19:33:35.605146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.608316"], ["nonce", #], ["updated_at", "2014-10-15 19:33:35.608316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.610211"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:33:35.610211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 65) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 65 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:33:35.611493"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.615011"], ["nonce", #], ["updated_at", "2014-10-15 19:33:35.615011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.617882"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:33:35.617882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 66) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 66 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:33:35.619173"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.623377"], ["nonce", #], ["updated_at", "2014-10-15 19:33:35.623377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:33:35.627158"], ["nonce", #], ["updated_at", "2014-10-15 19:33:35.627158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:03.353088"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:34:03.353088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 67]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:03.358441"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:34:03.358441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 68]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:03.361227"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:34:03.361227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:03.364456"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:34:03.364456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:03.366682"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:34:03.366682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.371886"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:34:03.371886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.436891"], ["nonce", "100"], ["updated_at", "2014-10-15 19:34:03.436891"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.438361"], ["nonce", "100"], ["updated_at", "2014-10-15 19:34:03.438361"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.440418"], ["nonce", "100"], ["updated_at", "2014-10-15 19:34:03.440418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.444674"], ["nonce", #], ["updated_at", "2014-10-15 19:34:03.444674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.452402"], ["nonce", #], ["updated_at", "2014-10-15 19:34:03.452402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.454598"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:34:03.454598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 73) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 73 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:34:03.456426"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.461104"], ["nonce", #], ["updated_at", "2014-10-15 19:34:03.461104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.465694"], ["nonce", #], ["updated_at", "2014-10-15 19:34:03.465694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.470203"], ["nonce", #], ["updated_at", "2014-10-15 19:34:03.470203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.473736"], ["nonce", #], ["updated_at", "2014-10-15 19:34:03.473736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.475716"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:34:03.475716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 74) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 74 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:34:03.477361"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.481381"], ["nonce", #], ["updated_at", "2014-10-15 19:34:03.481381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.484475"], ["nonce", #], ["updated_at", "2014-10-15 19:34:03.484475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:03.486205"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:34:03.486205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 75) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 75 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:34:03.487359"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.769585"], ["nonce", "100"], ["updated_at", "2014-10-15 19:34:12.769585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.772060"], ["nonce", "100"], ["updated_at", "2014-10-15 19:34:12.772060"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.774459"], ["nonce", "100"], ["updated_at", "2014-10-15 19:34:12.774459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.822837"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:34:12.822837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:12.832370"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:34:12.832370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 77]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:12.835164"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:34:12.835164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 78]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:12.838262"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:34:12.838262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:12.842947"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:34:12.842947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:34:12.845588"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:34:12.845588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.861798"], ["nonce", #], ["updated_at", "2014-10-15 19:34:12.861798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.865422"], ["nonce", #], ["updated_at", "2014-10-15 19:34:12.865422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.873261"], ["nonce", #], ["updated_at", "2014-10-15 19:34:12.873261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.877209"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:34:12.877209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 82) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 82 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:34:12.879267"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.884942"], ["nonce", #], ["updated_at", "2014-10-15 19:34:12.884942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.888427"], ["nonce", #], ["updated_at", "2014-10-15 19:34:12.888427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.890825"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:34:12.890825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 83) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 83 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:34:12.892317"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.895984"], ["nonce", #], ["updated_at", "2014-10-15 19:34:12.895984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.897752"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:34:12.897752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 84) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 84 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:34:12.898947"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.902768"], ["nonce", #], ["updated_at", "2014-10-15 19:34:12.902768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:34:12.906497"], ["nonce", #], ["updated_at", "2014-10-15 19:34:12.906497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:35:03.411381"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:35:03.411381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:35:03.416528"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:35:03.416528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:35:03.419852"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:35:03.419852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.433657"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:35:03.433657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:35:03.439556"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:35:03.439556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 89]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:35:03.442382"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:35:03.442382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 90]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.476606"], ["nonce", #], ["updated_at", "2014-10-15 19:35:03.476606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.478907"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:35:03.478907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 91) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 91 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:35:03.480584"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.485359"], ["nonce", #], ["updated_at", "2014-10-15 19:35:03.485359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.488643"], ["nonce", #], ["updated_at", "2014-10-15 19:35:03.488643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.507477"], ["nonce", #], ["updated_at", "2014-10-15 19:35:03.507477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.509558"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:35:03.509558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 92) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 92 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:35:03.510738"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.514518"], ["nonce", #], ["updated_at", "2014-10-15 19:35:03.514518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.518705"], ["nonce", #], ["updated_at", "2014-10-15 19:35:03.518705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.523558"], ["nonce", #], ["updated_at", "2014-10-15 19:35:03.523558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.528137"], ["nonce", #], ["updated_at", "2014-10-15 19:35:03.528137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.530313"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:35:03.530313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 93) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 93 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:35:03.531739"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.546926"], ["nonce", "100"], ["updated_at", "2014-10-15 19:35:03.546926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.548588"], ["nonce", "100"], ["updated_at", "2014-10-15 19:35:03.548588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:35:03.549318"], ["nonce", "100"], ["updated_at", "2014-10-15 19:35:03.549318"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:40.288740"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:37:40.288740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:40.292840"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:37:40.292840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:40.295192"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:37:40.295192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:40.322362"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:37:40.322362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 97]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:40.326248"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:37:40.326248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 98]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.335173"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:37:40.335173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.359461"], ["nonce", "100"], ["updated_at", "2014-10-15 19:37:40.359461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.360837"], ["nonce", "100"], ["updated_at", "2014-10-15 19:37:40.360837"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.363049"], ["nonce", "100"], ["updated_at", "2014-10-15 19:37:40.363049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.368402"], ["nonce", #], ["updated_at", "2014-10-15 19:37:40.368402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.371885"], ["nonce", #], ["updated_at", "2014-10-15 19:37:40.371885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.373756"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:37:40.373756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 100) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 100 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:37:40.375783"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.386966"], ["nonce", #], ["updated_at", "2014-10-15 19:37:40.386966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.391507"], ["nonce", #], ["updated_at", "2014-10-15 19:37:40.391507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.396040"], ["nonce", #], ["updated_at", "2014-10-15 19:37:40.396040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.399669"], ["nonce", #], ["updated_at", "2014-10-15 19:37:40.399669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.401516"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:37:40.401516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 101) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 101 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:37:40.402643"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.406380"], ["nonce", #], ["updated_at", "2014-10-15 19:37:40.406380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.409475"], ["nonce", #], ["updated_at", "2014-10-15 19:37:40.409475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:40.411265"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:37:40.411265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 102) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 102 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:37:40.412573"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.095233"], ["nonce", "100"], ["updated_at", "2014-10-15 19:37:47.095233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.099137"], ["nonce", "100"], ["updated_at", "2014-10-15 19:37:47.099137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.099970"], ["nonce", "100"], ["updated_at", "2014-10-15 19:37:47.099970"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.150646"], ["nonce", #], ["updated_at", "2014-10-15 19:37:47.150646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.155752"], ["nonce", #], ["updated_at", "2014-10-15 19:37:47.155752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.158224"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:37:47.158224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 103) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 103 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:37:47.160562"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.164926"], ["nonce", #], ["updated_at", "2014-10-15 19:37:47.164926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.178093"], ["nonce", #], ["updated_at", "2014-10-15 19:37:47.178093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.180018"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:37:47.180018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 104) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 104 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:37:47.181407"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.185841"], ["nonce", #], ["updated_at", "2014-10-15 19:37:47.185841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.189859"], ["nonce", #], ["updated_at", "2014-10-15 19:37:47.189859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.193427"], ["nonce", #], ["updated_at", "2014-10-15 19:37:47.193427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.196651"], ["nonce", #], ["updated_at", "2014-10-15 19:37:47.196651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.198454"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:37:47.198454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 105) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 105 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:37:47.199642"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:37:47.213714"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:37:47.213714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:47.221660"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:37:47.221660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:47.224105"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:37:47.224105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:47.226533"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:37:47.226533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:47.228859"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:37:47.228859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 110]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:37:47.231386"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:37:47.231386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 111]]  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:44.922234"], ["nonce", "100"], ["updated_at", "2014-10-15 19:39:44.922234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:44.924802"], ["nonce", "100"], ["updated_at", "2014-10-15 19:39:44.924802"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:44.927406"], ["nonce", "100"], ["updated_at", "2014-10-15 19:39:44.927406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:44.975577"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:39:44.975577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:39:44.985021"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:39:44.985021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 113]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:39:44.987878"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:39:44.987878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 114]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:39:44.993048"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:39:44.993048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:39:44.995748"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:39:44.995748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:39:44.998018"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:39:44.998018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.022076"], ["nonce", #], ["updated_at", "2014-10-15 19:39:45.022076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.028842"], ["nonce", #], ["updated_at", "2014-10-15 19:39:45.028842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.035074"], ["nonce", #], ["updated_at", "2014-10-15 19:39:45.035074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.036977"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:39:45.036977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 118) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 118 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:39:45.038634"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.042482"], ["nonce", #], ["updated_at", "2014-10-15 19:39:45.042482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.044580"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:39:45.044580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 119) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 119 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:39:45.046058"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.049950"], ["nonce", #], ["updated_at", "2014-10-15 19:39:45.049950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.053850"], ["nonce", #], ["updated_at", "2014-10-15 19:39:45.053850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.056937"], ["nonce", #], ["updated_at", "2014-10-15 19:39:45.056937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.058742"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:39:45.058742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 120) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 120 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:39:45.059942"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:39:45.063784"], ["nonce", #], ["updated_at", "2014-10-15 19:39:45.063784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:29.634390"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:40:29.634390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:29.639671"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:40:29.639671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:29.642126"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:40:29.642126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.654970"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:40:29.654970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:29.661070"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:40:29.661070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 125]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.8ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:29.687007"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:40:29.687007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 126]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.698750"], ["nonce", "100"], ["updated_at", "2014-10-15 19:40:29.698750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.700687"], ["nonce", "100"], ["updated_at", "2014-10-15 19:40:29.700687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.701365"], ["nonce", "100"], ["updated_at", "2014-10-15 19:40:29.701365"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.707357"], ["nonce", #], ["updated_at", "2014-10-15 19:40:29.707357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.711624"], ["nonce", #], ["updated_at", "2014-10-15 19:40:29.711624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.719479"], ["nonce", #], ["updated_at", "2014-10-15 19:40:29.719479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.723632"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:40:29.723632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 127) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 127 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:40:29.725456"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.741539"], ["nonce", #], ["updated_at", "2014-10-15 19:40:29.741539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.745494"], ["nonce", #], ["updated_at", "2014-10-15 19:40:29.745494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.748086"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:40:29.748086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 128) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 128 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:40:29.749590"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.753345"], ["nonce", #], ["updated_at", "2014-10-15 19:40:29.753345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.755252"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:40:29.755252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 129) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 129 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:40:29.756464"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.760416"], ["nonce", #], ["updated_at", "2014-10-15 19:40:29.760416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:29.763908"], ["nonce", #], ["updated_at", "2014-10-15 19:40:29.763908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms)[0m BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.534834"], ["nonce", #], ["updated_at", "2014-10-15 19:40:39.534834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.551409"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:40:39.551409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 130) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 130 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:40:39.554006"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 5.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.559528"], ["nonce", #], ["updated_at", "2014-10-15 19:40:39.559528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.567159"], ["nonce", #], ["updated_at", "2014-10-15 19:40:39.567159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.582919"], ["nonce", #], ["updated_at", "2014-10-15 19:40:39.582919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.584957"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:40:39.584957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 131) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 131 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:40:39.586109"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.589927"], ["nonce", #], ["updated_at", "2014-10-15 19:40:39.589927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.619296"], ["nonce", #], ["updated_at", "2014-10-15 19:40:39.619296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.623674"], ["nonce", #], ["updated_at", "2014-10-15 19:40:39.623674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.627144"], ["nonce", #], ["updated_at", "2014-10-15 19:40:39.627144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.629040"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:40:39.629040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 132) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 132 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:40:39.630354"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.647990"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:40:39.647990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:39.654150"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:40:39.654150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:39.658282"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:40:39.658282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:39.660776"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:40:39.660776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:39.663179"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:40:39.663179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 137]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:40:39.665951"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:40:39.665951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 138]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.671629"], ["nonce", "100"], ["updated_at", "2014-10-15 19:40:39.671629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.673409"], ["nonce", "100"], ["updated_at", "2014-10-15 19:40:39.673409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:40:39.674070"], ["nonce", "100"], ["updated_at", "2014-10-15 19:40:39.674070"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.031366"], ["nonce", "100"], ["updated_at", "2014-10-15 19:41:01.031366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.035102"], ["nonce", "100"], ["updated_at", "2014-10-15 19:41:01.035102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.035980"], ["nonce", "100"], ["updated_at", "2014-10-15 19:41:01.035980"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.108040"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:41:01.108040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:01.114148"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:41:01.114148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:01.118649"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:41:01.118649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:01.121606"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:41:01.121606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:01.124061"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:41:01.124061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 143]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:01.126715"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:41:01.126715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 144]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.146939"], ["nonce", #], ["updated_at", "2014-10-15 19:41:01.146939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.150510"], ["nonce", #], ["updated_at", "2014-10-15 19:41:01.150510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.155229"], ["nonce", #], ["updated_at", "2014-10-15 19:41:01.155229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.157315"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:41:01.157315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 145) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 145 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:41:01.159474"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.173332"], ["nonce", #], ["updated_at", "2014-10-15 19:41:01.173332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.175274"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:41:01.175274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 146) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 146 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:41:01.176593"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.180533"], ["nonce", #], ["updated_at", "2014-10-15 19:41:01.180533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.182422"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:41:01.182422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 147) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 147 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:41:01.183611"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.187996"], ["nonce", #], ["updated_at", "2014-10-15 19:41:01.187996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.191824"], ["nonce", #], ["updated_at", "2014-10-15 19:41:01.191824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:01.195393"], ["nonce", #], ["updated_at", "2014-10-15 19:41:01.195393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.358928"], ["nonce", #], ["updated_at", "2014-10-15 19:41:30.358928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.374712"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:41:30.374712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 148) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 148 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:41:30.376928"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 25ms (ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.381570"], ["nonce", #], ["updated_at", "2014-10-15 19:41:30.381570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.385696"], ["nonce", #], ["updated_at", "2014-10-15 19:41:30.385696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.397364"], ["nonce", #], ["updated_at", "2014-10-15 19:41:30.397364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.399639"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:41:30.399639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 149) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 149 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:41:30.400928"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.405569"], ["nonce", #], ["updated_at", "2014-10-15 19:41:30.405569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.434302"], ["nonce", #], ["updated_at", "2014-10-15 19:41:30.434302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.437564"], ["nonce", #], ["updated_at", "2014-10-15 19:41:30.437564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.439377"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:41:30.439377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 150) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 150 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:41:30.440582"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.444370"], ["nonce", #], ["updated_at", "2014-10-15 19:41:30.444370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:30.481290"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:41:30.481290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 151]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:30.484796"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:41:30.484796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 152]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:30.487764"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:41:30.487764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:30.491018"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:41:30.491018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:41:30.494139"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:41:30.494139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.499589"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:41:30.499589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.524237"], ["nonce", "100"], ["updated_at", "2014-10-15 19:41:30.524237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.526044"], ["nonce", "100"], ["updated_at", "2014-10-15 19:41:30.526044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:41:30.526786"], ["nonce", "100"], ["updated_at", "2014-10-15 19:41:30.526786"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.518660"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:05.518660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.522939"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:05.522939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.523840"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:05.523840"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.582948"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:42:05.582948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:05.590812"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:05.590812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:05.593518"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:05.593518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:05.596682"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:05.596682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:05.599300"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:42:05.599300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 161]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:05.602286"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:42:05.602286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 162]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.611532"], ["nonce", #], ["updated_at", "2014-10-15 19:42:05.611532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.617258"], ["nonce", #], ["updated_at", "2014-10-15 19:42:05.617258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.619192"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:05.619192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 163) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 163 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:05.620804"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.625127"], ["nonce", #], ["updated_at", "2014-10-15 19:42:05.625127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.639283"], ["nonce", #], ["updated_at", "2014-10-15 19:42:05.639283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.641340"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:05.641340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 164) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 164 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:05.642574"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.646542"], ["nonce", #], ["updated_at", "2014-10-15 19:42:05.646542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.650148"], ["nonce", #], ["updated_at", "2014-10-15 19:42:05.650148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.654167"], ["nonce", #], ["updated_at", "2014-10-15 19:42:05.654167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.657385"], ["nonce", #], ["updated_at", "2014-10-15 19:42:05.657385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:05.659143"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:05.659143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 165) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 165 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:05.660274"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.764878"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:11.764878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.767300"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:11.767300"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.769941"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:11.769941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 26ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.828228"], ["nonce", #], ["updated_at", "2014-10-15 19:42:11.828228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.831706"], ["nonce", #], ["updated_at", "2014-10-15 19:42:11.831706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.835334"], ["nonce", #], ["updated_at", "2014-10-15 19:42:11.835334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.837903"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:11.837903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 166) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 166 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:11.839990"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.844085"], ["nonce", #], ["updated_at", "2014-10-15 19:42:11.844085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.845899"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:11.845899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 167) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 167 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:11.847091"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.851144"], ["nonce", #], ["updated_at", "2014-10-15 19:42:11.851144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.855473"], ["nonce", #], ["updated_at", "2014-10-15 19:42:11.855473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.858649"], ["nonce", #], ["updated_at", "2014-10-15 19:42:11.858649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.860870"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:11.860870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 168) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 168 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:11.862406"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.866487"], ["nonce", #], ["updated_at", "2014-10-15 19:42:11.866487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:11.886101"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:42:11.886101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 169]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:11.889137"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:42:11.889137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 170]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:11.893892"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:42:11.893892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:11.906774"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:11.906774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:11.909864"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:11.909864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:11.913408"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:11.913408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.073531"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:16.073531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.077084"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:16.077084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.078074"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:16.078074"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.083568"], ["nonce", #], ["updated_at", "2014-10-15 19:42:16.083568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.088773"], ["nonce", #], ["updated_at", "2014-10-15 19:42:16.088773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.123897"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:16.123897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 175) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 175 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:16.126043"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 39ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.130868"], ["nonce", #], ["updated_at", "2014-10-15 19:42:16.130868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.145149"], ["nonce", #], ["updated_at", "2014-10-15 19:42:16.145149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.149705"], ["nonce", #], ["updated_at", "2014-10-15 19:42:16.149705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.153121"], ["nonce", #], ["updated_at", "2014-10-15 19:42:16.153121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.155104"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:16.155104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 176) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 176 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:16.156362"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.160322"], ["nonce", #], ["updated_at", "2014-10-15 19:42:16.160322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.163505"], ["nonce", #], ["updated_at", "2014-10-15 19:42:16.163505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.165642"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:16.165642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 177) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 177 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:16.167025"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:16.188678"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:42:16.188678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:16.196184"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:16.196184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:16.198684"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:16.198684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:16.201144"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:16.201144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:16.203462"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:42:16.203462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 182]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:16.206022"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:42:16.206022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 183]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:49.686521"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:42:49.686521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 184]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:49.693304"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:42:49.693304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 185]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:49.698230"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:42:49.698230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:49.713391"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:49.713391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:49.717440"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:49.717440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:49.719882"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:49.719882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:49.757764"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:49.757764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:49.759129"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:49.759129"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:49.761438"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:49.761438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.170405"], ["nonce", #], ["updated_at", "2014-10-15 19:42:57.170405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.3ms) Completed 200 OK in 12ms (Views: 4.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.183806"], ["nonce", #], ["updated_at", "2014-10-15 19:42:57.183806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.187167"], ["nonce", #], ["updated_at", "2014-10-15 19:42:57.187167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.198464"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:57.198464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 190) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 190 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:57.200825"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 15ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.216546"], ["nonce", #], ["updated_at", "2014-10-15 19:42:57.216546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.219871"], ["nonce", #], ["updated_at", "2014-10-15 19:42:57.219871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.222196"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:57.222196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 191) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 191 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:57.223665"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.252613"], ["nonce", #], ["updated_at", "2014-10-15 19:42:57.252613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.257926"], ["nonce", #], ["updated_at", "2014-10-15 19:42:57.257926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.261383"], ["nonce", #], ["updated_at", "2014-10-15 19:42:57.261383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.263250"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:42:57.263250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 192) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 192 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:42:57.264445"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.283015"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:57.283015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.284589"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:57.284589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.285224"], ["nonce", "100"], ["updated_at", "2014-10-15 19:42:57.285224"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:57.314608"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:57.314608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:57.317419"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:57.317419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:57.319794"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:42:57.319794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:42:57.331760"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:42:57.331760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:57.337330"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:42:57.337330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 197]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:42:57.340096"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:42:57.340096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 198]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.160592"], ["nonce", "100"], ["updated_at", "2014-10-15 19:44:08.160592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.163129"], ["nonce", "100"], ["updated_at", "2014-10-15 19:44:08.163129"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.165456"], ["nonce", "100"], ["updated_at", "2014-10-15 19:44:08.165456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.252399"], ["nonce", #], ["updated_at", "2014-10-15 19:44:08.252399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.258313"], ["nonce", #], ["updated_at", "2014-10-15 19:44:08.258313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.264290"], ["nonce", #], ["updated_at", "2014-10-15 19:44:08.264290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.266411"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:44:08.266411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 199) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 199 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:44:08.268303"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.272743"], ["nonce", #], ["updated_at", "2014-10-15 19:44:08.272743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.276900"], ["nonce", #], ["updated_at", "2014-10-15 19:44:08.276900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.280630"], ["nonce", #], ["updated_at", "2014-10-15 19:44:08.280630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.283703"], ["nonce", #], ["updated_at", "2014-10-15 19:44:08.283703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.285559"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:44:08.285559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 200) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 200 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:44:08.286790"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.290450"], ["nonce", #], ["updated_at", "2014-10-15 19:44:08.290450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.292511"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:44:08.292511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 201) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 201 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:44:08.294019"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (1.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:44:08.314734"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:44:08.314734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:44:08.324097"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:44:08.324097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 203]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:44:08.326935"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:44:08.326935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 204]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:44:08.331172"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:44:08.331172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:44:08.333646"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:44:08.333646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:44:08.335936"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:44:08.335936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:39.618516"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:53:39.618516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:39.623596"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:53:39.623596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:39.626834"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:53:39.626834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:39.629461"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:53:39.629461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 211]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:39.633540"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:53:39.633540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 212]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.644024"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:53:39.644024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.690280"], ["nonce", #], ["updated_at", "2014-10-15 19:53:39.690280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.692924"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:53:39.692924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 214) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 214 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:53:39.694635"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.705763"], ["nonce", #], ["updated_at", "2014-10-15 19:53:39.705763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.709755"], ["nonce", #], ["updated_at", "2014-10-15 19:53:39.709755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.723523"], ["nonce", #], ["updated_at", "2014-10-15 19:53:39.723523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.727430"], ["nonce", #], ["updated_at", "2014-10-15 19:53:39.727430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.729944"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:53:39.729944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 215) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 215 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:53:39.731514"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.736345"], ["nonce", #], ["updated_at", "2014-10-15 19:53:39.736345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.739829"], ["nonce", #], ["updated_at", "2014-10-15 19:53:39.739829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.741715"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:53:39.741715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 216) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 216 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:53:39.742871"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.746623"], ["nonce", #], ["updated_at", "2014-10-15 19:53:39.746623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.755205"], ["nonce", "100"], ["updated_at", "2014-10-15 19:53:39.755205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.756727"], ["nonce", "100"], ["updated_at", "2014-10-15 19:53:39.756727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:39.757359"], ["nonce", "100"], ["updated_at", "2014-10-15 19:53:39.757359"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.165759"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:53:48.165759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:48.175495"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:53:48.175495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 218]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:48.178375"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:53:48.178375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 219]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:48.183294"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:53:48.183294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:48.185751"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:53:48.185751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:53:48.187833"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:53:48.187833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.236478"], ["nonce", "100"], ["updated_at", "2014-10-15 19:53:48.236478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.238445"], ["nonce", "100"], ["updated_at", "2014-10-15 19:53:48.238445"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.240463"], ["nonce", "100"], ["updated_at", "2014-10-15 19:53:48.240463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.245936"], ["nonce", #], ["updated_at", "2014-10-15 19:53:48.245936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.253500"], ["nonce", #], ["updated_at", "2014-10-15 19:53:48.253500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.260780"], ["nonce", #], ["updated_at", "2014-10-15 19:53:48.260780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.263125"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:53:48.263125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 223) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 223 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:53:48.264863"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.269478"], ["nonce", #], ["updated_at", "2014-10-15 19:53:48.269478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.273469"], ["nonce", #], ["updated_at", "2014-10-15 19:53:48.273469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.275377"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:53:48.275377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 224) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 224 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:53:48.277012"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.281255"], ["nonce", #], ["updated_at", "2014-10-15 19:53:48.281255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.285032"], ["nonce", #], ["updated_at", "2014-10-15 19:53:48.285032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.288213"], ["nonce", #], ["updated_at", "2014-10-15 19:53:48.288213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:53:48.290125"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:53:48.290125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 225) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 225 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:53:48.291347"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:54:25.843124"], ["nonce", #], ["updated_at", "2014-10-15 19:54:25.843124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:54:25.854150"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:54:25.854150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 226) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 226 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:54:25.856530"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 20ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.487564"], ["nonce", #], ["updated_at", "2014-10-15 19:58:43.487564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 12ms (Views: 3.9ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.498090"], ["nonce", #], ["updated_at", "2014-10-15 19:58:43.498090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.511976"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:58:43.511976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 227) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 227 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:58:43.514830"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.519760"], ["nonce", #], ["updated_at", "2014-10-15 19:58:43.519760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.536714"], ["nonce", #], ["updated_at", "2014-10-15 19:58:43.536714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.540350"], ["nonce", #], ["updated_at", "2014-10-15 19:58:43.540350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.542505"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:58:43.542505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 228) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 228 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:58:43.543891"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.574294"], ["nonce", #], ["updated_at", "2014-10-15 19:58:43.574294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.579137"], ["nonce", #], ["updated_at", "2014-10-15 19:58:43.579137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.582320"], ["nonce", #], ["updated_at", "2014-10-15 19:58:43.582320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.584197"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 19:58:43.584197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 229) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 229 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 19:58:43.585491"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.624872"], ["nonce", "100"], ["updated_at", "2014-10-15 19:58:43.624872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.626758"], ["nonce", "100"], ["updated_at", "2014-10-15 19:58:43.626758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.627586"], ["nonce", "100"], ["updated_at", "2014-10-15 19:58:43.627586"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 19:58:43.644147"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 19:58:43.644147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:58:43.652070"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:58:43.652070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:58:43.654397"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:58:43.654397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:58:43.656615"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 19:58:43.656615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:58:43.659131"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 19:58:43.659131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 234]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 19:58:43.662315"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 19:58:43.662315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 235]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:05:55.807236"], ["nonce", #], ["updated_at", "2014-10-15 20:05:55.807236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:05:55.824434"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:05:55.824434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 236) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 236 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:05:55.826646"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 4.9ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:53.971163"], ["nonce", #], ["updated_at", "2014-10-15 20:07:53.971163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 4.0ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:53.983915"], ["nonce", #], ["updated_at", "2014-10-15 20:07:53.983915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:53.999787"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:07:53.999787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 237) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 237 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:07:54.002519"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 21ms (ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:54.007659"], ["nonce", #], ["updated_at", "2014-10-15 20:07:54.007659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:54.011801"], ["nonce", #], ["updated_at", "2014-10-15 20:07:54.011801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:54.014906"], ["nonce", #], ["updated_at", "2014-10-15 20:07:54.014906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:54.016790"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:07:54.016790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 238) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 238 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:07:54.018008"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:54.021565"], ["nonce", #], ["updated_at", "2014-10-15 20:07:54.021565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:54.024066"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:07:54.024066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 239) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 239 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:07:54.025626"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:54.029784"], ["nonce", #], ["updated_at", "2014-10-15 20:07:54.029784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:07:54.034496"], ["nonce", #], ["updated_at", "2014-10-15 20:07:54.034496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.229723"], ["nonce", "100"], ["updated_at", "2014-10-15 20:08:13.229723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.233573"], ["nonce", "100"], ["updated_at", "2014-10-15 20:08:13.233573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.234423"], ["nonce", "100"], ["updated_at", "2014-10-15 20:08:13.234423"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:13.279554"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:08:13.279554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:13.284786"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:08:13.284786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:13.287115"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:08:13.287115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.300248"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 20:08:13.300248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:13.306121"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 20:08:13.306121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 244]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:13.308866"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 20:08:13.308866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 245]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.317907"], ["nonce", #], ["updated_at", "2014-10-15 20:08:13.317907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.323380"], ["nonce", #], ["updated_at", "2014-10-15 20:08:13.323380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.326945"], ["nonce", #], ["updated_at", "2014-10-15 20:08:13.326945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.328966"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:13.328966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 246) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 246 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:13.330734"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"} Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.349233"], ["nonce", #], ["updated_at", "2014-10-15 20:08:13.349233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.351388"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:13.351388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 247) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 247 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:13.352852"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.357061"], ["nonce", #], ["updated_at", "2014-10-15 20:08:13.357061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.360801"], ["nonce", #], ["updated_at", "2014-10-15 20:08:13.360801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.364346"], ["nonce", #], ["updated_at", "2014-10-15 20:08:13.364346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.367512"], ["nonce", #], ["updated_at", "2014-10-15 20:08:13.367512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:13.369330"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:13.369330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 248) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 248 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:13.370573"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.393956"], ["nonce", #], ["updated_at", "2014-10-15 20:08:41.393956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 13ms (Views: 4.3ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.404729"], ["nonce", #], ["updated_at", "2014-10-15 20:08:41.404729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.418559"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:41.418559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 249) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 249 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:41.421101"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.426418"], ["nonce", #], ["updated_at", "2014-10-15 20:08:41.426418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.432209"], ["nonce", #], ["updated_at", "2014-10-15 20:08:41.432209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.434026"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:41.434026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 250) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 250 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:41.435136"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.446918"], ["nonce", #], ["updated_at", "2014-10-15 20:08:41.446918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.449045"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:41.449045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 251) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 251 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:41.450314"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.454828"], ["nonce", #], ["updated_at", "2014-10-15 20:08:41.454828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.459178"], ["nonce", #], ["updated_at", "2014-10-15 20:08:41.459178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.463664"], ["nonce", #], ["updated_at", "2014-10-15 20:08:41.463664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.465595"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:41.465595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 252) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 252 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:41.466714"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:41.470459"], ["nonce", #], ["updated_at", "2014-10-15 20:08:41.470459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.5ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:44.283383"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 20:08:44.283383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 253]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:44.290034"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 20:08:44.290034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 254]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.294737"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 20:08:44.294737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:44.309703"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:08:44.309703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:44.313519"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:08:44.313519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:08:44.316008"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:08:44.316008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.351615"], ["nonce", #], ["updated_at", "2014-10-15 20:08:44.351615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.355549"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:44.355549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 259) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 259 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:44.357411"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.369062"], ["nonce", #], ["updated_at", "2014-10-15 20:08:44.369062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.371359"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:44.371359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 260) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 260 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:44.372740"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.376772"], ["nonce", #], ["updated_at", "2014-10-15 20:08:44.376772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.381149"], ["nonce", #], ["updated_at", "2014-10-15 20:08:44.381149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.391879"], ["nonce", #], ["updated_at", "2014-10-15 20:08:44.391879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.395754"], ["nonce", #], ["updated_at", "2014-10-15 20:08:44.395754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.398656"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:44.398656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 261) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 261 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:44.399909"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.403726"], ["nonce", #], ["updated_at", "2014-10-15 20:08:44.403726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.407433"], ["nonce", #], ["updated_at", "2014-10-15 20:08:44.407433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.409404"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:08:44.409404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 262) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 262 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:08:44.410589"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.415008"], ["nonce", #], ["updated_at", "2014-10-15 20:08:44.415008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.451214"], ["nonce", "100"], ["updated_at", "2014-10-15 20:08:44.451214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.453057"], ["nonce", "100"], ["updated_at", "2014-10-15 20:08:44.453057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:08:44.453850"], ["nonce", "100"], ["updated_at", "2014-10-15 20:08:44.453850"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.276079"], ["nonce", #], ["updated_at", "2014-10-15 20:15:08.276079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 12ms (Views: 4.0ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.285994"], ["nonce", #], ["updated_at", "2014-10-15 20:15:08.285994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.299237"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:08.299237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 263) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 263 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:08.301384"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.309186"], ["nonce", #], ["updated_at", "2014-10-15 20:15:08.309186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.311439"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:08.311439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 264) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 264 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:08.312730"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.316375"], ["nonce", #], ["updated_at", "2014-10-15 20:15:08.316375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.329272"], ["nonce", #], ["updated_at", "2014-10-15 20:15:08.329272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.331498"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:08.331498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 265) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 265 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:08.333011"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.337418"], ["nonce", #], ["updated_at", "2014-10-15 20:15:08.337418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.341539"], ["nonce", #], ["updated_at", "2014-10-15 20:15:08.341539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.344704"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:08.344704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 266) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 266 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:08.346061"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.350136"], ["nonce", #], ["updated_at", "2014-10-15 20:15:08.350136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:08.354581"], ["nonce", #], ["updated_at", "2014-10-15 20:15:08.354581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.209431"], ["nonce", #], ["updated_at", "2014-10-15 20:15:28.209431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.224555"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:28.224555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 267) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 267 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:28.226771"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 4.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.231210"], ["nonce", #], ["updated_at", "2014-10-15 20:15:28.231210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.233101"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:28.233101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 268) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 268 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:28.234209"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.237891"], ["nonce", #], ["updated_at", "2014-10-15 20:15:28.237891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.241551"], ["nonce", #], ["updated_at", "2014-10-15 20:15:28.241551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.245272"], ["nonce", #], ["updated_at", "2014-10-15 20:15:28.245272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.247431"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:28.247431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 269) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 269 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:28.249141"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.253444"], ["nonce", #], ["updated_at", "2014-10-15 20:15:28.253444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.257778"], ["nonce", #], ["updated_at", "2014-10-15 20:15:28.257778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.262012"], ["nonce", #], ["updated_at", "2014-10-15 20:15:28.262012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.265336"], ["nonce", #], ["updated_at", "2014-10-15 20:15:28.265336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:28.267204"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:28.267204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 270) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 270 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:28.268739"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.260243"], ["nonce", "100"], ["updated_at", "2014-10-15 20:15:31.260243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.263067"], ["nonce", "100"], ["updated_at", "2014-10-15 20:15:31.263067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.263887"], ["nonce", "100"], ["updated_at", "2014-10-15 20:15:31.263887"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.303104"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 20:15:31.303104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:15:31.311201"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:15:31.311201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:15:31.315016"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:15:31.315016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:15:31.317570"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:15:31.317570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:15:31.319989"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 20:15:31.319989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 275]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:15:31.322522"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 20:15:31.322522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 276]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.328083"], ["nonce", #], ["updated_at", "2014-10-15 20:15:31.328083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.334397"], ["nonce", #], ["updated_at", "2014-10-15 20:15:31.334397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.336531"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:31.336531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 277) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 277 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:31.338345"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.342816"], ["nonce", #], ["updated_at", "2014-10-15 20:15:31.342816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.346365"], ["nonce", #], ["updated_at", "2014-10-15 20:15:31.346365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.348425"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:31.348425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 278) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 278 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:31.350431"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.365260"], ["nonce", #], ["updated_at", "2014-10-15 20:15:31.365260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.367182"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:31.367182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 279) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 279 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:31.368349"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.373479"], ["nonce", #], ["updated_at", "2014-10-15 20:15:31.373479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.377198"], ["nonce", #], ["updated_at", "2014-10-15 20:15:31.377198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.380814"], ["nonce", #], ["updated_at", "2014-10-15 20:15:31.380814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.383854"], ["nonce", #], ["updated_at", "2014-10-15 20:15:31.383854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:15:31.385666"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:15:31.385666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 280) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 280 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:15:31.386905"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.463518"], ["nonce", "100"], ["updated_at", "2014-10-15 20:16:24.463518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.466387"], ["nonce", "100"], ["updated_at", "2014-10-15 20:16:24.466387"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.468894"], ["nonce", "100"], ["updated_at", "2014-10-15 20:16:24.468894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.485186"], ["nonce", #], ["updated_at", "2014-10-15 20:16:24.485186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.490872"], ["nonce", #], ["updated_at", "2014-10-15 20:16:24.490872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.501141"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:16:24.501141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 281) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 281 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:16:24.503354"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 14ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.507928"], ["nonce", #], ["updated_at", "2014-10-15 20:16:24.507928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.510016"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:16:24.510016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 282) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 282 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:16:24.511289"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.518213"], ["nonce", #], ["updated_at", "2014-10-15 20:16:24.518213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.545366"], ["nonce", #], ["updated_at", "2014-10-15 20:16:24.545366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.548159"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:16:24.548159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 283) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 283 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:16:24.550039"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 7ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.554892"], ["nonce", #], ["updated_at", "2014-10-15 20:16:24.554892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.559329"], ["nonce", #], ["updated_at", "2014-10-15 20:16:24.559329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.562767"], ["nonce", #], ["updated_at", "2014-10-15 20:16:24.562767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.564616"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:16:24.564616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 284) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 284 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:16:24.565793"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.570509"], ["nonce", #], ["updated_at", "2014-10-15 20:16:24.570509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:16:24.596107"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:16:24.596107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:16:24.599471"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:16:24.599471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:16:24.601967"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:16:24.601967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:16:24.605561"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 20:16:24.605561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 288]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:16:24.608787"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 20:16:24.608787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 289]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:16:24.617560"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 20:16:24.617560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:17:02.373372"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 20:17:02.373372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 291]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:17:02.378502"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 20:17:02.378502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 292]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.383704"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 20:17:02.383704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:17:02.399121"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:17:02.399121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:17:02.403077"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:17:02.403077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:17:02.405383"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:17:02.405383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.443339"], ["nonce", "100"], ["updated_at", "2014-10-15 20:17:02.443339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.445824"], ["nonce", "100"], ["updated_at", "2014-10-15 20:17:02.445824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.446831"], ["nonce", "100"], ["updated_at", "2014-10-15 20:17:02.446831"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.464990"], ["nonce", #], ["updated_at", "2014-10-15 20:17:02.464990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.468505"], ["nonce", #], ["updated_at", "2014-10-15 20:17:02.468505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.472411"], ["nonce", #], ["updated_at", "2014-10-15 20:17:02.472411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.474448"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:17:02.474448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 297) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 297 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:17:02.476453"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.481299"], ["nonce", #], ["updated_at", "2014-10-15 20:17:02.481299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.483674"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:17:02.483674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 298) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 298 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:17:02.485037"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.495867"], ["nonce", #], ["updated_at", "2014-10-15 20:17:02.495867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.497917"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:17:02.497917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 299) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 299 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:17:02.499145"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.503096"], ["nonce", #], ["updated_at", "2014-10-15 20:17:02.503096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.507778"], ["nonce", #], ["updated_at", "2014-10-15 20:17:02.507778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.509872"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:17:02.509872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 300) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 300 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:17:02.511129"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.515036"], ["nonce", #], ["updated_at", "2014-10-15 20:17:02.515036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:17:02.518745"], ["nonce", #], ["updated_at", "2014-10-15 20:17:02.518745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.028985"], ["nonce", #], ["updated_at", "2014-10-15 20:33:04.028985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.045105"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:33:04.045105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:33:04.047667"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 5.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.052746"], ["nonce", #], ["updated_at", "2014-10-15 20:33:04.052746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.054796"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:33:04.054796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:33:04.056068"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.066045"], ["nonce", #], ["updated_at", "2014-10-15 20:33:04.066045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.069680"], ["nonce", #], ["updated_at", "2014-10-15 20:33:04.069680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.082375"], ["nonce", #], ["updated_at", "2014-10-15 20:33:04.082375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.086145"], ["nonce", #], ["updated_at", "2014-10-15 20:33:04.086145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.114474"], ["nonce", #], ["updated_at", "2014-10-15 20:33:04.114474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.116508"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:33:04.116508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:33:04.117812"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.122266"], ["nonce", #], ["updated_at", "2014-10-15 20:33:04.122266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.125823"], ["nonce", #], ["updated_at", "2014-10-15 20:33:04.125823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.128021"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:33:04.128021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:33:04.129418"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.144859"], ["nonce", "100"], ["updated_at", "2014-10-15 20:33:04.144859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.146447"], ["nonce", "100"], ["updated_at", "2014-10-15 20:33:04.146447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.147129"], ["nonce", "100"], ["updated_at", "2014-10-15 20:33:04.147129"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:33:04.165204"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:33:04.165204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:33:04.170390"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:33:04.170390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:33:04.173609"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:33:04.173609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:33:04.187810"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 20:33:04.187810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:33:04.193495"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 20:33:04.193495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:33:04.196449"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 20:33:04.196449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.829358"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 20:39:00.829358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:00.840963"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 20:39:00.840963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:00.844101"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 20:39:00.844101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:00.847552"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:39:00.847552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:00.875547"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:39:00.875547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:00.879017"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:39:00.879017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.887043"], ["nonce", "100"], ["updated_at", "2014-10-15 20:39:00.887043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.888279"], ["nonce", "100"], ["updated_at", "2014-10-15 20:39:00.888279"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.890418"], ["nonce", "100"], ["updated_at", "2014-10-15 20:39:00.890418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.905980"], ["nonce", #], ["updated_at", "2014-10-15 20:39:00.905980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.908180"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:39:00.908180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:39:00.910070"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.921590"], ["nonce", #], ["updated_at", "2014-10-15 20:39:00.921590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.925841"], ["nonce", #], ["updated_at", "2014-10-15 20:39:00.925841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.929623"], ["nonce", #], ["updated_at", "2014-10-15 20:39:00.929623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.932120"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:39:00.932120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:39:00.933536"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.937861"], ["nonce", #], ["updated_at", "2014-10-15 20:39:00.937861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.940964"], ["nonce", #], ["updated_at", "2014-10-15 20:39:00.940964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.942777"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:39:00.942777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:39:00.943931"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.947315"], ["nonce", #], ["updated_at", "2014-10-15 20:39:00.947315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.949085"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:39:00.949085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:39:00.950193"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.954220"], ["nonce", #], ["updated_at", "2014-10-15 20:39:00.954220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:00.959016"], ["nonce", #], ["updated_at", "2014-10-15 20:39:00.959016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 28ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.214421"], ["nonce", "100"], ["updated_at", "2014-10-15 20:39:56.214421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.215861"], ["nonce", "100"], ["updated_at", "2014-10-15 20:39:56.215861"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.218111"], ["nonce", "100"], ["updated_at", "2014-10-15 20:39:56.218111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:56.223517"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 20:39:56.223517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:56.226573"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 20:39:56.226573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.231484"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 20:39:56.231484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:56.246670"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:39:56.246670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:56.248969"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:39:56.248969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:39:56.251171"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:39:56.251171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.254930"], ["nonce", #], ["updated_at", "2014-10-15 20:39:56.254930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.260469"], ["nonce", #], ["updated_at", "2014-10-15 20:39:56.260469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.262501"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:39:56.262501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:39:56.264193"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.271030"], ["nonce", #], ["updated_at", "2014-10-15 20:39:56.271030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.274253"], ["nonce", #], ["updated_at", "2014-10-15 20:39:56.274253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.276321"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:39:56.276321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:39:56.277937"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.281597"], ["nonce", #], ["updated_at", "2014-10-15 20:39:56.281597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.283381"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:39:56.283381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:39:56.284498"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.288263"], ["nonce", #], ["updated_at", "2014-10-15 20:39:56.288263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.291502"], ["nonce", #], ["updated_at", "2014-10-15 20:39:56.291502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.293365"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:39:56.293365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:39:56.294510"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.298718"], ["nonce", #], ["updated_at", "2014-10-15 20:39:56.298718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:39:56.302592"], ["nonce", #], ["updated_at", "2014-10-15 20:39:56.302592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.295420"], ["lti_user_id", "a"], ["updated_at", "2014-10-15 20:40:18.295420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:40:18.303436"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:40:18.303436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:40:18.306072"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:40:18.306072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:40:18.308273"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-15 20:40:18.308273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:40:18.310825"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-15 20:40:18.310825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-15 20:40:18.313726"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-15 20:40:18.313726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.372291"], ["nonce", "100"], ["updated_at", "2014-10-15 20:40:18.372291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.375050"], ["nonce", "100"], ["updated_at", "2014-10-15 20:40:18.375050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.375978"], ["nonce", "100"], ["updated_at", "2014-10-15 20:40:18.375978"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.385976"], ["nonce", #], ["updated_at", "2014-10-15 20:40:18.385976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.388065"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:40:18.388065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:40:18.389681"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.393722"], ["nonce", #], ["updated_at", "2014-10-15 20:40:18.393722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.398729"], ["nonce", #], ["updated_at", "2014-10-15 20:40:18.398729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.404892"], ["nonce", #], ["updated_at", "2014-10-15 20:40:18.404892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.406707"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:40:18.406707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:40:18.407885"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.419082"], ["nonce", #], ["updated_at", "2014-10-15 20:40:18.419082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.422393"], ["nonce", #], ["updated_at", "2014-10-15 20:40:18.422393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.424243"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:40:18.424243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:40:18.425476"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.429218"], ["nonce", #], ["updated_at", "2014-10-15 20:40:18.429218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.432478"], ["nonce", #], ["updated_at", "2014-10-15 20:40:18.432478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.434227"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-15 20:40:18.434227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-15 20:40:18.435350"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-15 20:40:18.439078"], ["nonce", #], ["updated_at", "2014-10-15 20:40:18.439078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.347954"], ["nonce", #], ["updated_at", "2014-10-16 14:49:51.347954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.364023"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:49:51.364023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:49:51.366264"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 25ms (ActiveRecord: 5.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.371369"], ["nonce", #], ["updated_at", "2014-10-16 14:49:51.371369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.375053"], ["nonce", #], ["updated_at", "2014-10-16 14:49:51.375053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.377020"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:49:51.377020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:49:51.378177"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.387989"], ["nonce", #], ["updated_at", "2014-10-16 14:49:51.387989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.400344"], ["nonce", #], ["updated_at", "2014-10-16 14:49:51.400344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.431026"], ["nonce", #], ["updated_at", "2014-10-16 14:49:51.431026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.436012"], ["nonce", #], ["updated_at", "2014-10-16 14:49:51.436012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.440500"], ["nonce", #], ["updated_at", "2014-10-16 14:49:51.440500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.442445"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:49:51.442445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:49:51.443776"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.447473"], ["nonce", #], ["updated_at", "2014-10-16 14:49:51.447473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.449300"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:49:51.449300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:49:51.450417"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.471627"], ["nonce", "100"], ["updated_at", "2014-10-16 14:49:51.471627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.473722"], ["nonce", "100"], ["updated_at", "2014-10-16 14:49:51.473722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.474395"], ["nonce", "100"], ["updated_at", "2014-10-16 14:49:51.474395"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:51.488747"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:49:51.488747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:51.492963"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:49:51.492963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:51.496364"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:49:51.496364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:51.498948"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:49:51.498948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 18]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:51.501632"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:49:51.501632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 19]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:51.509946"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:49:51.509946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.058805"], ["nonce", #], ["updated_at", "2014-10-16 14:49:58.058805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.064861"], ["nonce", #], ["updated_at", "2014-10-16 14:49:58.064861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.077289"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:49:58.077289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:49:58.079807"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.085571"], ["nonce", #], ["updated_at", "2014-10-16 14:49:58.085571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.087738"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:49:58.087738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:49:58.089135"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.093288"], ["nonce", #], ["updated_at", "2014-10-16 14:49:58.093288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.097308"], ["nonce", #], ["updated_at", "2014-10-16 14:49:58.097308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.099278"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:49:58.099278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:49:58.100611"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.108591"], ["nonce", #], ["updated_at", "2014-10-16 14:49:58.108591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.113703"], ["nonce", #], ["updated_at", "2014-10-16 14:49:58.113703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.117460"], ["nonce", #], ["updated_at", "2014-10-16 14:49:58.117460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.120734"], ["nonce", #], ["updated_at", "2014-10-16 14:49:58.120734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.123697"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:49:58.123697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:49:58.126074"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 7ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:58.155189"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:49:58.155189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 25]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:58.158072"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:49:58.158072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 26]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.164058"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:49:58.164058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:58.179360"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:49:58.179360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:58.182534"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:49:58.182534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:49:58.186153"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:49:58.186153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.193463"], ["nonce", "100"], ["updated_at", "2014-10-16 14:49:58.193463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.194394"], ["nonce", "100"], ["updated_at", "2014-10-16 14:49:58.194394"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:49:58.196337"], ["nonce", "100"], ["updated_at", "2014-10-16 14:49:58.196337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.636794"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:50:12.636794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:12.647652"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:50:12.647652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 32]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:12.651996"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:50:12.651996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 33]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:12.656938"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:50:12.656938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:12.659363"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:50:12.659363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:12.661659"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:50:12.661659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.698966"], ["nonce", "100"], ["updated_at", "2014-10-16 14:50:12.698966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.701391"], ["nonce", "100"], ["updated_at", "2014-10-16 14:50:12.701391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.702184"], ["nonce", "100"], ["updated_at", "2014-10-16 14:50:12.702184"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.719361"], ["nonce", #], ["updated_at", "2014-10-16 14:50:12.719361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.728644"], ["nonce", #], ["updated_at", "2014-10-16 14:50:12.728644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.732141"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:12.732141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:12.734098"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.738675"], ["nonce", #], ["updated_at", "2014-10-16 14:50:12.738675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.743555"], ["nonce", #], ["updated_at", "2014-10-16 14:50:12.743555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.745809"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:12.745809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:12.747115"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.757779"], ["nonce", #], ["updated_at", "2014-10-16 14:50:12.757779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.760408"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:12.760408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:12.762233"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.765989"], ["nonce", #], ["updated_at", "2014-10-16 14:50:12.765989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.767966"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:12.767966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 40) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 40 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:12.769222"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.773157"], ["nonce", #], ["updated_at", "2014-10-16 14:50:12.773157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.776947"], ["nonce", #], ["updated_at", "2014-10-16 14:50:12.776947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:12.780391"], ["nonce", #], ["updated_at", "2014-10-16 14:50:12.780391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:22.656627"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:50:22.656627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 41]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:22.664555"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:50:22.664555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 42]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.669309"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:50:22.669309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:22.687123"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:50:22.687123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:22.689703"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:50:22.689703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:22.692156"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:50:22.692156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.711068"], ["nonce", #], ["updated_at", "2014-10-16 14:50:22.711068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.714861"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:22.714861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 47) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 47 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:22.716712"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.720827"], ["nonce", #], ["updated_at", "2014-10-16 14:50:22.720827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.725155"], ["nonce", #], ["updated_at", "2014-10-16 14:50:22.725155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.728647"], ["nonce", #], ["updated_at", "2014-10-16 14:50:22.728647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.730916"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:22.730916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 48) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 48 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:22.732301"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.735913"], ["nonce", #], ["updated_at", "2014-10-16 14:50:22.735913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.737986"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:22.737986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 49) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 49 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:22.739306"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.745709"], ["nonce", #], ["updated_at", "2014-10-16 14:50:22.745709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.749807"], ["nonce", #], ["updated_at", "2014-10-16 14:50:22.749807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.751878"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:22.751878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 50) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 50 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:22.753150"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.757537"], ["nonce", #], ["updated_at", "2014-10-16 14:50:22.757537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.763094"], ["nonce", #], ["updated_at", "2014-10-16 14:50:22.763094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.799837"], ["nonce", "100"], ["updated_at", "2014-10-16 14:50:22.799837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.800876"], ["nonce", "100"], ["updated_at", "2014-10-16 14:50:22.800876"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:22.802435"], ["nonce", "100"], ["updated_at", "2014-10-16 14:50:22.802435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:28.408581"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:50:28.408581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:28.412202"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:50:28.412202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:28.414523"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:50:28.414523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:28.418365"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:50:28.418365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 54]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:50:28.422142"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:50:28.422142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 55]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.431258"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:50:28.431258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.453026"], ["nonce", #], ["updated_at", "2014-10-16 14:50:28.453026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.458932"], ["nonce", #], ["updated_at", "2014-10-16 14:50:28.458932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.461218"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:28.461218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 57) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 57 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:28.462927"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.466978"], ["nonce", #], ["updated_at", "2014-10-16 14:50:28.466978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.468888"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:28.468888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 58) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 58 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:28.470049"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.476498"], ["nonce", #], ["updated_at", "2014-10-16 14:50:28.476498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.479764"], ["nonce", #], ["updated_at", "2014-10-16 14:50:28.479764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.481575"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:28.481575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 59) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 59 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:28.482888"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.487048"], ["nonce", #], ["updated_at", "2014-10-16 14:50:28.487048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.490633"], ["nonce", #], ["updated_at", "2014-10-16 14:50:28.490633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.493559"], ["nonce", #], ["updated_at", "2014-10-16 14:50:28.493559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.495361"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:50:28.495361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 60) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 60 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:50:28.496542"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.500223"], ["nonce", #], ["updated_at", "2014-10-16 14:50:28.500223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.515224"], ["nonce", "100"], ["updated_at", "2014-10-16 14:50:28.515224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.516068"], ["nonce", "100"], ["updated_at", "2014-10-16 14:50:28.516068"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:50:28.517515"], ["nonce", "100"], ["updated_at", "2014-10-16 14:50:28.517515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.880202"], ["nonce", #], ["updated_at", "2014-10-16 14:51:03.880202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.887282"], ["nonce", #], ["updated_at", "2014-10-16 14:51:03.887282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.898932"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:51:03.898932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 61) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 61 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:51:03.901136"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.905860"], ["nonce", #], ["updated_at", "2014-10-16 14:51:03.905860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.915924"], ["nonce", #], ["updated_at", "2014-10-16 14:51:03.915924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.918168"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:51:03.918168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 62) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 62 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:51:03.919478"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.926221"], ["nonce", #], ["updated_at", "2014-10-16 14:51:03.926221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.930869"], ["nonce", #], ["updated_at", "2014-10-16 14:51:03.930869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.934114"], ["nonce", #], ["updated_at", "2014-10-16 14:51:03.934114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.935929"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:51:03.935929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 63) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 63 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:51:03.937088"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.941025"], ["nonce", #], ["updated_at", "2014-10-16 14:51:03.941025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.943158"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:51:03.943158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 64) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 64 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:51:03.944348"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.948073"], ["nonce", #], ["updated_at", "2014-10-16 14:51:03.948073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.994160"], ["nonce", "100"], ["updated_at", "2014-10-16 14:51:03.994160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.995170"], ["nonce", "100"], ["updated_at", "2014-10-16 14:51:03.995170"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:03.997106"], ["nonce", "100"], ["updated_at", "2014-10-16 14:51:03.997106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:51:04.009549"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:51:04.009549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:51:04.019234"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:51:04.019234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 66]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:51:04.022524"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:51:04.022524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 67]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:51:04.025655"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:51:04.025655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:51:04.029740"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:51:04.029740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:51:04.032471"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:51:04.032471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:55:34.100666"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:55:34.100666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 71]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:55:34.106611"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:55:34.106611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 72]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.111816"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:55:34.111816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:55:34.127961"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:55:34.127961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:55:34.131082"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:55:34.131082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:55:34.134354"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:55:34.134354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.145791"], ["nonce", #], ["updated_at", "2014-10-16 14:55:34.145791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.148436"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:55:34.148436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 77) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 77 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:55:34.150145"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.155216"], ["nonce", #], ["updated_at", "2014-10-16 14:55:34.155216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.159627"], ["nonce", #], ["updated_at", "2014-10-16 14:55:34.159627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.161784"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:55:34.161784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 78) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 78 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:55:34.163095"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.166718"], ["nonce", #], ["updated_at", "2014-10-16 14:55:34.166718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.169966"], ["nonce", #], ["updated_at", "2014-10-16 14:55:34.169966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.171775"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:55:34.171775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 79) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 79 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:55:34.173043"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.177345"], ["nonce", #], ["updated_at", "2014-10-16 14:55:34.177345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.181292"], ["nonce", #], ["updated_at", "2014-10-16 14:55:34.181292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.183449"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:55:34.183449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 80) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 80 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:55:34.184796"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.188784"], ["nonce", #], ["updated_at", "2014-10-16 14:55:34.188784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.193270"], ["nonce", #], ["updated_at", "2014-10-16 14:55:34.193270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.230653"], ["nonce", "100"], ["updated_at", "2014-10-16 14:55:34.230653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.231851"], ["nonce", "100"], ["updated_at", "2014-10-16 14:55:34.231851"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:55:34.233579"], ["nonce", "100"], ["updated_at", "2014-10-16 14:55:34.233579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.301220"], ["nonce", "100"], ["updated_at", "2014-10-16 14:57:03.301220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.303585"], ["nonce", "100"], ["updated_at", "2014-10-16 14:57:03.303585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.304414"], ["nonce", "100"], ["updated_at", "2014-10-16 14:57:03.304414"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:03.310972"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:57:03.310972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:03.315308"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:57:03.315308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:03.317460"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:57:03.317460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.331046"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:57:03.331046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:03.336971"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:57:03.336971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 85]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:03.340714"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:57:03.340714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 86]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.363910"], ["nonce", #], ["updated_at", "2014-10-16 14:57:03.363910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.366060"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:57:03.366060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 87) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 87 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:57:03.368100"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.372525"], ["nonce", #], ["updated_at", "2014-10-16 14:57:03.372525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.375879"], ["nonce", #], ["updated_at", "2014-10-16 14:57:03.375879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.381101"], ["nonce", #], ["updated_at", "2014-10-16 14:57:03.381101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.383060"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:57:03.383060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 88) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 88 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:57:03.384358"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.398724"], ["nonce", #], ["updated_at", "2014-10-16 14:57:03.398724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.402662"], ["nonce", #], ["updated_at", "2014-10-16 14:57:03.402662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.405812"], ["nonce", #], ["updated_at", "2014-10-16 14:57:03.405812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.407732"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:57:03.407732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 89) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 89 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:57:03.409074"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.412759"], ["nonce", #], ["updated_at", "2014-10-16 14:57:03.412759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.415882"], ["nonce", #], ["updated_at", "2014-10-16 14:57:03.415882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:03.417719"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:57:03.417719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 90) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 90 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:57:03.419274"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.845187"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:57:42.845187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:42.855877"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:57:42.855877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 92]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:42.859221"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:57:42.859221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 93]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:42.862229"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:57:42.862229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:42.866314"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:57:42.866314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:57:42.868734"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:57:42.868734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.876566"], ["nonce", "100"], ["updated_at", "2014-10-16 14:57:42.876566"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.878563"], ["nonce", "100"], ["updated_at", "2014-10-16 14:57:42.878563"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.881062"], ["nonce", "100"], ["updated_at", "2014-10-16 14:57:42.881062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.891527"], ["nonce", #], ["updated_at", "2014-10-16 14:57:42.891527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.895160"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:57:42.895160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 97) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 97 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:57:42.897059"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.902006"], ["nonce", #], ["updated_at", "2014-10-16 14:57:42.902006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.910482"], ["nonce", #], ["updated_at", "2014-10-16 14:57:42.910482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.913775"], ["nonce", #], ["updated_at", "2014-10-16 14:57:42.913775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.915780"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:57:42.915780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 98) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 98 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:57:42.917199"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.921815"], ["nonce", #], ["updated_at", "2014-10-16 14:57:42.921815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.925044"], ["nonce", #], ["updated_at", "2014-10-16 14:57:42.925044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.926852"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:57:42.926852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 99) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 99 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:57:42.928141"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.931656"], ["nonce", #], ["updated_at", "2014-10-16 14:57:42.931656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.933407"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:57:42.933407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 100) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 100 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:57:42.934620"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.939842"], ["nonce", #], ["updated_at", "2014-10-16 14:57:42.939842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:57:42.943747"], ["nonce", #], ["updated_at", "2014-10-16 14:57:42.943747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.093986"], ["nonce", "100"], ["updated_at", "2014-10-16 14:58:15.093986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.096993"], ["nonce", "100"], ["updated_at", "2014-10-16 14:58:15.096993"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.099630"], ["nonce", "100"], ["updated_at", "2014-10-16 14:58:15.099630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:15.134311"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:58:15.134311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 101]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:15.137742"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:58:15.137742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 102]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:15.140481"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:58:15.140481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:15.144383"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:58:15.144383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:15.146919"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:58:15.146919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.153855"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:58:15.153855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.171131"], ["nonce", #], ["updated_at", "2014-10-16 14:58:15.171131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.179105"], ["nonce", #], ["updated_at", "2014-10-16 14:58:15.179105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.181713"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:15.181713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 107) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 107 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:15.183751"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.188377"], ["nonce", #], ["updated_at", "2014-10-16 14:58:15.188377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.190426"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:15.190426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 108) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 108 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:15.191702"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.195574"], ["nonce", #], ["updated_at", "2014-10-16 14:58:15.195574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.199005"], ["nonce", #], ["updated_at", "2014-10-16 14:58:15.199005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.200935"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:15.200935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 109) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 109 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:15.202070"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.205973"], ["nonce", #], ["updated_at", "2014-10-16 14:58:15.205973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.208063"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:15.208063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 110) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 110 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:15.209320"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.213212"], ["nonce", #], ["updated_at", "2014-10-16 14:58:15.213212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.216756"], ["nonce", #], ["updated_at", "2014-10-16 14:58:15.216756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:15.220100"], ["nonce", #], ["updated_at", "2014-10-16 14:58:15.220100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:18.734700"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:58:18.734700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:18.739746"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:58:18.739746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:18.742077"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:58:18.742077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.757363"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:58:18.757363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:18.764456"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:58:18.764456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 115]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:18.767231"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:58:18.767231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 116]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.793928"], ["nonce", "100"], ["updated_at", "2014-10-16 14:58:18.793928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.796537"], ["nonce", "100"], ["updated_at", "2014-10-16 14:58:18.796537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.797337"], ["nonce", "100"], ["updated_at", "2014-10-16 14:58:18.797337"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.812190"], ["nonce", #], ["updated_at", "2014-10-16 14:58:18.812190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.814472"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:18.814472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 117) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 117 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:18.816324"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.821123"], ["nonce", #], ["updated_at", "2014-10-16 14:58:18.821123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.826039"], ["nonce", #], ["updated_at", "2014-10-16 14:58:18.826039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.829257"], ["nonce", #], ["updated_at", "2014-10-16 14:58:18.829257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.831223"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:18.831223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 118) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 118 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:18.832521"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.847925"], ["nonce", #], ["updated_at", "2014-10-16 14:58:18.847925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.851126"], ["nonce", #], ["updated_at", "2014-10-16 14:58:18.851126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.853083"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:18.853083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 119) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 119 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:18.854431"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.858933"], ["nonce", #], ["updated_at", "2014-10-16 14:58:18.858933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.862596"], ["nonce", #], ["updated_at", "2014-10-16 14:58:18.862596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.866077"], ["nonce", #], ["updated_at", "2014-10-16 14:58:18.866077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:18.868141"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:18.868141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 120) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 120 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:18.869516"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.826870"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 14:58:23.826870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:23.837000"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 14:58:23.837000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 122]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:23.840375"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 14:58:23.840375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 123]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:23.843348"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:58:23.843348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:23.847253"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:58:23.847253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 14:58:23.849575"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 14:58:23.849575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.886570"], ["nonce", "100"], ["updated_at", "2014-10-16 14:58:23.886570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.888144"], ["nonce", "100"], ["updated_at", "2014-10-16 14:58:23.888144"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.889938"], ["nonce", "100"], ["updated_at", "2014-10-16 14:58:23.889938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.895415"], ["nonce", #], ["updated_at", "2014-10-16 14:58:23.895415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.898225"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:23.898225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 127) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 127 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:23.900420"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.905055"], ["nonce", #], ["updated_at", "2014-10-16 14:58:23.905055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.908438"], ["nonce", #], ["updated_at", "2014-10-16 14:58:23.908438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.915941"], ["nonce", #], ["updated_at", "2014-10-16 14:58:23.915941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.918141"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:23.918141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 128) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 128 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:23.919532"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.924142"], ["nonce", #], ["updated_at", "2014-10-16 14:58:23.924142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.927812"], ["nonce", #], ["updated_at", "2014-10-16 14:58:23.927812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.930849"], ["nonce", #], ["updated_at", "2014-10-16 14:58:23.930849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.932708"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:23.932708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 129) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 129 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:23.933952"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.937931"], ["nonce", #], ["updated_at", "2014-10-16 14:58:23.937931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.940556"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 14:58:23.940556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 130) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 130 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 14:58:23.942805"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 14:58:23.948048"], ["nonce", #], ["updated_at", "2014-10-16 14:58:23.948048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.114692"], ["nonce", "100"], ["updated_at", "2014-10-16 15:00:04.114692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.118809"], ["nonce", "100"], ["updated_at", "2014-10-16 15:00:04.118809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.119760"], ["nonce", "100"], ["updated_at", "2014-10-16 15:00:04.119760"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:04.139294"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:00:04.139294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 131]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:04.143188"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:00:04.143188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 132]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.149611"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:00:04.149611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:04.165627"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:00:04.165627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:04.169873"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:00:04.169873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:04.172260"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:00:04.172260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.176592"], ["nonce", #], ["updated_at", "2014-10-16 15:00:04.176592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.179039"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:00:04.179039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 137) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 137 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:00:04.181184"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.185669"], ["nonce", #], ["updated_at", "2014-10-16 15:00:04.185669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.193567"], ["nonce", #], ["updated_at", "2014-10-16 15:00:04.193567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.196786"], ["nonce", #], ["updated_at", "2014-10-16 15:00:04.196786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.198703"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:00:04.198703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 138) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 138 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:00:04.200025"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.212566"], ["nonce", #], ["updated_at", "2014-10-16 15:00:04.212566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.215829"], ["nonce", #], ["updated_at", "2014-10-16 15:00:04.215829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.217764"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:00:04.217764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 139) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 139 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:00:04.219324"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.224181"], ["nonce", #], ["updated_at", "2014-10-16 15:00:04.224181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.226557"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:00:04.226557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 140) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 140 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:00:04.228057"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.232694"], ["nonce", #], ["updated_at", "2014-10-16 15:00:04.232694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:04.236782"], ["nonce", #], ["updated_at", "2014-10-16 15:00:04.236782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.937931"], ["nonce", "100"], ["updated_at", "2014-10-16 15:00:27.937931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.939468"], ["nonce", "100"], ["updated_at", "2014-10-16 15:00:27.939468"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.941394"], ["nonce", "100"], ["updated_at", "2014-10-16 15:00:27.941394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.945092"], ["nonce", #], ["updated_at", "2014-10-16 15:00:27.945092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.947851"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:00:27.947851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 141) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 141 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:00:27.950090"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.954310"], ["nonce", #], ["updated_at", "2014-10-16 15:00:27.954310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.956216"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:00:27.956216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 142) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 142 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:00:27.957380"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.964628"], ["nonce", #], ["updated_at", "2014-10-16 15:00:27.964628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.968366"], ["nonce", #], ["updated_at", "2014-10-16 15:00:27.968366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.972898"], ["nonce", #], ["updated_at", "2014-10-16 15:00:27.972898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.976767"], ["nonce", #], ["updated_at", "2014-10-16 15:00:27.976767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.980418"], ["nonce", #], ["updated_at", "2014-10-16 15:00:27.980418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.982334"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:00:27.982334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 143) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 143 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:00:27.983658"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.986960"], ["nonce", #], ["updated_at", "2014-10-16 15:00:27.986960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.989284"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:00:27.989284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 144) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 144 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:00:27.990828"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:27.995330"], ["nonce", #], ["updated_at", "2014-10-16 15:00:27.995330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:28.010713"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:00:28.010713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 145]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:28.014564"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:00:28.014564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 146]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:28.017182"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:00:28.017182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:28.020270"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:00:28.020270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:00:28.023743"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:00:28.023743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:00:28.031838"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:00:28.031838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:21.964231"], ["nonce", "100"], ["updated_at", "2014-10-16 15:03:21.964231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:21.966718"], ["nonce", "100"], ["updated_at", "2014-10-16 15:03:21.966718"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:21.968982"], ["nonce", "100"], ["updated_at", "2014-10-16 15:03:21.968982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:21.989897"], ["nonce", #], ["updated_at", "2014-10-16 15:03:21.989897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.000608"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:03:22.000608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 151) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 151 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:03:22.002707"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 15ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.007117"], ["nonce", #], ["updated_at", "2014-10-16 15:03:22.007117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.012213"], ["nonce", #], ["updated_at", "2014-10-16 15:03:22.012213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.018385"], ["nonce", #], ["updated_at", "2014-10-16 15:03:22.018385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.020313"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:03:22.020313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 152) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 152 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:03:22.021942"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.026855"], ["nonce", #], ["updated_at", "2014-10-16 15:03:22.026855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.030117"], ["nonce", #], ["updated_at", "2014-10-16 15:03:22.030117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.031928"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:03:22.031928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 153) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 153 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:03:22.033104"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.037370"], ["nonce", #], ["updated_at", "2014-10-16 15:03:22.037370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.040678"], ["nonce", #], ["updated_at", "2014-10-16 15:03:22.040678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.042802"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:03:22.042802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 154) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 154 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:03:22.044337"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.048413"], ["nonce", #], ["updated_at", "2014-10-16 15:03:22.048413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:03:22.077073"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:03:22.077073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:03:22.086049"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:03:22.086049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 156]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:03:22.089352"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:03:22.089352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 157]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:03:22.093579"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:03:22.093579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:03:22.095797"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:03:22.095797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:03:22.098100"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:03:22.098100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.635205"], ["nonce", "100"], ["updated_at", "2014-10-16 15:05:01.635205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.638291"], ["nonce", "100"], ["updated_at", "2014-10-16 15:05:01.638291"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.641118"], ["nonce", "100"], ["updated_at", "2014-10-16 15:05:01.641118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.654433"], ["nonce", #], ["updated_at", "2014-10-16 15:05:01.654433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.658480"], ["nonce", #], ["updated_at", "2014-10-16 15:05:01.658480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.670907"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:05:01.670907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 161) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 161 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:05:01.673025"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.677706"], ["nonce", #], ["updated_at", "2014-10-16 15:05:01.677706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.679726"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:05:01.679726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 162) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 162 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:05:01.681136"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.685015"], ["nonce", #], ["updated_at", "2014-10-16 15:05:01.685015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.688867"], ["nonce", #], ["updated_at", "2014-10-16 15:05:01.688867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.690832"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:05:01.690832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 163) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 163 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:05:01.692218"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.697549"], ["nonce", #], ["updated_at", "2014-10-16 15:05:01.697549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.702103"], ["nonce", #], ["updated_at", "2014-10-16 15:05:01.702103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.705688"], ["nonce", #], ["updated_at", "2014-10-16 15:05:01.705688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.709223"], ["nonce", #], ["updated_at", "2014-10-16 15:05:01.709223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.711292"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:05:01.711292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 164) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 164 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:05:01.712937"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:05:01.748712"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:05:01.748712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 165]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:05:01.752292"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:05:01.752292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 166]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:05:01.755009"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:05:01.755009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:05:01.758086"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:05:01.758086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:05:01.760601"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:05:01.760601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:05:01.767348"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:05:01.767348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.052423"], ["nonce", #], ["updated_at", "2014-10-16 15:06:00.052423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.068053"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:00.068053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 171) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 171 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:00.070328"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 25ms (ActiveRecord: 4.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.076026"], ["nonce", #], ["updated_at", "2014-10-16 15:06:00.076026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.086232"], ["nonce", #], ["updated_at", "2014-10-16 15:06:00.086232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.088447"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:00.088447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 172) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 172 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:00.089862"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.094626"], ["nonce", #], ["updated_at", "2014-10-16 15:06:00.094626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.107388"], ["nonce", #], ["updated_at", "2014-10-16 15:06:00.107388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.112728"], ["nonce", #], ["updated_at", "2014-10-16 15:06:00.112728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.116491"], ["nonce", #], ["updated_at", "2014-10-16 15:06:00.116491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.118607"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:00.118607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 173) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 173 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:00.119976"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.123934"], ["nonce", #], ["updated_at", "2014-10-16 15:06:00.123934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.127335"], ["nonce", #], ["updated_at", "2014-10-16 15:06:00.127335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.129769"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:00.129769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 174) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 174 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:00.131384"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.153623"], ["nonce", "100"], ["updated_at", "2014-10-16 15:06:00.153623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.155717"], ["nonce", "100"], ["updated_at", "2014-10-16 15:06:00.155717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.156632"], ["nonce", "100"], ["updated_at", "2014-10-16 15:06:00.156632"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:00.165963"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:06:00.165963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:00.169708"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:06:00.169708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:00.174691"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:06:00.174691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:00.188129"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:06:00.188129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:00.194306"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:06:00.194306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 179]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:00.196980"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:06:00.196980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 180]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:52.550931"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:06:52.550931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 181]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:52.556096"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:06:52.556096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 182]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.560879"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:06:52.560879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:52.577502"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:06:52.577502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:52.582480"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:06:52.582480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:52.584994"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:06:52.584994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.611547"], ["nonce", #], ["updated_at", "2014-10-16 15:06:52.611547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.616151"], ["nonce", #], ["updated_at", "2014-10-16 15:06:52.616151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.620272"], ["nonce", #], ["updated_at", "2014-10-16 15:06:52.620272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.622398"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:52.622398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 187) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 187 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:52.624456"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.628790"], ["nonce", #], ["updated_at", "2014-10-16 15:06:52.628790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.630652"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:52.630652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 188) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 188 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:52.632635"], ["user_image", #]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.646383"], ["nonce", #], ["updated_at", "2014-10-16 15:06:52.646383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.648534"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:52.648534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 189) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 189 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:52.649869"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.654368"], ["nonce", #], ["updated_at", "2014-10-16 15:06:52.654368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.660355"], ["nonce", #], ["updated_at", "2014-10-16 15:06:52.660355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.662450"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:52.662450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 190) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 190 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:52.663804"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.668252"], ["nonce", #], ["updated_at", "2014-10-16 15:06:52.668252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.672212"], ["nonce", #], ["updated_at", "2014-10-16 15:06:52.672212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.680965"], ["nonce", "100"], ["updated_at", "2014-10-16 15:06:52.680965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.682501"], ["nonce", "100"], ["updated_at", "2014-10-16 15:06:52.682501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:52.683274"], ["nonce", "100"], ["updated_at", "2014-10-16 15:06:52.683274"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:57.655453"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:06:57.655453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:57.662137"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:06:57.662137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:57.666433"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:06:57.666433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:57.669002"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:06:57.669002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 194]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:06:57.672829"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:06:57.672829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 195]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.685771"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:06:57.685771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.739027"], ["nonce", "100"], ["updated_at", "2014-10-16 15:06:57.739027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.741252"], ["nonce", "100"], ["updated_at", "2014-10-16 15:06:57.741252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.742044"], ["nonce", "100"], ["updated_at", "2014-10-16 15:06:57.742044"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.758111"], ["nonce", #], ["updated_at", "2014-10-16 15:06:57.758111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.761714"], ["nonce", #], ["updated_at", "2014-10-16 15:06:57.761714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.763790"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:57.763790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 197) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 197 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:57.765619"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.775380"], ["nonce", #], ["updated_at", "2014-10-16 15:06:57.775380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.779447"], ["nonce", #], ["updated_at", "2014-10-16 15:06:57.779447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.781459"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:57.781459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 198) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 198 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:57.783033"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.796700"], ["nonce", #], ["updated_at", "2014-10-16 15:06:57.796700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.800484"], ["nonce", #], ["updated_at", "2014-10-16 15:06:57.800484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.803810"], ["nonce", #], ["updated_at", "2014-10-16 15:06:57.803810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.805813"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:57.805813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 199) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 199 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:57.807169"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.811750"], ["nonce", #], ["updated_at", "2014-10-16 15:06:57.811750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.813912"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:06:57.813912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 200) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 200 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:06:57.815232"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:06:57.819127"], ["nonce", #], ["updated_at", "2014-10-16 15:06:57.819127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:07:44.670421"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:07:44.670421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 201]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:07:44.676830"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:07:44.676830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 202]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.681638"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:07:44.681638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:07:44.698028"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:07:44.698028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:07:44.701432"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:07:44.701432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:07:44.704640"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:07:44.704640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.748254"], ["nonce", #], ["updated_at", "2014-10-16 15:07:44.748254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.750961"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:07:44.750961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 207) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 207 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:07:44.753903"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.762650"], ["nonce", #], ["updated_at", "2014-10-16 15:07:44.762650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.765975"], ["nonce", #], ["updated_at", "2014-10-16 15:07:44.765975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.769808"], ["nonce", #], ["updated_at", "2014-10-16 15:07:44.769808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.771947"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:07:44.771947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 208) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 208 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:07:44.773199"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.777660"], ["nonce", #], ["updated_at", "2014-10-16 15:07:44.777660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.780992"], ["nonce", #], ["updated_at", "2014-10-16 15:07:44.780992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.782801"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:07:44.782801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 209) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 209 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:07:44.783960"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.787976"], ["nonce", #], ["updated_at", "2014-10-16 15:07:44.787976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.791291"], ["nonce", #], ["updated_at", "2014-10-16 15:07:44.791291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.793217"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:07:44.793217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 210) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 210 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:07:44.794812"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.798633"], ["nonce", #], ["updated_at", "2014-10-16 15:07:44.798633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.817286"], ["nonce", "100"], ["updated_at", "2014-10-16 15:07:44.817286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.818193"], ["nonce", "100"], ["updated_at", "2014-10-16 15:07:44.818193"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:07:44.819892"], ["nonce", "100"], ["updated_at", "2014-10-16 15:07:44.819892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.283082"], ["nonce", "100"], ["updated_at", "2014-10-16 15:14:22.283082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.286733"], ["nonce", "100"], ["updated_at", "2014-10-16 15:14:22.286733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.287624"], ["nonce", "100"], ["updated_at", "2014-10-16 15:14:22.287624"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.319177"], ["nonce", #], ["updated_at", "2014-10-16 15:14:22.319177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.330147"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:14:22.330147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:14:22.332408"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 15ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.336724"], ["nonce", #], ["updated_at", "2014-10-16 15:14:22.336724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.338906"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:14:22.338906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:14:22.340150"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.343781"], ["nonce", #], ["updated_at", "2014-10-16 15:14:22.343781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.350916"], ["nonce", #], ["updated_at", "2014-10-16 15:14:22.350916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.364778"], ["nonce", #], ["updated_at", "2014-10-16 15:14:22.364778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.368492"], ["nonce", #], ["updated_at", "2014-10-16 15:14:22.368492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.374841"], ["nonce", #], ["updated_at", "2014-10-16 15:14:22.374841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.378778"], ["nonce", #], ["updated_at", "2014-10-16 15:14:22.378778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.380696"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:14:22.380696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:14:22.381937"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.385492"], ["nonce", #], ["updated_at", "2014-10-16 15:14:22.385492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.387359"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:14:22.387359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:14:22.389160"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:14:22.425109"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:14:22.425109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:14:22.433418"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:14:22.433418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:14:22.435984"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:14:22.435984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:14:22.438464"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:14:22.438464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:14:22.440725"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:14:22.440725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:14:22.443179"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:14:22.443179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:26:50.371245"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:26:50.371245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:26:50.379234"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:26:50.379234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:26:50.382000"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:26:50.382000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:26:50.397477"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:26:50.397477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:26:50.403321"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:26:50.403321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:26:50.406405"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:26:50.406405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:12.099191"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:27:12.099191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 17]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:12.105566"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:27:12.105566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 18]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:12.108887"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:27:12.108887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:12.112206"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:27:12.112206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:12.114591"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:27:12.114591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.119929"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:27:12.119929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.165949"], ["nonce", #], ["updated_at", "2014-10-16 15:27:12.165949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.168497"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:27:12.168497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:27:12.170732"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.175533"], ["nonce", #], ["updated_at", "2014-10-16 15:27:12.175533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.177494"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:27:12.177494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:27:12.178842"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.182433"], ["nonce", #], ["updated_at", "2014-10-16 15:27:12.182433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.185628"], ["nonce", #], ["updated_at", "2014-10-16 15:27:12.185628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.189622"], ["nonce", #], ["updated_at", "2014-10-16 15:27:12.189622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.191725"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:27:12.191725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:27:12.193470"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.198378"], ["nonce", #], ["updated_at", "2014-10-16 15:27:12.198378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.202951"], ["nonce", #], ["updated_at", "2014-10-16 15:27:12.202951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.207385"], ["nonce", #], ["updated_at", "2014-10-16 15:27:12.207385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.210844"], ["nonce", #], ["updated_at", "2014-10-16 15:27:12.210844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.212792"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:27:12.212792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:27:12.215126"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 7ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.260672"], ["nonce", "100"], ["updated_at", "2014-10-16 15:27:12.260672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.261670"], ["nonce", "100"], ["updated_at", "2014-10-16 15:27:12.261670"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:12.263287"], ["nonce", "100"], ["updated_at", "2014-10-16 15:27:12.263287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:21.604775"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:27:21.604775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 27]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:21.611669"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:27:21.611669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 28]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:21.614796"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:27:21.614796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:21.618163"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:27:21.618163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:27:21.620736"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:27:21.620736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.626179"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:27:21.626179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.654745"], ["nonce", "100"], ["updated_at", "2014-10-16 15:27:21.654745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.656019"], ["nonce", "100"], ["updated_at", "2014-10-16 15:27:21.656019"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.658094"], ["nonce", "100"], ["updated_at", "2014-10-16 15:27:21.658094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.696177"], ["nonce", #], ["updated_at", "2014-10-16 15:27:21.696177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.699833"], ["nonce", #], ["updated_at", "2014-10-16 15:27:21.699833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.701830"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:27:21.701830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 33) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 33 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:27:21.703749"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.712289"], ["nonce", #], ["updated_at", "2014-10-16 15:27:21.712289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.714290"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:27:21.714290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:27:21.715478"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.719063"], ["nonce", #], ["updated_at", "2014-10-16 15:27:21.719063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.724317"], ["nonce", #], ["updated_at", "2014-10-16 15:27:21.724317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.728485"], ["nonce", #], ["updated_at", "2014-10-16 15:27:21.728485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.731947"], ["nonce", #], ["updated_at", "2014-10-16 15:27:21.731947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.733902"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:27:21.733902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:27:21.735091"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.738971"], ["nonce", #], ["updated_at", "2014-10-16 15:27:21.738971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.742375"], ["nonce", #], ["updated_at", "2014-10-16 15:27:21.742375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:27:21.744348"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:27:21.744348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 36) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 36 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:27:21.745867"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.275009"], ["nonce", #], ["updated_at", "2014-10-16 15:31:29.275009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.293000"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:29.293000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:29.295289"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 5.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.300535"], ["nonce", #], ["updated_at", "2014-10-16 15:31:29.300535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.304608"], ["nonce", #], ["updated_at", "2014-10-16 15:31:29.304608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.306673"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:29.306673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:29.308023"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.318846"], ["nonce", #], ["updated_at", "2014-10-16 15:31:29.318846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.323687"], ["nonce", #], ["updated_at", "2014-10-16 15:31:29.323687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.328603"], ["nonce", #], ["updated_at", "2014-10-16 15:31:29.328603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.332318"], ["nonce", #], ["updated_at", "2014-10-16 15:31:29.332318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.336845"], ["nonce", #], ["updated_at", "2014-10-16 15:31:29.336845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.339925"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:29.339925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:29.341590"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.345507"], ["nonce", #], ["updated_at", "2014-10-16 15:31:29.345507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.347534"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:29.347534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 40) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 40 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:29.348825"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.396747"], ["nonce", "100"], ["updated_at", "2014-10-16 15:31:29.396747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.397779"], ["nonce", "100"], ["updated_at", "2014-10-16 15:31:29.397779"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.399359"], ["nonce", "100"], ["updated_at", "2014-10-16 15:31:29.399359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:29.407103"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:31:29.407103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 41]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:29.410280"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:31:29.410280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 42]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:29.418012"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:31:29.418012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:29.435150"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:31:29.435150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:29.438683"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:31:29.438683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:29.441945"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:31:29.441945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.867506"], ["nonce", "100"], ["updated_at", "2014-10-16 15:31:36.867506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.872050"], ["nonce", "100"], ["updated_at", "2014-10-16 15:31:36.872050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.872926"], ["nonce", "100"], ["updated_at", "2014-10-16 15:31:36.872926"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.895154"], ["nonce", #], ["updated_at", "2014-10-16 15:31:36.895154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.905454"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:36.905454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 47) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 47 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:36.908176"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.913873"], ["nonce", #], ["updated_at", "2014-10-16 15:31:36.913873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.915908"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:36.915908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 48) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 48 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:36.917170"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.924319"], ["nonce", #], ["updated_at", "2014-10-16 15:31:36.924319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.927607"], ["nonce", #], ["updated_at", "2014-10-16 15:31:36.927607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.941134"], ["nonce", #], ["updated_at", "2014-10-16 15:31:36.941134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.942979"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:36.942979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 49) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 49 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:36.944167"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.951229"], ["nonce", #], ["updated_at", "2014-10-16 15:31:36.951229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.953311"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:36.953311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 50) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 50 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:36.954569"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:36.997166"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:31:36.997166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:41.828160"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:31:41.828160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 52]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:41.832637"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:31:41.832637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 53]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:41.835325"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:31:41.835325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:41.838390"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:31:41.838390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:31:41.842060"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:31:41.842060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.846864"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:31:41.846864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.884208"], ["nonce", #], ["updated_at", "2014-10-16 15:31:41.884208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.886765"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:41.886765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 58) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 58 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:41.888626"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.892836"], ["nonce", #], ["updated_at", "2014-10-16 15:31:41.892836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.894779"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:41.894779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 59) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 59 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:41.896154"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.900355"], ["nonce", #], ["updated_at", "2014-10-16 15:31:41.900355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.904435"], ["nonce", #], ["updated_at", "2014-10-16 15:31:41.904435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.915120"], ["nonce", #], ["updated_at", "2014-10-16 15:31:41.915120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.917529"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:41.917529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 60) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 60 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:41.919023"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.923019"], ["nonce", #], ["updated_at", "2014-10-16 15:31:41.923019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.926831"], ["nonce", #], ["updated_at", "2014-10-16 15:31:41.926831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.930613"], ["nonce", #], ["updated_at", "2014-10-16 15:31:41.930613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.932561"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:31:41.932561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 61) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 61 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:31:41.933706"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.938367"], ["nonce", #], ["updated_at", "2014-10-16 15:31:41.938367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.964928"], ["nonce", "100"], ["updated_at", "2014-10-16 15:31:41.964928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.966459"], ["nonce", "100"], ["updated_at", "2014-10-16 15:31:41.966459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:31:41.967114"], ["nonce", "100"], ["updated_at", "2014-10-16 15:31:41.967114"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.593358"], ["nonce", "100"], ["updated_at", "2014-10-16 15:32:36.593358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.594782"], ["nonce", "100"], ["updated_at", "2014-10-16 15:32:36.594782"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.596878"], ["nonce", "100"], ["updated_at", "2014-10-16 15:32:36.596878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:32:36.601124"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:32:36.601124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 62]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:32:36.605189"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:32:36.605189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 63]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:32:36.607878"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:32:36.607878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:32:36.610912"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:32:36.610912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:32:36.613203"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:32:36.613203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.618419"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:32:36.618419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.637214"], ["nonce", #], ["updated_at", "2014-10-16 15:32:36.637214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.639249"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:32:36.639249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 68) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 68 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:32:36.641234"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.645815"], ["nonce", #], ["updated_at", "2014-10-16 15:32:36.645815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.647692"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:32:36.647692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 69) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 69 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:32:36.648857"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.652388"], ["nonce", #], ["updated_at", "2014-10-16 15:32:36.652388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.656333"], ["nonce", #], ["updated_at", "2014-10-16 15:32:36.656333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.659590"], ["nonce", #], ["updated_at", "2014-10-16 15:32:36.659590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (2.4ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.664338"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:32:36.664338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 70) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 70 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:32:36.666048"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 8ms (ActiveRecord: 4.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.670175"], ["nonce", #], ["updated_at", "2014-10-16 15:32:36.670175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.674708"], ["nonce", #], ["updated_at", "2014-10-16 15:32:36.674708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.678178"], ["nonce", #], ["updated_at", "2014-10-16 15:32:36.678178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.680170"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:32:36.680170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 71) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 71 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:32:36.681554"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:32:36.685605"], ["nonce", #], ["updated_at", "2014-10-16 15:32:36.685605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.701430"], ["nonce", #], ["updated_at", "2014-10-16 15:33:43.701430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 1.9ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.707902"], ["nonce", #], ["updated_at", "2014-10-16 15:33:43.707902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.713283"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:33:43.713283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:33:43.716470"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.726390"], ["nonce", #], ["updated_at", "2014-10-16 15:33:43.726390"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.730940"], ["nonce", #], ["updated_at", "2014-10-16 15:33:43.730940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.732880"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:33:43.732880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:33:43.734228"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.738679"], ["nonce", #], ["updated_at", "2014-10-16 15:33:43.738679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.741108"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:33:43.741108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:33:43.742520"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.747797"], ["nonce", #], ["updated_at", "2014-10-16 15:33:43.747797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.751400"], ["nonce", #], ["updated_at", "2014-10-16 15:33:43.751400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.753598"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:33:43.753598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:33:43.755150"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.759296"], ["nonce", #], ["updated_at", "2014-10-16 15:33:43.759296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.763701"], ["nonce", #], ["updated_at", "2014-10-16 15:33:43.763701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.778970"], ["nonce", "100"], ["updated_at", "2014-10-16 15:33:43.778970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.780015"], ["nonce", "100"], ["updated_at", "2014-10-16 15:33:43.780015"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.781779"], ["nonce", "100"], ["updated_at", "2014-10-16 15:33:43.781779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:33:43.786884"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:33:43.786884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:33:43.790079"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:33:43.790079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:33:43.797003"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:33:43.797003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:33:43.814428"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:33:43.814428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:33:43.817951"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:33:43.817951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:33:43.820705"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:33:43.820705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:46:21.742979"], ["nonce", #], ["updated_at", "2014-10-16 15:46:21.742979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 26ms (Views: 7.1ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:47:43.350113"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:47:43.350113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:47:43.356612"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:47:43.356612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:47:43.359231"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 15:47:43.359231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.374191"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 15:47:43.374191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:47:43.380754"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 15:47:43.380754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 15:47:43.383501"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 15:47:43.383501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.406917"], ["nonce", #], ["updated_at", "2014-10-16 15:47:43.406917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.411630"], ["nonce", #], ["updated_at", "2014-10-16 15:47:43.411630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.415345"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:47:43.415345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:47:43.417166"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.422111"], ["nonce", #], ["updated_at", "2014-10-16 15:47:43.422111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.426004"], ["nonce", #], ["updated_at", "2014-10-16 15:47:43.426004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.427970"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:47:43.427970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:47:43.429205"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.441614"], ["nonce", #], ["updated_at", "2014-10-16 15:47:43.441614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.443687"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:47:43.443687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:47:43.445102"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.448780"], ["nonce", #], ["updated_at", "2014-10-16 15:47:43.448780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.450614"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 15:47:43.450614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 15:47:43.451971"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.456306"], ["nonce", #], ["updated_at", "2014-10-16 15:47:43.456306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.460741"], ["nonce", #], ["updated_at", "2014-10-16 15:47:43.460741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.464192"], ["nonce", #], ["updated_at", "2014-10-16 15:47:43.464192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.471788"], ["nonce", "100"], ["updated_at", "2014-10-16 15:47:43.471788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.473648"], ["nonce", "100"], ["updated_at", "2014-10-16 15:47:43.473648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:47:43.474502"], ["nonce", "100"], ["updated_at", "2014-10-16 15:47:43.474502"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:49:35.023988"], ["nonce", #], ["updated_at", "2014-10-16 15:49:35.023988"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 27ms (Views: 7.0ms | ActiveRecord: 3.6ms)  (0.3ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:50:24.861160"], ["nonce", #], ["updated_at", "2014-10-16 15:50:24.861160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 27ms (Views: 7.5ms | ActiveRecord: 4.0ms)  (0.2ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:50:36.191591"], ["nonce", #], ["updated_at", "2014-10-16 15:50:36.191591"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.6ms) Completed 200 OK in 25ms (Views: 6.7ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:51:33.655405"], ["nonce", #], ["updated_at", "2014-10-16 15:51:33.655405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.6ms) Completed 200 OK in 23ms (Views: 6.5ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 15:58:11.872492"], ["nonce", #], ["updated_at", "2014-10-16 15:58:11.872492"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 29ms (Views: 6.7ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.615936"], ["nonce", #], ["updated_at", "2014-10-16 16:01:24.615936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.620662"], ["nonce", #], ["updated_at", "2014-10-16 16:01:24.620662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.625322"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 16:01:24.625322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 16:01:24.627888"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.632326"], ["nonce", #], ["updated_at", "2014-10-16 16:01:24.632326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.636759"], ["nonce", #], ["updated_at", "2014-10-16 16:01:24.636759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.639014"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 16:01:24.639014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 16:01:24.640407"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.650876"], ["nonce", #], ["updated_at", "2014-10-16 16:01:24.650876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.652793"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 16:01:24.652793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 16:01:24.654013"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.658254"], ["nonce", #], ["updated_at", "2014-10-16 16:01:24.658254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.664043"], ["nonce", #], ["updated_at", "2014-10-16 16:01:24.664043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.667347"], ["nonce", #], ["updated_at", "2014-10-16 16:01:24.667347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.669146"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 16:01:24.669146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 16:01:24.670294"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.673876"], ["nonce", #], ["updated_at", "2014-10-16 16:01:24.673876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.682827"], ["nonce", "100"], ["updated_at", "2014-10-16 16:01:24.682827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.684477"], ["nonce", "100"], ["updated_at", "2014-10-16 16:01:24.684477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.685246"], ["nonce", "100"], ["updated_at", "2014-10-16 16:01:24.685246"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:24.706737"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 16:01:24.706737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:24.712146"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 16:01:24.712146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:24.715565"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 16:01:24.715565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:24.719340"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 16:01:24.719340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:24.721773"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 16:01:24.721773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 29]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:24.724363"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 16:01:24.724363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 30]]  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:53.341407"], ["nonce", "100"], ["updated_at", "2014-10-16 16:01:53.341407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:53.344395"], ["nonce", "100"], ["updated_at", "2014-10-16 16:01:53.344395"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:53.346872"], ["nonce", "100"], ["updated_at", "2014-10-16 16:01:53.346872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:53.362370"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 16:01:53.362370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:53.366066"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 16:01:53.366066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:53.368573"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 16:01:53.368573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:53.371634"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 16:01:53.371634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 34]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 16:01:53.375271"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 16:01:53.375271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 35]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:01:53.387537"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 16:01:53.387537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:03:15.711707"], ["nonce", #], ["updated_at", "2014-10-16 16:03:15.711707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:03:15.719563"], ["nonce", #], ["updated_at", "2014-10-16 16:03:15.719563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:03:15.747381"], ["nonce", #], ["updated_at", "2014-10-16 16:03:15.747381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:03:15.752794"], ["nonce", #], ["updated_at", "2014-10-16 16:03:15.752794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 16:03:15.757496"], ["nonce", #], ["updated_at", "2014-10-16 16:03:15.757496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:04:43.292590"], ["nonce", #], ["updated_at", "2014-10-16 17:04:43.292590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:04:43.300725"], ["nonce", #], ["updated_at", "2014-10-16 17:04:43.300725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:04:43.309619"], ["nonce", #], ["updated_at", "2014-10-16 17:04:43.309619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:04:43.314595"], ["nonce", #], ["updated_at", "2014-10-16 17:04:43.314595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:04:43.318956"], ["nonce", #], ["updated_at", "2014-10-16 17:04:43.318956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:05:11.584896"], ["nonce", #], ["updated_at", "2014-10-16 17:05:11.584896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 13ms (Views: 3.8ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:05:20.168289"], ["nonce", #], ["updated_at", "2014-10-16 17:05:20.168289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:05:20.178357"], ["nonce", #], ["updated_at", "2014-10-16 17:05:20.178357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:05:20.198439"], ["nonce", #], ["updated_at", "2014-10-16 17:05:20.198439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:05:20.203214"], ["nonce", #], ["updated_at", "2014-10-16 17:05:20.203214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:05:20.207019"], ["nonce", #], ["updated_at", "2014-10-16 17:05:20.207019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:07.288282"], ["nonce", #], ["updated_at", "2014-10-16 17:06:07.288282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:07.305519"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:06:07.305519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:06:07.307793"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 5.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.155970"], ["nonce", #], ["updated_at", "2014-10-16 17:06:11.155970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.3ms) Completed 200 OK in 15ms (Views: 5.9ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.168902"], ["nonce", #], ["updated_at", "2014-10-16 17:06:11.168902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.182961"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:06:11.182961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:06:11.186423"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 21ms (ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.192498"], ["nonce", #], ["updated_at", "2014-10-16 17:06:11.192498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.198866"], ["nonce", #], ["updated_at", "2014-10-16 17:06:11.198866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.200817"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:06:11.200817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:06:11.201997"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.215798"], ["nonce", #], ["updated_at", "2014-10-16 17:06:11.215798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.217823"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:06:11.217823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 40) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 40 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:06:11.219044"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.223184"], ["nonce", #], ["updated_at", "2014-10-16 17:06:11.223184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.229040"], ["nonce", #], ["updated_at", "2014-10-16 17:06:11.229040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.233193"], ["nonce", #], ["updated_at", "2014-10-16 17:06:11.233193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.235083"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:06:11.235083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 41) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 41 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:06:11.236366"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:11.240118"], ["nonce", #], ["updated_at", "2014-10-16 17:06:11.240118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:06:46.049662"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:06:46.049662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 42]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:06:46.053654"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:06:46.053654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 43]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.058963"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:06:46.058963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:06:46.074834"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:06:46.074834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:06:46.077087"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:06:46.077087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:06:46.079313"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:06:46.079313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.085740"], ["nonce", #], ["updated_at", "2014-10-16 17:06:46.085740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.096838"], ["nonce", #], ["updated_at", "2014-10-16 17:06:46.096838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.100650"], ["nonce", #], ["updated_at", "2014-10-16 17:06:46.100650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.102680"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:06:46.102680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 48) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 48 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:06:46.104390"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.108912"], ["nonce", #], ["updated_at", "2014-10-16 17:06:46.108912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.110815"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:06:46.110815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 49) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 49 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:06:46.112100"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.116057"], ["nonce", #], ["updated_at", "2014-10-16 17:06:46.116057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.120471"], ["nonce", #], ["updated_at", "2014-10-16 17:06:46.120471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.122477"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:06:46.122477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 50) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 50 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:06:46.123692"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.129120"], ["nonce", #], ["updated_at", "2014-10-16 17:06:46.129120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.131374"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:06:46.131374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 51) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 51 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:06:46.132686"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.136657"], ["nonce", #], ["updated_at", "2014-10-16 17:06:46.136657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.140274"], ["nonce", #], ["updated_at", "2014-10-16 17:06:46.140274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.156657"], ["nonce", "100"], ["updated_at", "2014-10-16 17:06:46.156657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.157555"], ["nonce", "100"], ["updated_at", "2014-10-16 17:06:46.157555"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:06:46.158984"], ["nonce", "100"], ["updated_at", "2014-10-16 17:06:46.158984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.670090"], ["nonce", "100"], ["updated_at", "2014-10-16 17:18:49.670090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.673004"], ["nonce", "100"], ["updated_at", "2014-10-16 17:18:49.673004"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.675252"], ["nonce", "100"], ["updated_at", "2014-10-16 17:18:49.675252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:18:49.689770"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:18:49.689770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 52]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:18:49.694019"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:18:49.694019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 53]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:18:49.696695"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:18:49.696695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:18:49.699764"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:18:49.699764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:18:49.703004"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:18:49.703004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.708281"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:18:49.708281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.727534"], ["nonce", #], ["updated_at", "2014-10-16 17:18:49.727534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.739227"], ["nonce", #], ["updated_at", "2014-10-16 17:18:49.739227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.742812"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:18:49.742812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 58) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 58 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:18:49.744628"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.748903"], ["nonce", #], ["updated_at", "2014-10-16 17:18:49.748903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.751052"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:18:49.751052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 59) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 59 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:18:49.752514"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.756732"], ["nonce", #], ["updated_at", "2014-10-16 17:18:49.756732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.761743"], ["nonce", #], ["updated_at", "2014-10-16 17:18:49.761743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.765741"], ["nonce", #], ["updated_at", "2014-10-16 17:18:49.765741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.768069"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:18:49.768069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 60) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 60 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:18:49.769890"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.774736"], ["nonce", #], ["updated_at", "2014-10-16 17:18:49.774736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.778455"], ["nonce", #], ["updated_at", "2014-10-16 17:18:49.778455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.781737"], ["nonce", #], ["updated_at", "2014-10-16 17:18:49.781737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:18:49.783630"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:18:49.783630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 61) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 61 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:18:49.785111"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.6ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.560600"], ["nonce", "100"], ["updated_at", "2014-10-16 17:20:36.560600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.563148"], ["nonce", "100"], ["updated_at", "2014-10-16 17:20:36.563148"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.565041"], ["nonce", "100"], ["updated_at", "2014-10-16 17:20:36.565041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.568847"], ["nonce", #], ["updated_at", "2014-10-16 17:20:36.568847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.578714"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:20:36.578714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 62) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 62 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:20:36.581644"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 15ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.586782"], ["nonce", #], ["updated_at", "2014-10-16 17:20:36.586782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.590304"], ["nonce", #], ["updated_at", "2014-10-16 17:20:36.590304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.592331"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:20:36.592331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 63) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 63 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:20:36.593544"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.600904"], ["nonce", #], ["updated_at", "2014-10-16 17:20:36.600904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.605794"], ["nonce", #], ["updated_at", "2014-10-16 17:20:36.605794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.609954"], ["nonce", #], ["updated_at", "2014-10-16 17:20:36.609954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.613662"], ["nonce", #], ["updated_at", "2014-10-16 17:20:36.613662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.617194"], ["nonce", #], ["updated_at", "2014-10-16 17:20:36.617194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.620097"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:20:36.620097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 64) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 64 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:20:36.622070"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 7ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.626257"], ["nonce", #], ["updated_at", "2014-10-16 17:20:36.626257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.628092"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:20:36.628092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 65) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 65 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:20:36.629476"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:20:36.649222"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:20:36.649222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:20:36.653214"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:20:36.653214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:20:36.655677"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:20:36.655677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:20:36.659110"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:20:36.659110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 69]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:20:36.662648"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:20:36.662648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 70]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:20:36.675595"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:20:36.675595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.623750"], ["nonce", "100"], ["updated_at", "2014-10-16 17:21:14.623750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.628108"], ["nonce", "100"], ["updated_at", "2014-10-16 17:21:14.628108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.628962"], ["nonce", "100"], ["updated_at", "2014-10-16 17:21:14.628962"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.640384"], ["nonce", #], ["updated_at", "2014-10-16 17:21:14.640384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.655128"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:21:14.655128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 72) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 72 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:21:14.657750"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 20ms (ActiveRecord: 3.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.662269"], ["nonce", #], ["updated_at", "2014-10-16 17:21:14.662269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.666062"], ["nonce", #], ["updated_at", "2014-10-16 17:21:14.666062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.669589"], ["nonce", #], ["updated_at", "2014-10-16 17:21:14.669589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.671500"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:21:14.671500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 73) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 73 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:21:14.672879"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.684516"], ["nonce", #], ["updated_at", "2014-10-16 17:21:14.684516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.686575"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:21:14.686575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 74) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 74 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:21:14.687860"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.692597"], ["nonce", #], ["updated_at", "2014-10-16 17:21:14.692597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.697610"], ["nonce", #], ["updated_at", "2014-10-16 17:21:14.697610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.700242"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:21:14.700242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 75) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 75 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:21:14.701706"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.706281"], ["nonce", #], ["updated_at", "2014-10-16 17:21:14.706281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.710690"], ["nonce", #], ["updated_at", "2014-10-16 17:21:14.710690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:21:14.722384"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:21:14.722384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 76]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:21:14.725304"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:21:14.725304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 77]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:21:14.727748"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:21:14.727748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:21:14.731930"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:21:14.731930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:21:14.736321"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:21:14.736321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:21:14.741113"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:21:14.741113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.937279"], ["nonce", "100"], ["updated_at", "2014-10-16 17:24:16.937279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.940075"], ["nonce", "100"], ["updated_at", "2014-10-16 17:24:16.940075"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.942517"], ["nonce", "100"], ["updated_at", "2014-10-16 17:24:16.942517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.970034"], ["nonce", #], ["updated_at", "2014-10-16 17:24:16.970034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.973454"], ["nonce", #], ["updated_at", "2014-10-16 17:24:16.973454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.978380"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:24:16.978380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 82) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 82 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:24:16.980833"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.985315"], ["nonce", #], ["updated_at", "2014-10-16 17:24:16.985315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.987145"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:24:16.987145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 83) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 83 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:24:16.988354"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.991921"], ["nonce", #], ["updated_at", "2014-10-16 17:24:16.991921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.996048"], ["nonce", #], ["updated_at", "2014-10-16 17:24:16.996048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:16.997935"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:24:16.997935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 84) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 84 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:24:16.999495"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:17.005432"], ["nonce", #], ["updated_at", "2014-10-16 17:24:17.005432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:17.009877"], ["nonce", #], ["updated_at", "2014-10-16 17:24:17.009877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:17.013519"], ["nonce", #], ["updated_at", "2014-10-16 17:24:17.013519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:17.016648"], ["nonce", #], ["updated_at", "2014-10-16 17:24:17.016648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:17.018906"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:24:17.018906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 85) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 85 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:24:17.021349"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:17.034457"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:24:17.034457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 86]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:17.037953"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:24:17.037953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 87]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:17.044399"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:24:17.044399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:17.056509"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:24:17.056509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:17.060565"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:24:17.060565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:17.063702"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:24:17.063702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:31.090568"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:24:31.090568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 92]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:31.095719"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:24:31.095719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 93]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:31.098458"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:24:31.098458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:31.101671"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:24:31.101671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:24:31.104072"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:24:31.104072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.109503"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:24:31.109503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.130434"], ["nonce", #], ["updated_at", "2014-10-16 17:24:31.130434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.134785"], ["nonce", #], ["updated_at", "2014-10-16 17:24:31.134785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.136748"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:24:31.136748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 98) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 98 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:24:31.138402"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.142307"], ["nonce", #], ["updated_at", "2014-10-16 17:24:31.142307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.144120"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:24:31.144120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 99) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 99 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:24:31.145243"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.148610"], ["nonce", #], ["updated_at", "2014-10-16 17:24:31.148610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.153050"], ["nonce", #], ["updated_at", "2014-10-16 17:24:31.153050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.154893"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:24:31.154893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 100) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 100 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:24:31.156046"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.159728"], ["nonce", #], ["updated_at", "2014-10-16 17:24:31.159728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.163885"], ["nonce", #], ["updated_at", "2014-10-16 17:24:31.163885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.167328"], ["nonce", #], ["updated_at", "2014-10-16 17:24:31.167328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.171093"], ["nonce", #], ["updated_at", "2014-10-16 17:24:31.171093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.172956"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:24:31.172956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 101) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 101 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:24:31.174104"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.192381"], ["nonce", "100"], ["updated_at", "2014-10-16 17:24:31.192381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.193297"], ["nonce", "100"], ["updated_at", "2014-10-16 17:24:31.193297"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:24:31.194790"], ["nonce", "100"], ["updated_at", "2014-10-16 17:24:31.194790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.301564"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:25:00.301564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:25:00.309917"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:25:00.309917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:25:00.313093"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:25:00.313093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:25:00.315495"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:25:00.315495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:25:00.317968"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:25:00.317968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 106]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:25:00.320883"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:25:00.320883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 107]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.339798"], ["nonce", #], ["updated_at", "2014-10-16 17:25:00.339798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.343798"], ["nonce", #], ["updated_at", "2014-10-16 17:25:00.343798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.348101"], ["nonce", #], ["updated_at", "2014-10-16 17:25:00.348101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.351713"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:25:00.351713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 108) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 108 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:25:00.356100"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 3.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.360950"], ["nonce", #], ["updated_at", "2014-10-16 17:25:00.360950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.362809"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:25:00.362809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 109) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 109 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:25:00.363992"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.375276"], ["nonce", #], ["updated_at", "2014-10-16 17:25:00.375276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.378306"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:25:00.378306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 110) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 110 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:25:00.380244"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.384976"], ["nonce", #], ["updated_at", "2014-10-16 17:25:00.384976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.389109"], ["nonce", #], ["updated_at", "2014-10-16 17:25:00.389109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.391027"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:25:00.391027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 111) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 111 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:25:00.392243"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.396075"], ["nonce", #], ["updated_at", "2014-10-16 17:25:00.396075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.399956"], ["nonce", #], ["updated_at", "2014-10-16 17:25:00.399956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.426939"], ["nonce", "100"], ["updated_at", "2014-10-16 17:25:00.426939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.428532"], ["nonce", "100"], ["updated_at", "2014-10-16 17:25:00.428532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:25:00.429186"], ["nonce", "100"], ["updated_at", "2014-10-16 17:25:00.429186"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:27:39.943342"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:27:39.943342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:27:39.948532"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:27:39.948532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:27:39.952394"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:27:39.952394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:39.969778"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:27:39.969778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:27:39.976212"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:27:39.976212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 116]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:27:39.979455"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:27:39.979455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 117]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:39.998081"], ["nonce", #], ["updated_at", "2014-10-16 17:27:39.998081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.001862"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:27:40.001862"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 118) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 118 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:27:40.004022"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.009104"], ["nonce", #], ["updated_at", "2014-10-16 17:27:40.009104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.012500"], ["nonce", #], ["updated_at", "2014-10-16 17:27:40.012500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.014494"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:27:40.014494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 119) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 119 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:27:40.015763"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.019298"], ["nonce", #], ["updated_at", "2014-10-16 17:27:40.019298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.039040"], ["nonce", #], ["updated_at", "2014-10-16 17:27:40.039040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.043730"], ["nonce", #], ["updated_at", "2014-10-16 17:27:40.043730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.048739"], ["nonce", #], ["updated_at", "2014-10-16 17:27:40.048739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.052099"], ["nonce", #], ["updated_at", "2014-10-16 17:27:40.052099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.054035"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:27:40.054035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 120) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 120 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:27:40.055311"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.058873"], ["nonce", #], ["updated_at", "2014-10-16 17:27:40.058873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.060730"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:27:40.060730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 121) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 121 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:27:40.061886"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.068787"], ["nonce", "100"], ["updated_at", "2014-10-16 17:27:40.068787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.070338"], ["nonce", "100"], ["updated_at", "2014-10-16 17:27:40.070338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:27:40.071005"], ["nonce", "100"], ["updated_at", "2014-10-16 17:27:40.071005"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.350712"], ["nonce", "100"], ["updated_at", "2014-10-16 17:34:49.350712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.354972"], ["nonce", "100"], ["updated_at", "2014-10-16 17:34:49.354972"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.357834"], ["nonce", "100"], ["updated_at", "2014-10-16 17:34:49.357834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.372568"], ["nonce", #], ["updated_at", "2014-10-16 17:34:49.372568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.383676"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:34:49.383676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 122) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 122 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:34:49.385866"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.390442"], ["nonce", #], ["updated_at", "2014-10-16 17:34:49.390442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.395262"], ["nonce", #], ["updated_at", "2014-10-16 17:34:49.395262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.401145"], ["nonce", #], ["updated_at", "2014-10-16 17:34:49.401145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.403215"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:34:49.403215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 123) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 123 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:34:49.404609"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.409672"], ["nonce", #], ["updated_at", "2014-10-16 17:34:49.409672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.412958"], ["nonce", #], ["updated_at", "2014-10-16 17:34:49.412958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.414681"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:34:49.414681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 124) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 124 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:34:49.415792"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.420267"], ["nonce", #], ["updated_at", "2014-10-16 17:34:49.420267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.423981"], ["nonce", #], ["updated_at", "2014-10-16 17:34:49.423981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.426178"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:34:49.426178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 125) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 125 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:34:49.427674"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.431509"], ["nonce", #], ["updated_at", "2014-10-16 17:34:49.431509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:34:49.451754"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:34:49.451754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 126]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:34:49.455034"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:34:49.455034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 127]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:34:49.459836"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:34:49.459836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:34:49.475586"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:34:49.475586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:34:49.477932"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:34:49.477932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:34:49.480360"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:34:49.480360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:08.604031"], ["nonce", "100"], ["updated_at", "2014-10-16 17:35:08.604031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:08.606476"], ["nonce", "100"], ["updated_at", "2014-10-16 17:35:08.606476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:08.607240"], ["nonce", "100"], ["updated_at", "2014-10-16 17:35:08.607240"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:08.614455"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:35:08.614455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:08.617149"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:35:08.617149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:08.620119"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:35:08.620119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:08.632271"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:35:08.632271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:08.638343"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:35:08.638343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 136]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:08.641515"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:35:08.641515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 137]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.570295"], ["nonce", #], ["updated_at", "2014-10-16 17:35:14.570295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.583101"], ["nonce", #], ["updated_at", "2014-10-16 17:35:14.583101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.594516"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:35:14.594516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 138) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 138 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:35:14.597502"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.601960"], ["nonce", #], ["updated_at", "2014-10-16 17:35:14.601960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.606227"], ["nonce", #], ["updated_at", "2014-10-16 17:35:14.606227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.608272"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:35:14.608272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 139) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 139 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:35:14.609493"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.614258"], ["nonce", #], ["updated_at", "2014-10-16 17:35:14.614258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.618419"], ["nonce", #], ["updated_at", "2014-10-16 17:35:14.618419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.620891"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:35:14.620891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 140) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 140 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:35:14.622789"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.627064"], ["nonce", #], ["updated_at", "2014-10-16 17:35:14.627064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.630175"], ["nonce", #], ["updated_at", "2014-10-16 17:35:14.630175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.631917"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:35:14.631917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 141) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 141 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:35:14.633043"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.637233"], ["nonce", #], ["updated_at", "2014-10-16 17:35:14.637233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.679540"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:35:14.679540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:14.689550"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:35:14.689550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 143]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:14.692191"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:35:14.692191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 144]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:14.694568"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:35:14.694568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:14.698392"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:35:14.698392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:14.700721"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:35:14.700721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.707277"], ["nonce", "100"], ["updated_at", "2014-10-16 17:35:14.707277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.708285"], ["nonce", "100"], ["updated_at", "2014-10-16 17:35:14.708285"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:14.710048"], ["nonce", "100"], ["updated_at", "2014-10-16 17:35:14.710048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:33.902929"], ["nonce", "100"], ["updated_at", "2014-10-16 17:35:33.902929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:33.907085"], ["nonce", "100"], ["updated_at", "2014-10-16 17:35:33.907085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:33.907971"], ["nonce", "100"], ["updated_at", "2014-10-16 17:35:33.907971"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:33.948116"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:35:33.948116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:33.959748"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:35:33.959748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 149]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:33.963981"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:35:33.963981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 150]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:33.969026"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:35:33.969026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:33.971785"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:35:33.971785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:35:33.974378"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:35:33.974378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:33.990013"], ["nonce", #], ["updated_at", "2014-10-16 17:35:33.990013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:33.994143"], ["nonce", #], ["updated_at", "2014-10-16 17:35:33.994143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:33.997685"], ["nonce", #], ["updated_at", "2014-10-16 17:35:33.997685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.001297"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:35:34.001297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 154) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 154 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:35:34.003214"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.008309"], ["nonce", #], ["updated_at", "2014-10-16 17:35:34.008309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.010650"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:35:34.010650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 155) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 155 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:35:34.011929"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.024030"], ["nonce", #], ["updated_at", "2014-10-16 17:35:34.024030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.026246"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:35:34.026246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 156) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 156 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:35:34.027687"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.031117"], ["nonce", #], ["updated_at", "2014-10-16 17:35:34.031117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.032867"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:35:34.032867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 157) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 157 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:35:34.034047"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.038598"], ["nonce", #], ["updated_at", "2014-10-16 17:35:34.038598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.043259"], ["nonce", #], ["updated_at", "2014-10-16 17:35:34.043259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:35:34.046831"], ["nonce", #], ["updated_at", "2014-10-16 17:35:34.046831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.533419"], ["nonce", "100"], ["updated_at", "2014-10-16 17:36:07.533419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.537525"], ["nonce", "100"], ["updated_at", "2014-10-16 17:36:07.537525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.538473"], ["nonce", "100"], ["updated_at", "2014-10-16 17:36:07.538473"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:07.593021"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:36:07.593021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:07.596898"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:36:07.596898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:07.600471"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:36:07.600471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:07.603358"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:36:07.603358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 161]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.5ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:07.606463"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:36:07.606463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 162]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.616250"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:36:07.616250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.632694"], ["nonce", #], ["updated_at", "2014-10-16 17:36:07.632694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.638541"], ["nonce", #], ["updated_at", "2014-10-16 17:36:07.638541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.640738"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:36:07.640738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 164) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 164 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:36:07.642648"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.647392"], ["nonce", #], ["updated_at", "2014-10-16 17:36:07.647392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.649624"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:36:07.649624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 165) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 165 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:36:07.650888"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.658102"], ["nonce", #], ["updated_at", "2014-10-16 17:36:07.658102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.668812"], ["nonce", #], ["updated_at", "2014-10-16 17:36:07.668812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.671218"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:36:07.671218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 166) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 166 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:36:07.672852"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.677200"], ["nonce", #], ["updated_at", "2014-10-16 17:36:07.677200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.680695"], ["nonce", #], ["updated_at", "2014-10-16 17:36:07.680695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.683758"], ["nonce", #], ["updated_at", "2014-10-16 17:36:07.683758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.685424"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:36:07.685424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 167) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 167 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:36:07.686689"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:07.690919"], ["nonce", #], ["updated_at", "2014-10-16 17:36:07.690919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:46.968284"], ["nonce", "100"], ["updated_at", "2014-10-16 17:36:46.968284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:46.972375"], ["nonce", "100"], ["updated_at", "2014-10-16 17:36:46.972375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:46.973285"], ["nonce", "100"], ["updated_at", "2014-10-16 17:36:46.973285"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:46.977867"], ["nonce", #], ["updated_at", "2014-10-16 17:36:46.977867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:46.982850"], ["nonce", #], ["updated_at", "2014-10-16 17:36:46.982850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:46.993523"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:36:46.993523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 168) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 168 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:36:46.995718"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 15ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.000330"], ["nonce", #], ["updated_at", "2014-10-16 17:36:47.000330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.003804"], ["nonce", #], ["updated_at", "2014-10-16 17:36:47.003804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.005836"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:36:47.005836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 169) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 169 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:36:47.007076"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.021258"], ["nonce", #], ["updated_at", "2014-10-16 17:36:47.021258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.023492"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:36:47.023492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 170) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 170 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:36:47.025138"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.029160"], ["nonce", #], ["updated_at", "2014-10-16 17:36:47.029160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.033167"], ["nonce", #], ["updated_at", "2014-10-16 17:36:47.033167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.037497"], ["nonce", #], ["updated_at", "2014-10-16 17:36:47.037497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.041095"], ["nonce", #], ["updated_at", "2014-10-16 17:36:47.041095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.042860"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:36:47.042860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 171) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 171 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:36:47.044011"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:47.049857"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:36:47.049857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:47.052623"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:36:47.052623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:47.055598"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:36:47.055598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:36:47.069517"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:36:47.069517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:47.075755"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:36:47.075755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 176]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:36:47.078354"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:36:47.078354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 177]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:54.328666"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:38:54.328666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 178]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:54.332257"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:38:54.332257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 179]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:54.334966"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:38:54.334966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:54.338290"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:38:54.338290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:54.341364"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:38:54.341364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.347139"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:38:54.347139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.365485"], ["nonce", #], ["updated_at", "2014-10-16 17:38:54.365485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.367795"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:38:54.367795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 184) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 184 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:38:54.369767"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.378745"], ["nonce", #], ["updated_at", "2014-10-16 17:38:54.378745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.381900"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:38:54.381900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 185) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 185 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:38:54.383929"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.387783"], ["nonce", #], ["updated_at", "2014-10-16 17:38:54.387783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.391477"], ["nonce", #], ["updated_at", "2014-10-16 17:38:54.391477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.395601"], ["nonce", #], ["updated_at", "2014-10-16 17:38:54.395601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.399391"], ["nonce", #], ["updated_at", "2014-10-16 17:38:54.399391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.401334"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:38:54.401334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 186) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 186 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:38:54.402631"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.409029"], ["nonce", #], ["updated_at", "2014-10-16 17:38:54.409029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.413076"], ["nonce", #], ["updated_at", "2014-10-16 17:38:54.413076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.416336"], ["nonce", #], ["updated_at", "2014-10-16 17:38:54.416336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.418152"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:38:54.418152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 187) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 187 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:38:54.419288"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.443430"], ["nonce", "100"], ["updated_at", "2014-10-16 17:38:54.443430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.444632"], ["nonce", "100"], ["updated_at", "2014-10-16 17:38:54.444632"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:54.446440"], ["nonce", "100"], ["updated_at", "2014-10-16 17:38:54.446440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:57.132386"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:38:57.132386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:57.138272"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:38:57.138272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:57.140734"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:38:57.140734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.155649"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:38:57.155649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:57.162107"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:38:57.162107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 192]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:38:57.164711"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:38:57.164711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 193]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.207337"], ["nonce", #], ["updated_at", "2014-10-16 17:38:57.207337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.209792"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:38:57.209792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 194) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 194 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:38:57.211515"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.215773"], ["nonce", #], ["updated_at", "2014-10-16 17:38:57.215773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.218004"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:38:57.218004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 195) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 195 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:38:57.219559"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.224640"], ["nonce", #], ["updated_at", "2014-10-16 17:38:57.224640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.232287"], ["nonce", #], ["updated_at", "2014-10-16 17:38:57.232287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.244065"], ["nonce", #], ["updated_at", "2014-10-16 17:38:57.244065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.247591"], ["nonce", #], ["updated_at", "2014-10-16 17:38:57.247591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.250929"], ["nonce", #], ["updated_at", "2014-10-16 17:38:57.250929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.252926"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:38:57.252926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 196) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 196 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:38:57.254406"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.258441"], ["nonce", #], ["updated_at", "2014-10-16 17:38:57.258441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.260462"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:38:57.260462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 197) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 197 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:38:57.261625"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.265241"], ["nonce", #], ["updated_at", "2014-10-16 17:38:57.265241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.271601"], ["nonce", "100"], ["updated_at", "2014-10-16 17:38:57.271601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.273261"], ["nonce", "100"], ["updated_at", "2014-10-16 17:38:57.273261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:38:57.274049"], ["nonce", "100"], ["updated_at", "2014-10-16 17:38:57.274049"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.087847"], ["nonce", "100"], ["updated_at", "2014-10-16 17:40:02.087847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.090860"], ["nonce", "100"], ["updated_at", "2014-10-16 17:40:02.090860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.091739"], ["nonce", "100"], ["updated_at", "2014-10-16 17:40:02.091739"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.122977"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:40:02.122977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:02.133406"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:40:02.133406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 199]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:02.136508"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:40:02.136508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 200]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:02.141409"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:40:02.141409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:02.143711"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:40:02.143711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:02.146134"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:40:02.146134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.150399"], ["nonce", #], ["updated_at", "2014-10-16 17:40:02.150399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.158565"], ["nonce", #], ["updated_at", "2014-10-16 17:40:02.158565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.162042"], ["nonce", #], ["updated_at", "2014-10-16 17:40:02.162042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.166106"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:40:02.166106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 204) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 204 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:40:02.167912"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.172239"], ["nonce", #], ["updated_at", "2014-10-16 17:40:02.172239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.174267"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:40:02.174267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 205) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 205 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:40:02.175486"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.185737"], ["nonce", #], ["updated_at", "2014-10-16 17:40:02.185737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.187892"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:40:02.187892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 206) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 206 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:40:02.189542"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.193766"], ["nonce", #], ["updated_at", "2014-10-16 17:40:02.193766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.195802"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:40:02.195802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 207) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 207 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:40:02.197100"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.200931"], ["nonce", #], ["updated_at", "2014-10-16 17:40:02.200931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.205070"], ["nonce", #], ["updated_at", "2014-10-16 17:40:02.205070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:02.209147"], ["nonce", #], ["updated_at", "2014-10-16 17:40:02.209147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.611037"], ["nonce", #], ["updated_at", "2014-10-16 17:40:13.611037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.625026"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:40:13.625026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 208) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 208 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:40:13.627239"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 4.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.631679"], ["nonce", #], ["updated_at", "2014-10-16 17:40:13.631679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.635638"], ["nonce", #], ["updated_at", "2014-10-16 17:40:13.635638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.638004"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:40:13.638004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 209) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 209 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:40:13.639514"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.643171"], ["nonce", #], ["updated_at", "2014-10-16 17:40:13.643171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.655220"], ["nonce", #], ["updated_at", "2014-10-16 17:40:13.655220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.657264"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:40:13.657264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 210) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 210 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:40:13.658403"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.662347"], ["nonce", #], ["updated_at", "2014-10-16 17:40:13.662347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.666803"], ["nonce", #], ["updated_at", "2014-10-16 17:40:13.666803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.668909"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:40:13.668909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 211) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 211 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:40:13.670121"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.674280"], ["nonce", #], ["updated_at", "2014-10-16 17:40:13.674280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.678325"], ["nonce", #], ["updated_at", "2014-10-16 17:40:13.678325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:13.700585"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:40:13.700585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 212]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:13.703849"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:40:13.703849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 213]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:13.707140"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:40:13.707140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:13.710542"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:40:13.710542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:40:13.713821"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:40:13.713821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.718244"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:40:13.718244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.745071"], ["nonce", "100"], ["updated_at", "2014-10-16 17:40:13.745071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.746813"], ["nonce", "100"], ["updated_at", "2014-10-16 17:40:13.746813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:40:13.747497"], ["nonce", "100"], ["updated_at", "2014-10-16 17:40:13.747497"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:43:12.682356"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 17:43:12.682356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 218]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:43:12.689001"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 17:43:12.689001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 219]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:43:12.692183"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:43:12.692183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:43:12.695233"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:43:12.695233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 17:43:12.697795"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 17:43:12.697795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.703152"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 17:43:12.703152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.727982"], ["nonce", #], ["updated_at", "2014-10-16 17:43:12.727982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.732436"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:43:12.732436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 224) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 224 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:43:12.734182"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.745799"], ["nonce", #], ["updated_at", "2014-10-16 17:43:12.745799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.749572"], ["nonce", #], ["updated_at", "2014-10-16 17:43:12.749572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.751711"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:43:12.751711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 225) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 225 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:43:12.753243"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.759772"], ["nonce", #], ["updated_at", "2014-10-16 17:43:12.759772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.764487"], ["nonce", #], ["updated_at", "2014-10-16 17:43:12.764487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.768174"], ["nonce", #], ["updated_at", "2014-10-16 17:43:12.768174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.770387"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:43:12.770387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 226) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 226 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:43:12.771934"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.776921"], ["nonce", #], ["updated_at", "2014-10-16 17:43:12.776921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.780832"], ["nonce", #], ["updated_at", "2014-10-16 17:43:12.780832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.784027"], ["nonce", #], ["updated_at", "2014-10-16 17:43:12.784027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.785883"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 17:43:12.785883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 227) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 227 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 17:43:12.787349"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.820305"], ["nonce", "100"], ["updated_at", "2014-10-16 17:43:12.820305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.821342"], ["nonce", "100"], ["updated_at", "2014-10-16 17:43:12.821342"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 17:43:12.823055"], ["nonce", "100"], ["updated_at", "2014-10-16 17:43:12.823055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.301527"], ["nonce", #], ["updated_at", "2014-10-16 18:09:04.301527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.318066"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:09:04.318066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 228) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 228 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:09:04.320407"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 26ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.325656"], ["nonce", #], ["updated_at", "2014-10-16 18:09:04.325656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.329307"], ["nonce", #], ["updated_at", "2014-10-16 18:09:04.329307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.331330"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:09:04.331330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 229) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 229 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:09:04.332729"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.346254"], ["nonce", #], ["updated_at", "2014-10-16 18:09:04.346254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.351093"], ["nonce", #], ["updated_at", "2014-10-16 18:09:04.351093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.355707"], ["nonce", #], ["updated_at", "2014-10-16 18:09:04.355707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.359993"], ["nonce", #], ["updated_at", "2014-10-16 18:09:04.359993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.406640"], ["nonce", "100"], ["updated_at", "2014-10-16 18:09:04.406640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.407679"], ["nonce", "100"], ["updated_at", "2014-10-16 18:09:04.407679"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.409573"], ["nonce", "100"], ["updated_at", "2014-10-16 18:09:04.409573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:09:04.417692"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:09:04.417692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:09:04.423008"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:09:04.423008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:09:04.426639"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:09:04.426639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:09:04.431164"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:09:04.431164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 233]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:09:04.435648"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:09:04.435648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 234]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:09:04.448760"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:09:04.448760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:13:37.718207"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:13:37.718207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:13:37.724560"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:13:37.724560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:13:37.727361"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:13:37.727361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:13:37.731434"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:13:37.731434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 239]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:13:37.735511"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:13:37.735511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 240]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.746656"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:13:37.746656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.776494"], ["nonce", "100"], ["updated_at", "2014-10-16 18:13:37.776494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.777648"], ["nonce", "100"], ["updated_at", "2014-10-16 18:13:37.777648"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.779355"], ["nonce", "100"], ["updated_at", "2014-10-16 18:13:37.779355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.782719"], ["nonce", #], ["updated_at", "2014-10-16 18:13:37.782719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.784699"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:13:37.784699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 242) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 242 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:13:37.786498"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.791702"], ["nonce", #], ["updated_at", "2014-10-16 18:13:37.791702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.793755"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:13:37.793755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 243) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 243 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:13:37.794974"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.798633"], ["nonce", #], ["updated_at", "2014-10-16 18:13:37.798633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.805915"], ["nonce", #], ["updated_at", "2014-10-16 18:13:37.805915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.810743"], ["nonce", #], ["updated_at", "2014-10-16 18:13:37.810743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.814773"], ["nonce", #], ["updated_at", "2014-10-16 18:13:37.814773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:13:37.819096"], ["nonce", #], ["updated_at", "2014-10-16 18:13:37.819096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.665430"], ["nonce", "100"], ["updated_at", "2014-10-16 18:14:03.665430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.669360"], ["nonce", "100"], ["updated_at", "2014-10-16 18:14:03.669360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.670418"], ["nonce", "100"], ["updated_at", "2014-10-16 18:14:03.670418"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.744607"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:14:03.744607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:03.750625"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:14:03.750625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:03.755326"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:14:03.755326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:03.758529"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:14:03.758529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:03.761153"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:14:03.761153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 248]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:03.763787"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:14:03.763787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 249]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.767967"], ["nonce", #], ["updated_at", "2014-10-16 18:14:03.767967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.770201"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:14:03.770201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 250) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 250 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:14:03.772400"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.776916"], ["nonce", #], ["updated_at", "2014-10-16 18:14:03.776916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.781586"], ["nonce", #], ["updated_at", "2014-10-16 18:14:03.781586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.783454"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:14:03.783454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 251) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 251 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:14:03.784644"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.788489"], ["nonce", #], ["updated_at", "2014-10-16 18:14:03.788489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.803318"], ["nonce", #], ["updated_at", "2014-10-16 18:14:03.803318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.808050"], ["nonce", #], ["updated_at", "2014-10-16 18:14:03.808050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:03.811771"], ["nonce", #], ["updated_at", "2014-10-16 18:14:03.811771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (2.8ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.867416"], ["nonce", "100"], ["updated_at", "2014-10-16 18:14:46.867416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.871956"], ["nonce", "100"], ["updated_at", "2014-10-16 18:14:46.871956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.872892"], ["nonce", "100"], ["updated_at", "2014-10-16 18:14:46.872892"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.921895"], ["nonce", #], ["updated_at", "2014-10-16 18:14:46.921895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.925983"], ["nonce", #], ["updated_at", "2014-10-16 18:14:46.925983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.928283"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:14:46.928283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 252) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 252 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:14:46.930252"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.934385"], ["nonce", #], ["updated_at", "2014-10-16 18:14:46.934385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.940165"], ["nonce", #], ["updated_at", "2014-10-16 18:14:46.940165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.942292"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:14:46.942292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 253) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 253 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:14:46.943814"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.958585"], ["nonce", #], ["updated_at", "2014-10-16 18:14:46.958585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.963162"], ["nonce", #], ["updated_at", "2014-10-16 18:14:46.963162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.967956"], ["nonce", #], ["updated_at", "2014-10-16 18:14:46.967956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:14:46.983956"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:14:46.983956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:46.990083"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:14:46.990083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:46.993662"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:14:46.993662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:46.997435"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:14:46.997435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:46.999882"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:14:46.999882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 258]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:14:47.002705"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:14:47.002705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 259]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:15:32.939565"], ["nonce", #], ["updated_at", "2014-10-16 18:15:32.939565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:15:32.947417"], ["nonce", #], ["updated_at", "2014-10-16 18:15:32.947417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:15:32.957741"], ["nonce", #], ["updated_at", "2014-10-16 18:15:32.957741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:15:32.970518"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:15:32.970518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 260) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 260 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:15:32.973703"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:15:32.981201"], ["nonce", #], ["updated_at", "2014-10-16 18:15:32.981201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:15:32.983281"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:15:32.983281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 261) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 261 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:15:32.984556"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:15:32.998849"], ["nonce", #], ["updated_at", "2014-10-16 18:15:32.998849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:15:33.004606"], ["nonce", #], ["updated_at", "2014-10-16 18:15:33.004606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:15:33.009500"], ["nonce", #], ["updated_at", "2014-10-16 18:15:33.009500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:16:24.486202"], ["nonce", #], ["updated_at", "2014-10-16 18:16:24.486202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:16:24.505231"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:16:24.505231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 262) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 262 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:16:24.507745"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 30ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:17:06.674688"], ["nonce", #], ["updated_at", "2014-10-16 18:17:06.674688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:17:06.691399"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:17:06.691399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 263) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 263 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:17:06.693652"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 28ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:17:17.476184"], ["nonce", #], ["updated_at", "2014-10-16 18:17:17.476184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:17:17.492949"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:17:17.492949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 264) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 264 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:17:17.495426"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 29ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:09.687771"], ["nonce", #], ["updated_at", "2014-10-16 18:18:09.687771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:09.704727"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:09.704727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 265) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 265 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:09.707308"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 28ms (ActiveRecord: 5.6ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.587893"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:13.587893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.590643"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:13.590643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.591618"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:13.591618"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.596786"], ["nonce", #], ["updated_at", "2014-10-16 18:18:13.596786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.600376"], ["nonce", #], ["updated_at", "2014-10-16 18:18:13.600376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.602405"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:13.602405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 266) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 266 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:13.604643"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.609569"], ["nonce", #], ["updated_at", "2014-10-16 18:18:13.609569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.617301"], ["nonce", #], ["updated_at", "2014-10-16 18:18:13.617301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.619357"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:13.619357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 267) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 267 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:13.620868"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.632715"], ["nonce", #], ["updated_at", "2014-10-16 18:18:13.632715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.637109"], ["nonce", #], ["updated_at", "2014-10-16 18:18:13.637109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.640801"], ["nonce", #], ["updated_at", "2014-10-16 18:18:13.640801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.643062"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:13.643062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 268) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 268 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:13.644753"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.648619"], ["nonce", #], ["updated_at", "2014-10-16 18:18:13.648619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.650527"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:13.650527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 269) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 269 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:13.651801"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.656365"], ["nonce", #], ["updated_at", "2014-10-16 18:18:13.656365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:13.665849"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:13.665849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:13.668795"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:13.668795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:13.671394"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:13.671394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:13.685711"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:18:13.685711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:13.691729"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:18:13.691729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 274]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:13.694454"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:18:13.694454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 275]]  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.768190"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:17.768190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.774038"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:17.774038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.775112"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:17.775112"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.805615"], ["nonce", #], ["updated_at", "2014-10-16 18:18:17.805615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.814279"], ["nonce", #], ["updated_at", "2014-10-16 18:18:17.814279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.826904"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:17.826904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 276) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 276 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:17.829762"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.834597"], ["nonce", #], ["updated_at", "2014-10-16 18:18:17.834597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.838801"], ["nonce", #], ["updated_at", "2014-10-16 18:18:17.838801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.840826"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:17.840826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 277) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 277 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:17.842062"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.855599"], ["nonce", #], ["updated_at", "2014-10-16 18:18:17.855599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.861393"], ["nonce", #], ["updated_at", "2014-10-16 18:18:17.861393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.864567"], ["nonce", #], ["updated_at", "2014-10-16 18:18:17.864567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.866607"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:17.866607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 278) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 278 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:17.867913"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.874497"], ["nonce", #], ["updated_at", "2014-10-16 18:18:17.874497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:17.885382"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:17.885382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:17.889179"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:17.889179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:17.892937"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:17.892937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:17.895503"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:18:17.895503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 282]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:17.898442"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:18:17.898442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 283]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:17.906948"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:18:17.906948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:21.488453"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:21.488453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:21.493700"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:21.493700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:21.496284"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:21.496284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:21.500036"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:18:21.500036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 288]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:21.502793"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:18:21.502793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 289]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.514214"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:18:21.514214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.535679"], ["nonce", #], ["updated_at", "2014-10-16 18:18:21.535679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.538540"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:21.538540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 291) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 291 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:21.540430"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.544577"], ["nonce", #], ["updated_at", "2014-10-16 18:18:21.544577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.552655"], ["nonce", #], ["updated_at", "2014-10-16 18:18:21.552655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.554847"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:21.554847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 292) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 292 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:21.556250"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.559897"], ["nonce", #], ["updated_at", "2014-10-16 18:18:21.559897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.563579"], ["nonce", #], ["updated_at", "2014-10-16 18:18:21.563579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.567109"], ["nonce", #], ["updated_at", "2014-10-16 18:18:21.567109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.569188"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:21.569188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 293) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 293 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:21.570588"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.574329"], ["nonce", #], ["updated_at", "2014-10-16 18:18:21.574329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.576544"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:21.576544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 294) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 294 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:21.577800"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.581557"], ["nonce", #], ["updated_at", "2014-10-16 18:18:21.581557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.585598"], ["nonce", #], ["updated_at", "2014-10-16 18:18:21.585598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.602421"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:21.602421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.603484"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:21.603484"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:21.605318"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:21.605318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:24.953811"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:24.953811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:24.960081"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:24.960081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:24.963250"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:24.963250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:24.979331"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:18:24.979331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:24.984791"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:18:24.984791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:24.988032"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:18:24.988032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 300]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.003670"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:25.003670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.006374"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:25.006374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.007290"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:25.007290"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.028078"], ["nonce", #], ["updated_at", "2014-10-16 18:18:25.028078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.030442"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:25.030442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 301) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 301 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:25.032307"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.036905"], ["nonce", #], ["updated_at", "2014-10-16 18:18:25.036905"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.042441"], ["nonce", #], ["updated_at", "2014-10-16 18:18:25.042441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.044801"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:25.044801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 302) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 302 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:25.046529"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.050847"], ["nonce", #], ["updated_at", "2014-10-16 18:18:25.050847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.069040"], ["nonce", #], ["updated_at", "2014-10-16 18:18:25.069040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.073092"], ["nonce", #], ["updated_at", "2014-10-16 18:18:25.073092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.078539"], ["nonce", #], ["updated_at", "2014-10-16 18:18:25.078539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.081854"], ["nonce", #], ["updated_at", "2014-10-16 18:18:25.081854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.083806"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:25.083806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 303) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 303 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:25.085288"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.089371"], ["nonce", #], ["updated_at", "2014-10-16 18:18:25.089371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:25.091476"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:25.091476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 304) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 304 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:25.093078"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.735717"], ["nonce", #], ["updated_at", "2014-10-16 18:18:28.735717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.740543"], ["nonce", #], ["updated_at", "2014-10-16 18:18:28.740543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.743044"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:28.743044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 305) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 305 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:28.744917"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.748783"], ["nonce", #], ["updated_at", "2014-10-16 18:18:28.748783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.752539"], ["nonce", #], ["updated_at", "2014-10-16 18:18:28.752539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.754677"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:28.754677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 306) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 306 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:28.756073"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.760980"], ["nonce", #], ["updated_at", "2014-10-16 18:18:28.760980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.765201"], ["nonce", #], ["updated_at", "2014-10-16 18:18:28.765201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.768671"], ["nonce", #], ["updated_at", "2014-10-16 18:18:28.768671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.770736"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:18:28.770736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 307) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 307 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:18:28.772239"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.776226"], ["nonce", #], ["updated_at", "2014-10-16 18:18:28.776226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:28.788431"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:18:28.788431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 308]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:28.791696"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:18:28.791696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 309]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.796341"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:18:28.796341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:28.810014"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:28.810014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:28.813106"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:28.813106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:18:28.816256"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:18:28.816256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.830663"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:28.830663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.831626"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:28.831626"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:18:28.833128"], ["nonce", "100"], ["updated_at", "2014-10-16 18:18:28.833128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.474286"], ["nonce", #], ["updated_at", "2014-10-16 18:24:25.474286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.480148"], ["nonce", #], ["updated_at", "2014-10-16 18:24:25.480148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.489012"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:24:25.489012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 314) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 314 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:24:25.491337"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.495794"], ["nonce", #], ["updated_at", "2014-10-16 18:24:25.495794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.500142"], ["nonce", #], ["updated_at", "2014-10-16 18:24:25.500142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.502122"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:24:25.502122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 315) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 315 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:24:25.503467"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.514241"], ["nonce", #], ["updated_at", "2014-10-16 18:24:25.514241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.516308"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:24:25.516308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 316) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 316 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:24:25.517893"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.522819"], ["nonce", #], ["updated_at", "2014-10-16 18:24:25.522819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.526654"], ["nonce", #], ["updated_at", "2014-10-16 18:24:25.526654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.529774"], ["nonce", #], ["updated_at", "2014-10-16 18:24:25.529774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.531658"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:24:25.531658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 317) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 317 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:24:25.532835"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.536660"], ["nonce", #], ["updated_at", "2014-10-16 18:24:25.536660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:25.542046"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:24:25.542046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 318]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:25.545075"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:24:25.545075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 319]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:25.547713"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:24:25.547713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:25.550724"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:24:25.550724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:25.554186"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:24:25.554186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.559734"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:24:25.559734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.579745"], ["nonce", "100"], ["updated_at", "2014-10-16 18:24:25.579745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.581324"], ["nonce", "100"], ["updated_at", "2014-10-16 18:24:25.581324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:25.582070"], ["nonce", "100"], ["updated_at", "2014-10-16 18:24:25.582070"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:29.005352"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:24:29.005352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 324]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:29.010038"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:24:29.010038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 325]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:29.012643"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:24:29.012643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:29.015560"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:24:29.015560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (2.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:24:29.017834"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:24:29.017834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.027324"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:24:29.027324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.069703"], ["nonce", #], ["updated_at", "2014-10-16 18:24:29.069703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.072392"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:24:29.072392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 330) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 330 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:24:29.074461"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.079001"], ["nonce", #], ["updated_at", "2014-10-16 18:24:29.079001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.080842"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:24:29.080842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 331) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 331 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:24:29.081961"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.085452"], ["nonce", #], ["updated_at", "2014-10-16 18:24:29.085452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.089733"], ["nonce", #], ["updated_at", "2014-10-16 18:24:29.089733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.093092"], ["nonce", #], ["updated_at", "2014-10-16 18:24:29.093092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.095104"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:24:29.095104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 332) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 332 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:24:29.096676"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.100795"], ["nonce", #], ["updated_at", "2014-10-16 18:24:29.100795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.104948"], ["nonce", #], ["updated_at", "2014-10-16 18:24:29.104948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.109101"], ["nonce", #], ["updated_at", "2014-10-16 18:24:29.109101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.111043"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:24:29.111043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 333) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 333 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:24:29.112218"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.116404"], ["nonce", #], ["updated_at", "2014-10-16 18:24:29.116404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.148896"], ["nonce", "100"], ["updated_at", "2014-10-16 18:24:29.148896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.149826"], ["nonce", "100"], ["updated_at", "2014-10-16 18:24:29.149826"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:24:29.151218"], ["nonce", "100"], ["updated_at", "2014-10-16 18:24:29.151218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:27:00.932028"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:27:00.932028"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:27:00.939655"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:27:00.939655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:27:00.943331"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:27:00.943331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:27:00.946753"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:27:00.946753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 337]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:27:00.950416"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:27:00.950416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 338]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:00.961837"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:27:00.961837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:00.996787"], ["nonce", "100"], ["updated_at", "2014-10-16 18:27:00.996787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:00.998159"], ["nonce", "100"], ["updated_at", "2014-10-16 18:27:00.998159"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:00.999923"], ["nonce", "100"], ["updated_at", "2014-10-16 18:27:00.999923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.030954"], ["nonce", #], ["updated_at", "2014-10-16 18:27:01.030954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.033206"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:27:01.033206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 340) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 340 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:27:01.035094"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.040854"], ["nonce", #], ["updated_at", "2014-10-16 18:27:01.040854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.044926"], ["nonce", #], ["updated_at", "2014-10-16 18:27:01.044926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.046806"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:27:01.046806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 341) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 341 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:27:01.048013"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.056221"], ["nonce", #], ["updated_at", "2014-10-16 18:27:01.056221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.060674"], ["nonce", #], ["updated_at", "2014-10-16 18:27:01.060674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.065199"], ["nonce", #], ["updated_at", "2014-10-16 18:27:01.065199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.068987"], ["nonce", #], ["updated_at", "2014-10-16 18:27:01.068987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.072620"], ["nonce", #], ["updated_at", "2014-10-16 18:27:01.072620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.074581"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:27:01.074581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 342) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 342 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:27:01.075826"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.079867"], ["nonce", #], ["updated_at", "2014-10-16 18:27:01.079867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:27:01.082245"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:27:01.082245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 343) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 343 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:27:01.083752"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.643259"], ["nonce", #], ["updated_at", "2014-10-16 18:30:18.643259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.659216"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:30:18.659216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 344) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 344 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:30:18.661354"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 25ms (ActiveRecord: 4.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.673528"], ["nonce", #], ["updated_at", "2014-10-16 18:30:18.673528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.677439"], ["nonce", #], ["updated_at", "2014-10-16 18:30:18.677439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.679395"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:30:18.679395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 345) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 345 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:30:18.680858"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.685081"], ["nonce", #], ["updated_at", "2014-10-16 18:30:18.685081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.689422"], ["nonce", #], ["updated_at", "2014-10-16 18:30:18.689422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.693603"], ["nonce", #], ["updated_at", "2014-10-16 18:30:18.693603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.695514"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:30:18.695514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 346) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 346 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:30:18.696705"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.700177"], ["nonce", #], ["updated_at", "2014-10-16 18:30:18.700177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.702346"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:30:18.702346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 347) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 347 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:30:18.704040"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.708915"], ["nonce", #], ["updated_at", "2014-10-16 18:30:18.708915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.713585"], ["nonce", #], ["updated_at", "2014-10-16 18:30:18.713585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:30:18.749535"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:30:18.749535"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 348]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:30:18.752954"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:30:18.752954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 349]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.758076"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:30:18.758076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:30:18.772223"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:30:18.772223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:30:18.775653"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:30:18.775653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:30:18.778856"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:30:18.778856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.797364"], ["nonce", "100"], ["updated_at", "2014-10-16 18:30:18.797364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.798444"], ["nonce", "100"], ["updated_at", "2014-10-16 18:30:18.798444"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:30:18.800397"], ["nonce", "100"], ["updated_at", "2014-10-16 18:30:18.800397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:12.072836"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:31:12.072836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:12.077203"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:31:12.077203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:12.079980"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:31:12.079980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:12.083438"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:31:12.083438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 357]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:12.086197"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:31:12.086197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 358]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.097076"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:31:12.097076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.126122"], ["nonce", #], ["updated_at", "2014-10-16 18:31:12.126122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.128405"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:31:12.128405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 360) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 360 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:31:12.130044"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.134222"], ["nonce", #], ["updated_at", "2014-10-16 18:31:12.134222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.6ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.136762"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:31:12.136762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 361) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 361 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:31:12.139025"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.143852"], ["nonce", #], ["updated_at", "2014-10-16 18:31:12.143852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.151368"], ["nonce", #], ["updated_at", "2014-10-16 18:31:12.151368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.155593"], ["nonce", #], ["updated_at", "2014-10-16 18:31:12.155593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.159313"], ["nonce", #], ["updated_at", "2014-10-16 18:31:12.159313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.163625"], ["nonce", #], ["updated_at", "2014-10-16 18:31:12.163625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.166918"], ["nonce", #], ["updated_at", "2014-10-16 18:31:12.166918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.168942"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:31:12.168942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 362) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 362 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:31:12.170403"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.188581"], ["nonce", "100"], ["updated_at", "2014-10-16 18:31:12.188581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.189678"], ["nonce", "100"], ["updated_at", "2014-10-16 18:31:12.189678"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:12.191377"], ["nonce", "100"], ["updated_at", "2014-10-16 18:31:12.191377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:36.333350"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:31:36.333350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:36.339999"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:31:36.339999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:36.344392"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:31:36.344392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:36.347113"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:31:36.347113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 366]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:31:36.350875"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:31:36.350875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 367]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.363598"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:31:36.363598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (3.0ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.394927"], ["nonce", "100"], ["updated_at", "2014-10-16 18:31:36.394927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.398876"], ["nonce", "100"], ["updated_at", "2014-10-16 18:31:36.398876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.399764"], ["nonce", "100"], ["updated_at", "2014-10-16 18:31:36.399764"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.404904"], ["nonce", #], ["updated_at", "2014-10-16 18:31:36.404904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.408626"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:31:36.408626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 369) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 369 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:31:36.410412"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.423082"], ["nonce", #], ["updated_at", "2014-10-16 18:31:36.423082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.427193"], ["nonce", #], ["updated_at", "2014-10-16 18:31:36.427193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.430518"], ["nonce", #], ["updated_at", "2014-10-16 18:31:36.430518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.432471"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:31:36.432471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 370) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 370 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:31:36.433783"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.448828"], ["nonce", #], ["updated_at", "2014-10-16 18:31:36.448828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.453243"], ["nonce", #], ["updated_at", "2014-10-16 18:31:36.453243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.456952"], ["nonce", #], ["updated_at", "2014-10-16 18:31:36.456952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.459171"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:31:36.459171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 371) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 371 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:31:36.460947"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:31:36.466238"], ["nonce", #], ["updated_at", "2014-10-16 18:31:36.466238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:32:28.698326"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:32:28.698326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 372]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:32:28.703076"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:32:28.703076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 373]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.708802"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:32:28.708802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:32:28.724009"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:32:28.724009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:32:28.726294"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:32:28.726294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:32:28.728579"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:32:28.728579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.766853"], ["nonce", "100"], ["updated_at", "2014-10-16 18:32:28.766853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.768031"], ["nonce", "100"], ["updated_at", "2014-10-16 18:32:28.768031"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.769692"], ["nonce", "100"], ["updated_at", "2014-10-16 18:32:28.769692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.775145"], ["nonce", #], ["updated_at", "2014-10-16 18:32:28.775145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.777694"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:32:28.777694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 378) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 378 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:32:28.779455"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.783734"], ["nonce", #], ["updated_at", "2014-10-16 18:32:28.783734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.787754"], ["nonce", #], ["updated_at", "2014-10-16 18:32:28.787754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.795373"], ["nonce", #], ["updated_at", "2014-10-16 18:32:28.795373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.797215"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:32:28.797215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 379) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 379 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:32:28.798359"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.803070"], ["nonce", #], ["updated_at", "2014-10-16 18:32:28.803070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.805276"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:32:28.805276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 380) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 380 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:32:28.806682"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.810399"], ["nonce", #], ["updated_at", "2014-10-16 18:32:28.810399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.813861"], ["nonce", #], ["updated_at", "2014-10-16 18:32:28.813861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:32:28.817141"], ["nonce", #], ["updated_at", "2014-10-16 18:32:28.817141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.5ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:33:19.253002"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:33:19.253002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:33:19.259499"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:33:19.259499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:33:19.262707"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:33:19.262707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.278489"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:33:19.278489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:33:19.284041"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:33:19.284041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 385]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:33:19.287049"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:33:19.287049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 386]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.309931"], ["nonce", #], ["updated_at", "2014-10-16 18:33:19.309931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.312480"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:33:19.312480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 387) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 387 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:33:19.314305"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.318831"], ["nonce", #], ["updated_at", "2014-10-16 18:33:19.318831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.323796"], ["nonce", #], ["updated_at", "2014-10-16 18:33:19.323796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.325757"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:33:19.325757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 388) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 388 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:33:19.327004"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.330564"], ["nonce", #], ["updated_at", "2014-10-16 18:33:19.330564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.348165"], ["nonce", #], ["updated_at", "2014-10-16 18:33:19.348165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.352890"], ["nonce", #], ["updated_at", "2014-10-16 18:33:19.352890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.357186"], ["nonce", #], ["updated_at", "2014-10-16 18:33:19.357186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.359230"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:33:19.359230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 389) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 389 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:33:19.360454"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.364146"], ["nonce", #], ["updated_at", "2014-10-16 18:33:19.364146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.370179"], ["nonce", "100"], ["updated_at", "2014-10-16 18:33:19.370179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.371788"], ["nonce", "100"], ["updated_at", "2014-10-16 18:33:19.371788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:33:19.374171"], ["nonce", "100"], ["updated_at", "2014-10-16 18:33:19.374171"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.638495"], ["nonce", "100"], ["updated_at", "2014-10-16 18:38:45.638495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.641285"], ["nonce", "100"], ["updated_at", "2014-10-16 18:38:45.641285"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.643262"], ["nonce", "100"], ["updated_at", "2014-10-16 18:38:45.643262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.704034"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:38:45.704034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:45.714490"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:38:45.714490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 391]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:45.717505"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:38:45.717505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 392]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:45.720985"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:38:45.720985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:45.725478"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:38:45.725478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:45.727757"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:38:45.727757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.735477"], ["nonce", #], ["updated_at", "2014-10-16 18:38:45.735477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.741460"], ["nonce", #], ["updated_at", "2014-10-16 18:38:45.741460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.743486"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:38:45.743486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 396) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 396 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:38:45.745135"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.749291"], ["nonce", #], ["updated_at", "2014-10-16 18:38:45.749291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.755719"], ["nonce", #], ["updated_at", "2014-10-16 18:38:45.755719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.757951"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:38:45.757951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 397) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 397 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:38:45.759486"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.763571"], ["nonce", #], ["updated_at", "2014-10-16 18:38:45.763571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.766731"], ["nonce", #], ["updated_at", "2014-10-16 18:38:45.766731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.768637"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:38:45.768637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 398) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 398 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:38:45.770097"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.774484"], ["nonce", #], ["updated_at", "2014-10-16 18:38:45.774484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:45.778736"], ["nonce", #], ["updated_at", "2014-10-16 18:38:45.778736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.319891"], ["nonce", "100"], ["updated_at", "2014-10-16 18:38:51.319891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.322876"], ["nonce", "100"], ["updated_at", "2014-10-16 18:38:51.322876"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.325214"], ["nonce", "100"], ["updated_at", "2014-10-16 18:38:51.325214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.355252"], ["nonce", #], ["updated_at", "2014-10-16 18:38:51.355252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.365822"], ["nonce", #], ["updated_at", "2014-10-16 18:38:51.365822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.370305"], ["nonce", #], ["updated_at", "2014-10-16 18:38:51.370305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.383939"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:38:51.383939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 399) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 399 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:38:51.386661"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.393580"], ["nonce", #], ["updated_at", "2014-10-16 18:38:51.393580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.395879"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:38:51.395879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 400) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 400 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:38:51.397282"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.401120"], ["nonce", #], ["updated_at", "2014-10-16 18:38:51.401120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.403153"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:38:51.403153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 401) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 401 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:38:51.404989"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.410377"], ["nonce", #], ["updated_at", "2014-10-16 18:38:51.410377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.414682"], ["nonce", #], ["updated_at", "2014-10-16 18:38:51.414682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.418360"], ["nonce", #], ["updated_at", "2014-10-16 18:38:51.418360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:38:51.459372"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:38:51.459372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:51.469484"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:38:51.469484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 403]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:51.473774"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:38:51.473774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 404]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:51.478456"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:38:51.478456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:51.481016"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:38:51.481016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:38:51.483959"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:38:51.483959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.489032"], ["nonce", "100"], ["updated_at", "2014-10-16 18:39:03.489032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.492069"], ["nonce", "100"], ["updated_at", "2014-10-16 18:39:03.492069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.492930"], ["nonce", "100"], ["updated_at", "2014-10-16 18:39:03.492930"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.515042"], ["nonce", #], ["updated_at", "2014-10-16 18:39:03.515042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.520585"], ["nonce", #], ["updated_at", "2014-10-16 18:39:03.520585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.528476"], ["nonce", #], ["updated_at", "2014-10-16 18:39:03.528476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.533309"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:39:03.533309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 408) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 408 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:39:03.535314"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.539807"], ["nonce", #], ["updated_at", "2014-10-16 18:39:03.539807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.542266"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:39:03.542266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 409) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 409 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:39:03.543819"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.558845"], ["nonce", #], ["updated_at", "2014-10-16 18:39:03.558845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.561531"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:39:03.561531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 410) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 410 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:39:03.563385"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.568239"], ["nonce", #], ["updated_at", "2014-10-16 18:39:03.568239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.572261"], ["nonce", #], ["updated_at", "2014-10-16 18:39:03.572261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.575887"], ["nonce", #], ["updated_at", "2014-10-16 18:39:03.575887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:03.598603"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:39:03.598603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:03.607860"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:39:03.607860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:03.611168"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:39:03.611168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:03.613523"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:39:03.613523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:03.615853"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:39:03.615853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 415]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:03.618566"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:39:03.618566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 416]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.152004"], ["nonce", "100"], ["updated_at", "2014-10-16 18:39:13.152004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.155547"], ["nonce", "100"], ["updated_at", "2014-10-16 18:39:13.155547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.156527"], ["nonce", "100"], ["updated_at", "2014-10-16 18:39:13.156527"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:13.164070"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:39:13.164070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:13.167023"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:39:13.167023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:13.169272"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:39:13.169272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.181778"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:39:13.181778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:13.187920"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:39:13.187920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 421]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:13.191012"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:39:13.191012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 422]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.198120"], ["nonce", #], ["updated_at", "2014-10-16 18:39:13.198120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.200062"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:39:13.200062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 423) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 423 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:39:13.201665"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.206066"], ["nonce", #], ["updated_at", "2014-10-16 18:39:13.206066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.210928"], ["nonce", #], ["updated_at", "2014-10-16 18:39:13.210928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.214636"], ["nonce", #], ["updated_at", "2014-10-16 18:39:13.214636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.216734"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:39:13.216734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 424) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 424 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:39:13.218027"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.231855"], ["nonce", #], ["updated_at", "2014-10-16 18:39:13.231855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.233885"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:39:13.233885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 425) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 425 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:39:13.235069"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.240590"], ["nonce", #], ["updated_at", "2014-10-16 18:39:13.240590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.244479"], ["nonce", #], ["updated_at", "2014-10-16 18:39:13.244479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:13.248604"], ["nonce", #], ["updated_at", "2014-10-16 18:39:13.248604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.653384"], ["nonce", "100"], ["updated_at", "2014-10-16 18:39:25.653384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.657729"], ["nonce", "100"], ["updated_at", "2014-10-16 18:39:25.657729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.658728"], ["nonce", "100"], ["updated_at", "2014-10-16 18:39:25.658728"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.675044"], ["nonce", #], ["updated_at", "2014-10-16 18:39:25.675044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.686193"], ["nonce", #], ["updated_at", "2014-10-16 18:39:25.686193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.693798"], ["nonce", #], ["updated_at", "2014-10-16 18:39:25.693798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.705561"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:39:25.705561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 426) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 426 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:39:25.708904"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.713773"], ["nonce", #], ["updated_at", "2014-10-16 18:39:25.713773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.715777"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:39:25.715777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 427) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 427 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:39:25.716975"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.730156"], ["nonce", #], ["updated_at", "2014-10-16 18:39:25.730156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.732414"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:39:25.732414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 428) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 428 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:39:25.733736"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.739108"], ["nonce", #], ["updated_at", "2014-10-16 18:39:25.739108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.743084"], ["nonce", #], ["updated_at", "2014-10-16 18:39:25.743084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.747672"], ["nonce", #], ["updated_at", "2014-10-16 18:39:25.747672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:39:25.787777"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:39:25.787777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:25.797015"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:39:25.797015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 430]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:25.799927"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:39:25.799927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 431]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:25.804439"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:39:25.804439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:25.806967"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:39:25.806967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:39:25.809426"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:39:25.809426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.764575"], ["nonce", #], ["updated_at", "2014-10-16 18:40:27.764575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.778764"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:40:27.778764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 435) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 435 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:40:27.781435"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 24ms (ActiveRecord: 5.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.789965"], ["nonce", #], ["updated_at", "2014-10-16 18:40:27.789965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.793808"], ["nonce", #], ["updated_at", "2014-10-16 18:40:27.793808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.795730"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:40:27.795730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 436) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 436 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:40:27.796896"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.800319"], ["nonce", #], ["updated_at", "2014-10-16 18:40:27.800319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.813290"], ["nonce", #], ["updated_at", "2014-10-16 18:40:27.813290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.817023"], ["nonce", #], ["updated_at", "2014-10-16 18:40:27.817023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.820366"], ["nonce", #], ["updated_at", "2014-10-16 18:40:27.820366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.822813"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:40:27.822813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 437) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 437 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:40:27.824384"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.828156"], ["nonce", #], ["updated_at", "2014-10-16 18:40:27.828156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.847882"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:40:27.847882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:27.853764"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:40:27.853764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:27.857851"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:40:27.857851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:27.861265"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:40:27.861265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:27.864018"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:40:27.864018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 442]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:27.866631"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:40:27.866631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 443]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.881295"], ["nonce", "100"], ["updated_at", "2014-10-16 18:40:27.881295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.882885"], ["nonce", "100"], ["updated_at", "2014-10-16 18:40:27.882885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:27.883642"], ["nonce", "100"], ["updated_at", "2014-10-16 18:40:27.883642"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.082352"], ["nonce", "100"], ["updated_at", "2014-10-16 18:40:41.082352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.084712"], ["nonce", "100"], ["updated_at", "2014-10-16 18:40:41.084712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.085632"], ["nonce", "100"], ["updated_at", "2014-10-16 18:40:41.085632"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.105706"], ["nonce", #], ["updated_at", "2014-10-16 18:40:41.105706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.109740"], ["nonce", #], ["updated_at", "2014-10-16 18:40:41.109740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.112421"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:40:41.112421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 444) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 444 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:40:41.114943"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.119472"], ["nonce", #], ["updated_at", "2014-10-16 18:40:41.119472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.122176"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:40:41.122176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 445) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 445 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:40:41.123869"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.128000"], ["nonce", #], ["updated_at", "2014-10-16 18:40:41.128000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.144323"], ["nonce", #], ["updated_at", "2014-10-16 18:40:41.144323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.146430"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:40:41.146430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 446) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 446 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:40:41.147802"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.152072"], ["nonce", #], ["updated_at", "2014-10-16 18:40:41.152072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.157452"], ["nonce", #], ["updated_at", "2014-10-16 18:40:41.157452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.161499"], ["nonce", #], ["updated_at", "2014-10-16 18:40:41.161499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:41.173431"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:40:41.173431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:41.176684"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:40:41.176684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:41.179006"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:40:41.179006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:40:41.194986"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:40:41.194986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:41.200709"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:40:41.200709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 451]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:40:41.204321"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:40:41.204321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 452]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:11.510274"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:41:11.510274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:11.517078"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:41:11.517078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:11.520183"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:41:11.520183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:11.524270"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:41:11.524270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 456]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:11.528481"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:41:11.528481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 457]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.541431"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:41:11.541431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.568466"], ["nonce", #], ["updated_at", "2014-10-16 18:41:11.568466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.572730"], ["nonce", #], ["updated_at", "2014-10-16 18:41:11.572730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.576112"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:41:11.576112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 459) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 459 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:41:11.577816"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.582293"], ["nonce", #], ["updated_at", "2014-10-16 18:41:11.582293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.584423"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:41:11.584423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 460) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 460 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:41:11.585737"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.589492"], ["nonce", #], ["updated_at", "2014-10-16 18:41:11.589492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.593958"], ["nonce", #], ["updated_at", "2014-10-16 18:41:11.593958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.598076"], ["nonce", #], ["updated_at", "2014-10-16 18:41:11.598076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.602341"], ["nonce", #], ["updated_at", "2014-10-16 18:41:11.602341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.605869"], ["nonce", #], ["updated_at", "2014-10-16 18:41:11.605869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.607867"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:41:11.607867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 461) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 461 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:41:11.609048"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.635438"], ["nonce", "100"], ["updated_at", "2014-10-16 18:41:11.635438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.636828"], ["nonce", "100"], ["updated_at", "2014-10-16 18:41:11.636828"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:11.638985"], ["nonce", "100"], ["updated_at", "2014-10-16 18:41:11.638985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.110144"], ["nonce", #], ["updated_at", "2014-10-16 18:41:40.110144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.115021"], ["nonce", #], ["updated_at", "2014-10-16 18:41:40.115021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.117344"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:41:40.117344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 462) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 462 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:41:40.119403"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.131178"], ["nonce", #], ["updated_at", "2014-10-16 18:41:40.131178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.133934"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:41:40.133934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 463) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 463 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:41:40.135323"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.139632"], ["nonce", #], ["updated_at", "2014-10-16 18:41:40.139632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.144301"], ["nonce", #], ["updated_at", "2014-10-16 18:41:40.144301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.148603"], ["nonce", #], ["updated_at", "2014-10-16 18:41:40.148603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.152193"], ["nonce", #], ["updated_at", "2014-10-16 18:41:40.152193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.156134"], ["nonce", #], ["updated_at", "2014-10-16 18:41:40.156134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.158569"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:41:40.158569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 464) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 464 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:41:40.160024"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.178646"], ["nonce", "100"], ["updated_at", "2014-10-16 18:41:40.178646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.179831"], ["nonce", "100"], ["updated_at", "2014-10-16 18:41:40.179831"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.181890"], ["nonce", "100"], ["updated_at", "2014-10-16 18:41:40.181890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:40.193102"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:41:40.193102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:40.196675"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:41:40.196675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:40.199373"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:41:40.199373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:40.203183"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:41:40.203183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 468]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:41:40.207338"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:41:40.207338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 469]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:41:40.218039"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:41:40.218039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.216524"], ["nonce", "100"], ["updated_at", "2014-10-16 18:42:05.216524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.217935"], ["nonce", "100"], ["updated_at", "2014-10-16 18:42:05.217935"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.220758"], ["nonce", "100"], ["updated_at", "2014-10-16 18:42:05.220758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.244569"], ["nonce", #], ["updated_at", "2014-10-16 18:42:05.244569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.248373"], ["nonce", #], ["updated_at", "2014-10-16 18:42:05.248373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.257370"], ["nonce", #], ["updated_at", "2014-10-16 18:42:05.257370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.261686"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:42:05.261686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 471) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 471 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:42:05.263624"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.268031"], ["nonce", #], ["updated_at", "2014-10-16 18:42:05.268031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.270028"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:42:05.270028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 472) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 472 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:42:05.271826"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.276194"], ["nonce", #], ["updated_at", "2014-10-16 18:42:05.276194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.278033"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:42:05.278033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 473) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 473 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:42:05.279170"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.283050"], ["nonce", #], ["updated_at", "2014-10-16 18:42:05.283050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.286722"], ["nonce", #], ["updated_at", "2014-10-16 18:42:05.286722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.290875"], ["nonce", #], ["updated_at", "2014-10-16 18:42:05.290875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:42:05.306483"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:42:05.306483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 474]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:42:05.309406"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:42:05.309406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 475]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:42:05.315914"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:42:05.315914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:42:05.332715"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:42:05.332715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:42:05.335357"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:42:05.335357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:42:05.338168"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:42:05.338168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.643598"], ["nonce", #], ["updated_at", "2014-10-16 18:44:00.643598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.657053"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:44:00.657053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 480) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 480 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:44:00.659194"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 5.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.668632"], ["nonce", #], ["updated_at", "2014-10-16 18:44:00.668632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.672863"], ["nonce", #], ["updated_at", "2014-10-16 18:44:00.672863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.674772"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:44:00.674772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 481) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 481 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:44:00.675938"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.679518"], ["nonce", #], ["updated_at", "2014-10-16 18:44:00.679518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.684303"], ["nonce", #], ["updated_at", "2014-10-16 18:44:00.684303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.688500"], ["nonce", #], ["updated_at", "2014-10-16 18:44:00.688500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.692641"], ["nonce", #], ["updated_at", "2014-10-16 18:44:00.692641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.695887"], ["nonce", #], ["updated_at", "2014-10-16 18:44:00.695887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.697720"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:44:00.697720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 482) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 482 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:44:00.698895"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:00.723707"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:44:00.723707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:00.726926"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:44:00.726926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:00.729184"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:44:00.729184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:00.732966"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:44:00.732966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 486]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:00.735784"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:44:00.735784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 487]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.748875"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:44:00.748875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.763764"], ["nonce", "100"], ["updated_at", "2014-10-16 18:44:00.763764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.764700"], ["nonce", "100"], ["updated_at", "2014-10-16 18:44:00.764700"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:00.766316"], ["nonce", "100"], ["updated_at", "2014-10-16 18:44:00.766316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.654288"], ["nonce", "100"], ["updated_at", "2014-10-16 18:44:05.654288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.656962"], ["nonce", "100"], ["updated_at", "2014-10-16 18:44:05.656962"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.659135"], ["nonce", "100"], ["updated_at", "2014-10-16 18:44:05.659135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.681016"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:44:05.681016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:05.690649"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:44:05.690649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 490]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:05.693516"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:44:05.693516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 491]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:05.698391"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:44:05.698391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:05.700902"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:44:05.700902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:05.702948"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:44:05.702948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.718069"], ["nonce", #], ["updated_at", "2014-10-16 18:44:05.718069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.721854"], ["nonce", #], ["updated_at", "2014-10-16 18:44:05.721854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.726797"], ["nonce", #], ["updated_at", "2014-10-16 18:44:05.726797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.728946"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:44:05.728946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 495) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 495 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:44:05.730995"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.737886"], ["nonce", #], ["updated_at", "2014-10-16 18:44:05.737886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.739739"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:44:05.739739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 496) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 496 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:44:05.740862"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.744446"], ["nonce", #], ["updated_at", "2014-10-16 18:44:05.744446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.746380"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:44:05.746380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 497) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 497 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:44:05.747554"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.751550"], ["nonce", #], ["updated_at", "2014-10-16 18:44:05.751550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.755464"], ["nonce", #], ["updated_at", "2014-10-16 18:44:05.755464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:05.758839"], ["nonce", #], ["updated_at", "2014-10-16 18:44:05.758839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.360280"], ["nonce", "100"], ["updated_at", "2014-10-16 18:44:36.360280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.362687"], ["nonce", "100"], ["updated_at", "2014-10-16 18:44:36.362687"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.364982"], ["nonce", "100"], ["updated_at", "2014-10-16 18:44:36.364982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:36.379746"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:44:36.379746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:36.383321"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:44:36.383321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:36.385664"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:44:36.385664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:36.389033"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:44:36.389033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 501]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:44:36.392110"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:44:36.392110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 502]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.403976"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:44:36.403976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.438382"], ["nonce", #], ["updated_at", "2014-10-16 18:44:36.438382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.443162"], ["nonce", #], ["updated_at", "2014-10-16 18:44:36.443162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.445169"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:44:36.445169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 504) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 504 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:44:36.447094"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.455652"], ["nonce", #], ["updated_at", "2014-10-16 18:44:36.455652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.457640"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:44:36.457640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 505) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 505 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:44:36.458853"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.462610"], ["nonce", #], ["updated_at", "2014-10-16 18:44:36.462610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.467358"], ["nonce", #], ["updated_at", "2014-10-16 18:44:36.467358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.472320"], ["nonce", #], ["updated_at", "2014-10-16 18:44:36.472320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.476335"], ["nonce", #], ["updated_at", "2014-10-16 18:44:36.476335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.479678"], ["nonce", #], ["updated_at", "2014-10-16 18:44:36.479678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:44:36.481588"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:44:36.481588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 506) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 506 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:44:36.482830"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.385616"], ["nonce", "100"], ["updated_at", "2014-10-16 18:45:02.385616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.388245"], ["nonce", "100"], ["updated_at", "2014-10-16 18:45:02.388245"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.390063"], ["nonce", "100"], ["updated_at", "2014-10-16 18:45:02.390063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:45:02.424138"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:45:02.424138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:45:02.428184"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:45:02.428184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:45:02.430929"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:45:02.430929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:45:02.434666"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:45:02.434666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 510]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:45:02.438157"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:45:02.438157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 511]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.450996"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:45:02.450996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.468225"], ["nonce", #], ["updated_at", "2014-10-16 18:45:02.468225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.470457"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:45:02.470457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 513) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 513 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:45:02.472217"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.478547"], ["nonce", #], ["updated_at", "2014-10-16 18:45:02.478547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.481965"], ["nonce", #], ["updated_at", "2014-10-16 18:45:02.481965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.483874"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:45:02.483874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 514) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 514 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:45:02.485171"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.492734"], ["nonce", #], ["updated_at", "2014-10-16 18:45:02.492734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.499398"], ["nonce", #], ["updated_at", "2014-10-16 18:45:02.499398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.503378"], ["nonce", #], ["updated_at", "2014-10-16 18:45:02.503378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.506920"], ["nonce", #], ["updated_at", "2014-10-16 18:45:02.506920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.510159"], ["nonce", #], ["updated_at", "2014-10-16 18:45:02.510159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:45:02.512144"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:45:02.512144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 515) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 515 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:45:02.513456"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:46:16.147418"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:46:16.147418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:46:16.152449"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:46:16.152449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:46:16.154807"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:46:16.154807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.166934"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:46:16.166934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:46:16.172795"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:46:16.172795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 520]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:46:16.175480"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:46:16.175480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 521]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.184364"], ["nonce", "100"], ["updated_at", "2014-10-16 18:46:16.184364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.186378"], ["nonce", "100"], ["updated_at", "2014-10-16 18:46:16.186378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.187080"], ["nonce", "100"], ["updated_at", "2014-10-16 18:46:16.187080"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.195883"], ["nonce", #], ["updated_at", "2014-10-16 18:46:16.195883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.197925"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:46:16.197925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 522) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 522 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:46:16.200054"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.204569"], ["nonce", #], ["updated_at", "2014-10-16 18:46:16.204569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.207815"], ["nonce", #], ["updated_at", "2014-10-16 18:46:16.207815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.212357"], ["nonce", #], ["updated_at", "2014-10-16 18:46:16.212357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.214217"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:46:16.214217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 523) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 523 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:46:16.215377"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.229616"], ["nonce", #], ["updated_at", "2014-10-16 18:46:16.229616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.232867"], ["nonce", #], ["updated_at", "2014-10-16 18:46:16.232867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.234807"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:46:16.234807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 524) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 524 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:46:16.236141"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.240478"], ["nonce", #], ["updated_at", "2014-10-16 18:46:16.240478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:46:16.244048"], ["nonce", #], ["updated_at", "2014-10-16 18:46:16.244048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:08.486476"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:47:08.486476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 525]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:08.493094"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:47:08.493094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 526]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:08.496127"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:47:08.496127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:08.499334"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:47:08.499334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:08.502612"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:47:08.502612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.508529"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:47:08.508529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.545394"], ["nonce", #], ["updated_at", "2014-10-16 18:47:08.545394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.549873"], ["nonce", #], ["updated_at", "2014-10-16 18:47:08.549873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.551969"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:47:08.551969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 531) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 531 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:47:08.554038"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.558598"], ["nonce", #], ["updated_at", "2014-10-16 18:47:08.558598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.563823"], ["nonce", #], ["updated_at", "2014-10-16 18:47:08.563823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.565778"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:47:08.565778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 532) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 532 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:47:08.567160"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.579767"], ["nonce", #], ["updated_at", "2014-10-16 18:47:08.579767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.585355"], ["nonce", #], ["updated_at", "2014-10-16 18:47:08.585355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.589249"], ["nonce", #], ["updated_at", "2014-10-16 18:47:08.589249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.591160"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:47:08.591160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 533) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 533 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:47:08.592435"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.597131"], ["nonce", #], ["updated_at", "2014-10-16 18:47:08.597131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.618893"], ["nonce", "100"], ["updated_at", "2014-10-16 18:47:08.618893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.620540"], ["nonce", "100"], ["updated_at", "2014-10-16 18:47:08.620540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:08.621199"], ["nonce", "100"], ["updated_at", "2014-10-16 18:47:08.621199"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:43.453138"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:47:43.453138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:43.458273"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:47:43.458273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:43.461002"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:47:43.461002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:43.464781"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:47:43.464781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 537]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:47:43.468724"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:47:43.468724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 538]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.480926"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:47:43.480926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.507910"], ["nonce", #], ["updated_at", "2014-10-16 18:47:43.507910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.511643"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:47:43.511643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 540) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 540 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:47:43.513500"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.517812"], ["nonce", #], ["updated_at", "2014-10-16 18:47:43.517812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.522146"], ["nonce", #], ["updated_at", "2014-10-16 18:47:43.522146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.524244"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:47:43.524244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 541) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 541 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:47:43.525403"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.528949"], ["nonce", #], ["updated_at", "2014-10-16 18:47:43.528949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.532532"], ["nonce", #], ["updated_at", "2014-10-16 18:47:43.532532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.535989"], ["nonce", #], ["updated_at", "2014-10-16 18:47:43.535989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.541030"], ["nonce", #], ["updated_at", "2014-10-16 18:47:43.541030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.544399"], ["nonce", #], ["updated_at", "2014-10-16 18:47:43.544399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.546203"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:47:43.546203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 542) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 542 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:47:43.547348"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.588921"], ["nonce", "100"], ["updated_at", "2014-10-16 18:47:43.588921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.589855"], ["nonce", "100"], ["updated_at", "2014-10-16 18:47:43.589855"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:47:43.591573"], ["nonce", "100"], ["updated_at", "2014-10-16 18:47:43.591573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.716819"], ["nonce", "100"], ["updated_at", "2014-10-16 18:48:53.716819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.719386"], ["nonce", "100"], ["updated_at", "2014-10-16 18:48:53.719386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.720278"], ["nonce", "100"], ["updated_at", "2014-10-16 18:48:53.720278"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.725763"], ["nonce", #], ["updated_at", "2014-10-16 18:48:53.725763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.729654"], ["nonce", #], ["updated_at", "2014-10-16 18:48:53.729654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.731828"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:48:53.731828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 543) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 543 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:48:53.733634"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.737509"], ["nonce", #], ["updated_at", "2014-10-16 18:48:53.737509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.739508"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:48:53.739508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 544) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 544 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:48:53.740960"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.744666"], ["nonce", #], ["updated_at", "2014-10-16 18:48:53.744666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.759604"], ["nonce", #], ["updated_at", "2014-10-16 18:48:53.759604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.761482"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:48:53.761482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 545) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 545 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:48:53.762603"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.766826"], ["nonce", #], ["updated_at", "2014-10-16 18:48:53.766826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.770947"], ["nonce", #], ["updated_at", "2014-10-16 18:48:53.770947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.774516"], ["nonce", #], ["updated_at", "2014-10-16 18:48:53.774516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:48:53.788128"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:48:53.788128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:48:53.795317"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:48:53.795317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:48:53.797644"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:48:53.797644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:48:53.800043"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:48:53.800043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:48:53.802607"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:48:53.802607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 550]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:48:53.805079"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:48:53.805079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 551]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.721725"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:13.721725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.724396"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:13.724396"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.726593"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:13.726593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.752078"], ["nonce", #], ["updated_at", "2014-10-16 18:49:13.752078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.754621"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:13.754621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 552) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 552 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:13.756579"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.760488"], ["nonce", #], ["updated_at", "2014-10-16 18:49:13.760488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.767957"], ["nonce", #], ["updated_at", "2014-10-16 18:49:13.767957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.770431"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:13.770431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 553) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 553 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:13.771675"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.775622"], ["nonce", #], ["updated_at", "2014-10-16 18:49:13.775622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.777658"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:13.777658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 554) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 554 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:13.778965"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.783293"], ["nonce", #], ["updated_at", "2014-10-16 18:49:13.783293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.788780"], ["nonce", #], ["updated_at", "2014-10-16 18:49:13.788780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.792498"], ["nonce", #], ["updated_at", "2014-10-16 18:49:13.792498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:13.809091"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:49:13.809091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 555]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:13.811968"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:49:13.811968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 556]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:13.816567"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:49:13.816567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:13.832792"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:13.832792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:13.835044"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:13.835044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:13.837433"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:13.837433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:21.933126"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:49:21.933126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 561]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:21.938452"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:49:21.938452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 562]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:21.941193"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:21.941193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:21.944506"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:21.944506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:21.947319"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:21.947319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:21.953735"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:49:21.953735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:21.989352"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:21.989352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:21.990597"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:21.990597"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:21.992250"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:21.992250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:21.995561"], ["nonce", #], ["updated_at", "2014-10-16 18:49:21.995561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:21.997692"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:21.997692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 567) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 567 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:21.999806"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:22.008041"], ["nonce", #], ["updated_at", "2014-10-16 18:49:22.008041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:22.010012"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:22.010012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 568) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 568 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:22.011297"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:22.015589"], ["nonce", #], ["updated_at", "2014-10-16 18:49:22.015589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:22.019104"], ["nonce", #], ["updated_at", "2014-10-16 18:49:22.019104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:22.025250"], ["nonce", #], ["updated_at", "2014-10-16 18:49:22.025250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:22.029329"], ["nonce", #], ["updated_at", "2014-10-16 18:49:22.029329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:22.033803"], ["nonce", #], ["updated_at", "2014-10-16 18:49:22.033803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:22.037221"], ["nonce", #], ["updated_at", "2014-10-16 18:49:22.037221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:22.039217"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:22.039217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 569) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 569 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:22.040722"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.362606"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:49:32.362606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:32.368922"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:32.368922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:32.373251"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:32.373251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:32.376065"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:32.376065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:32.378435"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:49:32.378435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 574]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:32.381119"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:49:32.381119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 575]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.388815"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:32.388815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.391716"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:32.391716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.392526"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:32.392526"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.415076"], ["nonce", #], ["updated_at", "2014-10-16 18:49:32.415076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.417212"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:32.417212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 576) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 576 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:32.418905"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.423297"], ["nonce", #], ["updated_at", "2014-10-16 18:49:32.423297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.426557"], ["nonce", #], ["updated_at", "2014-10-16 18:49:32.426557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.428514"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:32.428514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 577) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 577 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:32.430004"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.433607"], ["nonce", #], ["updated_at", "2014-10-16 18:49:32.433607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.448601"], ["nonce", #], ["updated_at", "2014-10-16 18:49:32.448601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.453165"], ["nonce", #], ["updated_at", "2014-10-16 18:49:32.453165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.455171"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:32.455171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 578) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 578 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:32.456423"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.460663"], ["nonce", #], ["updated_at", "2014-10-16 18:49:32.460663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:32.464356"], ["nonce", #], ["updated_at", "2014-10-16 18:49:32.464356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:49.963476"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:49.963476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:49.966268"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:49.966268"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:49.968597"], ["nonce", "100"], ["updated_at", "2014-10-16 18:49:49.968597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:49.983535"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:49:49.983535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 579]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:49.986747"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:49:49.986747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 580]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:49.991510"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:49:49.991510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:50.008892"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:50.008892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:50.011443"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:50.011443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:49:50.013690"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:49:50.013690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.048707"], ["nonce", #], ["updated_at", "2014-10-16 18:49:50.048707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.052293"], ["nonce", #], ["updated_at", "2014-10-16 18:49:50.052293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.057506"], ["nonce", #], ["updated_at", "2014-10-16 18:49:50.057506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.059835"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:50.059835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 585) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 585 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:50.061546"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.068096"], ["nonce", #], ["updated_at", "2014-10-16 18:49:50.068096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.070121"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:50.070121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 586) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 586 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:50.071412"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.074991"], ["nonce", #], ["updated_at", "2014-10-16 18:49:50.074991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.076798"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:49:50.076798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 587) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 587 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:49:50.077916"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.081947"], ["nonce", #], ["updated_at", "2014-10-16 18:49:50.081947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.085750"], ["nonce", #], ["updated_at", "2014-10-16 18:49:50.085750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:49:50.090132"], ["nonce", #], ["updated_at", "2014-10-16 18:49:50.090132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:04.038915"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:50:04.038915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:04.044791"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:50:04.044791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:04.047323"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:50:04.047323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:04.050399"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:50:04.050399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 591]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:04.054240"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:50:04.054240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 592]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.065866"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:50:04.065866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.104425"], ["nonce", "100"], ["updated_at", "2014-10-16 18:50:04.104425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.105721"], ["nonce", "100"], ["updated_at", "2014-10-16 18:50:04.105721"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.107438"], ["nonce", "100"], ["updated_at", "2014-10-16 18:50:04.107438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.120475"], ["nonce", #], ["updated_at", "2014-10-16 18:50:04.120475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.122683"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:50:04.122683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 594) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 594 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:50:04.124400"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.128460"], ["nonce", #], ["updated_at", "2014-10-16 18:50:04.128460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.131631"], ["nonce", #], ["updated_at", "2014-10-16 18:50:04.131631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.133405"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:50:04.133405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 595) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 595 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:50:04.134513"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.141558"], ["nonce", #], ["updated_at", "2014-10-16 18:50:04.141558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.146301"], ["nonce", #], ["updated_at", "2014-10-16 18:50:04.146301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.150530"], ["nonce", #], ["updated_at", "2014-10-16 18:50:04.150530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.154172"], ["nonce", #], ["updated_at", "2014-10-16 18:50:04.154172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.157235"], ["nonce", #], ["updated_at", "2014-10-16 18:50:04.157235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:04.159037"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:50:04.159037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 596) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 596 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:50:04.160242"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:11.111837"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:50:11.111837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 597]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:11.117458"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:50:11.117458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 598]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:11.120302"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:50:11.120302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:11.123736"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:50:11.123736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:11.126276"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:50:11.126276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.131485"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:50:11.131485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.165759"], ["nonce", #], ["updated_at", "2014-10-16 18:50:11.165759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.170093"], ["nonce", #], ["updated_at", "2014-10-16 18:50:11.170093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.173732"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:50:11.173732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 603) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 603 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:50:11.175569"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.180231"], ["nonce", #], ["updated_at", "2014-10-16 18:50:11.180231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.182392"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:50:11.182392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 604) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 604 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:50:11.183622"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.187152"], ["nonce", #], ["updated_at", "2014-10-16 18:50:11.187152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.191244"], ["nonce", #], ["updated_at", "2014-10-16 18:50:11.191244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.195472"], ["nonce", #], ["updated_at", "2014-10-16 18:50:11.195472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.200175"], ["nonce", #], ["updated_at", "2014-10-16 18:50:11.200175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.203368"], ["nonce", #], ["updated_at", "2014-10-16 18:50:11.203368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.205319"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:50:11.205319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 605) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 605 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:50:11.206480"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.228833"], ["nonce", "100"], ["updated_at", "2014-10-16 18:50:11.228833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.229714"], ["nonce", "100"], ["updated_at", "2014-10-16 18:50:11.229714"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:11.231155"], ["nonce", "100"], ["updated_at", "2014-10-16 18:50:11.231155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:28.305720"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:50:28.305720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 606]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:28.312182"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:50:28.312182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 607]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:28.315168"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:50:28.315168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:28.318362"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:50:28.318362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:50:28.320787"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:50:28.320787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.326559"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:50:28.326559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.355637"], ["nonce", #], ["updated_at", "2014-10-16 18:50:28.355637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.358065"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:50:28.358065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 612) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 612 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:50:28.359836"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.364045"], ["nonce", #], ["updated_at", "2014-10-16 18:50:28.364045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.365860"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:50:28.365860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 613) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 613 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:50:28.367290"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.371371"], ["nonce", #], ["updated_at", "2014-10-16 18:50:28.371371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.375258"], ["nonce", #], ["updated_at", "2014-10-16 18:50:28.375258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.378966"], ["nonce", #], ["updated_at", "2014-10-16 18:50:28.378966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.382438"], ["nonce", #], ["updated_at", "2014-10-16 18:50:28.382438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.386643"], ["nonce", #], ["updated_at", "2014-10-16 18:50:28.386643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.390440"], ["nonce", #], ["updated_at", "2014-10-16 18:50:28.390440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.392337"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:50:28.392337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 614) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 614 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:50:28.393495"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.428357"], ["nonce", "100"], ["updated_at", "2014-10-16 18:50:28.428357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.429292"], ["nonce", "100"], ["updated_at", "2014-10-16 18:50:28.429292"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:50:28.430840"], ["nonce", "100"], ["updated_at", "2014-10-16 18:50:28.430840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.5ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:30.714467"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:53:30.714467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:30.718635"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:53:30.718635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:30.721350"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:53:30.721350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:30.724817"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:53:30.724817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 618]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:30.729296"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:53:30.729296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 619]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.737728"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:53:30.737728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (4.3ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.780706"], ["nonce", "100"], ["updated_at", "2014-10-16 18:53:30.780706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.781933"], ["nonce", "100"], ["updated_at", "2014-10-16 18:53:30.781933"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.783532"], ["nonce", "100"], ["updated_at", "2014-10-16 18:53:30.783532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.788184"], ["nonce", #], ["updated_at", "2014-10-16 18:53:30.788184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.790417"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:53:30.790417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 621) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 621 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:53:30.792230"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.796362"], ["nonce", #], ["updated_at", "2014-10-16 18:53:30.796362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.798235"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:53:30.798235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 622) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 622 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:53:30.799565"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.805051"], ["nonce", #], ["updated_at", "2014-10-16 18:53:30.805051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.812970"], ["nonce", #], ["updated_at", "2014-10-16 18:53:30.812970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.817417"], ["nonce", #], ["updated_at", "2014-10-16 18:53:30.817417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.822136"], ["nonce", #], ["updated_at", "2014-10-16 18:53:30.822136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.826046"], ["nonce", #], ["updated_at", "2014-10-16 18:53:30.826046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.829667"], ["nonce", #], ["updated_at", "2014-10-16 18:53:30.829667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:30.831749"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:53:30.831749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 623) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 623 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:53:30.833004"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.497308"], ["nonce", "100"], ["updated_at", "2014-10-16 18:53:38.497308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.500028"], ["nonce", "100"], ["updated_at", "2014-10-16 18:53:38.500028"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.502540"], ["nonce", "100"], ["updated_at", "2014-10-16 18:53:38.502540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.565202"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:53:38.565202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:38.575072"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:53:38.575072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 625]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:38.578518"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:53:38.578518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 626]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:38.583726"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:53:38.583726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:38.586211"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:53:38.586211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:53:38.588693"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:53:38.588693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.604794"], ["nonce", #], ["updated_at", "2014-10-16 18:53:38.604794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.607507"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:53:38.607507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 630) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 630 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:53:38.609401"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.614230"], ["nonce", #], ["updated_at", "2014-10-16 18:53:38.614230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.622243"], ["nonce", #], ["updated_at", "2014-10-16 18:53:38.622243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.624348"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:53:38.624348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 631) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 631 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:53:38.625666"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.629924"], ["nonce", #], ["updated_at", "2014-10-16 18:53:38.629924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.632595"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:53:38.632595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 632) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 632 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:53:38.634012"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.638339"], ["nonce", #], ["updated_at", "2014-10-16 18:53:38.638339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.642243"], ["nonce", #], ["updated_at", "2014-10-16 18:53:38.642243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:53:38.645982"], ["nonce", #], ["updated_at", "2014-10-16 18:53:38.645982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.712591"], ["nonce", "100"], ["updated_at", "2014-10-16 18:54:14.712591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.714931"], ["nonce", "100"], ["updated_at", "2014-10-16 18:54:14.714931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.715684"], ["nonce", "100"], ["updated_at", "2014-10-16 18:54:14.715684"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.725729"], ["nonce", #], ["updated_at", "2014-10-16 18:54:14.725729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.729235"], ["nonce", #], ["updated_at", "2014-10-16 18:54:14.729235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.731302"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:54:14.731302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 633) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 633 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:54:14.733271"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.737204"], ["nonce", #], ["updated_at", "2014-10-16 18:54:14.737204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.739490"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:54:14.739490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 634) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 634 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:54:14.740974"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.748458"], ["nonce", #], ["updated_at", "2014-10-16 18:54:14.748458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.760129"], ["nonce", #], ["updated_at", "2014-10-16 18:54:14.760129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.764777"], ["nonce", #], ["updated_at", "2014-10-16 18:54:14.764777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.768024"], ["nonce", #], ["updated_at", "2014-10-16 18:54:14.768024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.770173"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:54:14.770173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 635) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 635 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:54:14.771593"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.775381"], ["nonce", #], ["updated_at", "2014-10-16 18:54:14.775381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:54:14.792196"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:54:14.792196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:54:14.795361"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:54:14.795361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:54:14.798512"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:54:14.798512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:54:14.810226"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:54:14.810226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:54:14.815680"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:54:14.815680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 640]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:54:14.818975"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:54:14.818975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 641]]  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:59:52.215083"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 18:59:52.215083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 642]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:59:52.221903"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 18:59:52.221903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 643]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:59:52.224926"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:59:52.224926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:59:52.228132"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:59:52.228132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 18:59:52.231353"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 18:59:52.231353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.236174"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 18:59:52.236174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.278005"], ["nonce", #], ["updated_at", "2014-10-16 18:59:52.278005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.282243"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:59:52.282243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 648) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 648 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:59:52.284590"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 12ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.293102"], ["nonce", #], ["updated_at", "2014-10-16 18:59:52.293102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.296561"], ["nonce", #], ["updated_at", "2014-10-16 18:59:52.296561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.300412"], ["nonce", #], ["updated_at", "2014-10-16 18:59:52.300412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.302428"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:59:52.302428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 649) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 649 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:59:52.303705"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.316152"], ["nonce", #], ["updated_at", "2014-10-16 18:59:52.316152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.319918"], ["nonce", #], ["updated_at", "2014-10-16 18:59:52.319918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.323176"], ["nonce", #], ["updated_at", "2014-10-16 18:59:52.323176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.325494"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 18:59:52.325494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 650) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 650 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 18:59:52.327101"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.331854"], ["nonce", #], ["updated_at", "2014-10-16 18:59:52.331854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.358460"], ["nonce", "100"], ["updated_at", "2014-10-16 18:59:52.358460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.360222"], ["nonce", "100"], ["updated_at", "2014-10-16 18:59:52.360222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 18:59:52.360967"], ["nonce", "100"], ["updated_at", "2014-10-16 18:59:52.360967"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.256576"], ["nonce", #], ["updated_at", "2014-10-16 19:05:26.256576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.269633"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 19:05:26.269633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 651) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 651 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 19:05:26.272330"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 4.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.277437"], ["nonce", #], ["updated_at", "2014-10-16 19:05:26.277437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.280867"], ["nonce", #], ["updated_at", "2014-10-16 19:05:26.280867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.282730"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 19:05:26.282730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 652) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 652 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 19:05:26.283966"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.287641"], ["nonce", #], ["updated_at", "2014-10-16 19:05:26.287641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.291836"], ["nonce", #], ["updated_at", "2014-10-16 19:05:26.291836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.296949"], ["nonce", #], ["updated_at", "2014-10-16 19:05:26.296949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.301898"], ["nonce", #], ["updated_at", "2014-10-16 19:05:26.301898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.305490"], ["nonce", #], ["updated_at", "2014-10-16 19:05:26.305490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.307449"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 19:05:26.307449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 653) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 653 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 19:05:26.308608"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:26.322123"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 19:05:26.322123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:26.325537"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 19:05:26.325537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:26.327760"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 19:05:26.327760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:26.331021"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 19:05:26.331021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 657]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:26.334836"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 19:05:26.334836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 658]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.345999"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 19:05:26.345999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.365956"], ["nonce", "100"], ["updated_at", "2014-10-16 19:05:26.365956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.366807"], ["nonce", "100"], ["updated_at", "2014-10-16 19:05:26.366807"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:26.368788"], ["nonce", "100"], ["updated_at", "2014-10-16 19:05:26.368788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.350067"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 19:05:46.350067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:46.360381"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 19:05:46.360381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 661]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:46.363753"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 19:05:46.363753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 662]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:46.367087"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 19:05:46.367087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:46.371143"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 19:05:46.371143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:05:46.373535"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 19:05:46.373535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.391085"], ["nonce", "100"], ["updated_at", "2014-10-16 19:05:46.391085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.392309"], ["nonce", "100"], ["updated_at", "2014-10-16 19:05:46.392309"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.394444"], ["nonce", "100"], ["updated_at", "2014-10-16 19:05:46.394444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.431983"], ["nonce", #], ["updated_at", "2014-10-16 19:05:46.431983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.439208"], ["nonce", #], ["updated_at", "2014-10-16 19:05:46.439208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (2.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.445430"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 19:05:46.445430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 666) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 666 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 19:05:46.447523"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 3.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.451728"], ["nonce", #], ["updated_at", "2014-10-16 19:05:46.451728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.457525"], ["nonce", #], ["updated_at", "2014-10-16 19:05:46.457525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.459381"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 19:05:46.459381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 667) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 667 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 19:05:46.460638"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.464572"], ["nonce", #], ["updated_at", "2014-10-16 19:05:46.464572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.467830"], ["nonce", #], ["updated_at", "2014-10-16 19:05:46.467830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.470255"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 19:05:46.470255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 668) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 668 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 19:05:46.471535"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.475380"], ["nonce", #], ["updated_at", "2014-10-16 19:05:46.475380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:05:46.478943"], ["nonce", #], ["updated_at", "2014-10-16 19:05:46.478943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.500122"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 19:20:02.500122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:20:02.510354"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 19:20:02.510354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:20:02.513469"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 19:20:02.513469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:20:02.518690"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 19:20:02.518690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:20:02.521467"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 19:20:02.521467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 19:20:02.523592"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 19:20:02.523592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.542405"], ["nonce", #], ["updated_at", "2014-10-16 19:20:02.542405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.551852"], ["nonce", #], ["updated_at", "2014-10-16 19:20:02.551852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.558787"], ["nonce", #], ["updated_at", "2014-10-16 19:20:02.558787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.560968"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 19:20:02.560968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 19:20:02.562814"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.567250"], ["nonce", #], ["updated_at", "2014-10-16 19:20:02.567250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.569845"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 19:20:02.569845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 19:20:02.571615"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.575409"], ["nonce", #], ["updated_at", "2014-10-16 19:20:02.575409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.577360"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 19:20:02.577360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 19:20:02.578563"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.582979"], ["nonce", #], ["updated_at", "2014-10-16 19:20:02.582979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.587401"], ["nonce", #], ["updated_at", "2014-10-16 19:20:02.587401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.591410"], ["nonce", #], ["updated_at", "2014-10-16 19:20:02.591410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.609355"], ["nonce", "100"], ["updated_at", "2014-10-16 19:20:02.609355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.610406"], ["nonce", "100"], ["updated_at", "2014-10-16 19:20:02.610406"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 19:20:02.612228"], ["nonce", "100"], ["updated_at", "2014-10-16 19:20:02.612228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:05:54.109074"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 20:05:54.109074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:05:54.115450"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 20:05:54.115450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.120889"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 20:05:54.120889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:05:54.136630"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:05:54.136630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:05:54.139839"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:05:54.139839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:05:54.142936"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:05:54.142936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.175207"], ["nonce", #], ["updated_at", "2014-10-16 20:05:54.175207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.179882"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:05:54.179882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:05:54.181649"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.189950"], ["nonce", #], ["updated_at", "2014-10-16 20:05:54.189950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.193778"], ["nonce", #], ["updated_at", "2014-10-16 20:05:54.193778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.195665"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:05:54.195665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:05:54.196844"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.200411"], ["nonce", #], ["updated_at", "2014-10-16 20:05:54.200411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.204598"], ["nonce", #], ["updated_at", "2014-10-16 20:05:54.204598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.208575"], ["nonce", #], ["updated_at", "2014-10-16 20:05:54.208575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.211771"], ["nonce", #], ["updated_at", "2014-10-16 20:05:54.211771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.213571"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:05:54.213571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:05:54.214893"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.218826"], ["nonce", #], ["updated_at", "2014-10-16 20:05:54.218826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.245510"], ["nonce", "100"], ["updated_at", "2014-10-16 20:05:54.245510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.246392"], ["nonce", "100"], ["updated_at", "2014-10-16 20:05:54.246392"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:05:54.247957"], ["nonce", "100"], ["updated_at", "2014-10-16 20:05:54.247957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:17:04.740406"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:17:04.740406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:17:04.744976"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:17:04.744976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:17:04.748571"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:17:04.748571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.762221"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 20:17:04.762221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:17:04.768180"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 20:17:04.768180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:17:04.770920"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 20:17:04.770920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.778006"], ["nonce", #], ["updated_at", "2014-10-16 20:17:04.778006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.782571"], ["nonce", #], ["updated_at", "2014-10-16 20:17:04.782571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.784779"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:17:04.784779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:17:04.787007"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.791536"], ["nonce", #], ["updated_at", "2014-10-16 20:17:04.791536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.793488"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:17:04.793488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:17:04.794712"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.798397"], ["nonce", #], ["updated_at", "2014-10-16 20:17:04.798397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.814636"], ["nonce", #], ["updated_at", "2014-10-16 20:17:04.814636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.818932"], ["nonce", #], ["updated_at", "2014-10-16 20:17:04.818932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.822152"], ["nonce", #], ["updated_at", "2014-10-16 20:17:04.822152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.824339"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:17:04.824339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:17:04.826031"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.830417"], ["nonce", #], ["updated_at", "2014-10-16 20:17:04.830417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.857706"], ["nonce", "100"], ["updated_at", "2014-10-16 20:17:04.857706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.859477"], ["nonce", "100"], ["updated_at", "2014-10-16 20:17:04.859477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:17:04.860287"], ["nonce", "100"], ["updated_at", "2014-10-16 20:17:04.860287"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.188575"], ["nonce", #], ["updated_at", "2014-10-16 20:24:15.188575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.6ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.197697"], ["nonce", #], ["updated_at", "2014-10-16 20:24:15.197697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.200557"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:24:15.200557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:24:15.203027"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.207544"], ["nonce", #], ["updated_at", "2014-10-16 20:24:15.207544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.209834"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:24:15.209834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:24:15.211150"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.214888"], ["nonce", #], ["updated_at", "2014-10-16 20:24:15.214888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.229467"], ["nonce", #], ["updated_at", "2014-10-16 20:24:15.229467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.233448"], ["nonce", #], ["updated_at", "2014-10-16 20:24:15.233448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.236550"], ["nonce", #], ["updated_at", "2014-10-16 20:24:15.236550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.238568"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:24:15.238568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:24:15.239806"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.244459"], ["nonce", #], ["updated_at", "2014-10-16 20:24:15.244459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:24:15.252240"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 20:24:15.252240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:24:15.255015"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 20:24:15.255015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:24:15.257463"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:24:15.257463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:24:15.260488"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:24:15.260488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:24:15.263583"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:24:15.263583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.270424"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 20:24:15.270424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.298231"], ["nonce", "100"], ["updated_at", "2014-10-16 20:24:15.298231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.300152"], ["nonce", "100"], ["updated_at", "2014-10-16 20:24:15.300152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:24:15.301070"], ["nonce", "100"], ["updated_at", "2014-10-16 20:24:15.301070"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.411314"], ["nonce", "100"], ["updated_at", "2014-10-16 20:31:48.411314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.414145"], ["nonce", "100"], ["updated_at", "2014-10-16 20:31:48.414145"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.416824"], ["nonce", "100"], ["updated_at", "2014-10-16 20:31:48.416824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:31:48.430537"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-16 20:31:48.430537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:31:48.435964"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-16 20:31:48.435964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:31:48.440017"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:31:48.440017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:31:48.444684"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:31:48.444684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-16 20:31:48.447715"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-16 20:31:48.447715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.453605"], ["lti_user_id", "a"], ["updated_at", "2014-10-16 20:31:48.453605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.479949"], ["nonce", #], ["updated_at", "2014-10-16 20:31:48.479949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.484249"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:31:48.484249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:31:48.486140"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.490778"], ["nonce", #], ["updated_at", "2014-10-16 20:31:48.490778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.492722"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:31:48.492722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:31:48.493920"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.498541"], ["nonce", #], ["updated_at", "2014-10-16 20:31:48.498541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.502245"], ["nonce", #], ["updated_at", "2014-10-16 20:31:48.502245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.506284"], ["nonce", #], ["updated_at", "2014-10-16 20:31:48.506284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.509673"], ["nonce", #], ["updated_at", "2014-10-16 20:31:48.509673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.514314"], ["nonce", #], ["updated_at", "2014-10-16 20:31:48.514314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.518303"], ["nonce", #], ["updated_at", "2014-10-16 20:31:48.518303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-16 20:31:48.520597"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-16 20:31:48.520597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-16 20:31:48.522053"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.592322"], ["nonce", "100"], ["updated_at", "2014-10-17 13:58:57.592322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.595908"], ["nonce", "100"], ["updated_at", "2014-10-17 13:58:57.595908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.596850"], ["nonce", "100"], ["updated_at", "2014-10-17 13:58:57.596850"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.604236"], ["nonce", #], ["updated_at", "2014-10-17 13:58:57.604236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.607700"], ["nonce", #], ["updated_at", "2014-10-17 13:58:57.607700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.616142"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 13:58:57.616142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 13:58:57.618845"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.623492"], ["nonce", #], ["updated_at", "2014-10-17 13:58:57.623492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.625385"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 13:58:57.625385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 13:58:57.626557"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.630119"], ["nonce", #], ["updated_at", "2014-10-17 13:58:57.630119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.645244"], ["nonce", #], ["updated_at", "2014-10-17 13:58:57.645244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.647127"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 13:58:57.647127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 13:58:57.648399"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.652832"], ["nonce", #], ["updated_at", "2014-10-17 13:58:57.652832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.656646"], ["nonce", #], ["updated_at", "2014-10-17 13:58:57.656646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.660823"], ["nonce", #], ["updated_at", "2014-10-17 13:58:57.660823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:58:57.676961"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 13:58:57.676961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:58:57.680155"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 13:58:57.680155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:58:57.682354"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 13:58:57.682354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:58:57.693927"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 13:58:57.693927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:58:57.699637"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 13:58:57.699637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 8]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:58:57.702271"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 13:58:57.702271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.650210"], ["nonce", #], ["updated_at", "2014-10-17 13:59:07.650210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.667746"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 13:59:07.667746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 13:59:07.670327"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 28ms (ActiveRecord: 6.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.676184"], ["nonce", #], ["updated_at", "2014-10-17 13:59:07.676184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.679868"], ["nonce", #], ["updated_at", "2014-10-17 13:59:07.679868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.690451"], ["nonce", #], ["updated_at", "2014-10-17 13:59:07.690451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.693013"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 13:59:07.693013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 13:59:07.694602"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.699435"], ["nonce", #], ["updated_at", "2014-10-17 13:59:07.699435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.703387"], ["nonce", #], ["updated_at", "2014-10-17 13:59:07.703387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.705267"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 13:59:07.705267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 13:59:07.706462"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.710389"], ["nonce", #], ["updated_at", "2014-10-17 13:59:07.710389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.713978"], ["nonce", #], ["updated_at", "2014-10-17 13:59:07.713978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.739937"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 13:59:07.739937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:59:07.748692"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 13:59:07.748692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:59:07.751387"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 13:59:07.751387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:59:07.753970"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 13:59:07.753970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:59:07.758788"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 13:59:07.758788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 13:59:07.761045"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 13:59:07.761045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.782995"], ["nonce", "100"], ["updated_at", "2014-10-17 13:59:07.782995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.783965"], ["nonce", "100"], ["updated_at", "2014-10-17 13:59:07.783965"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 13:59:07.785622"], ["nonce", "100"], ["updated_at", "2014-10-17 13:59:07.785622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:42.119076"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:10:42.119076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:42.124878"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:10:42.124878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:42.127604"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:10:42.127604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:42.131415"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:10:42.131415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:42.134280"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:10:42.134280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.140341"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:10:42.140341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.162789"], ["nonce", "100"], ["updated_at", "2014-10-17 14:10:42.162789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.163940"], ["nonce", "100"], ["updated_at", "2014-10-17 14:10:42.163940"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.165572"], ["nonce", "100"], ["updated_at", "2014-10-17 14:10:42.165572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.169604"], ["nonce", #], ["updated_at", "2014-10-17 14:10:42.169604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.172398"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:10:42.172398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:10:42.174334"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.178579"], ["nonce", #], ["updated_at", "2014-10-17 14:10:42.178579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.185758"], ["nonce", #], ["updated_at", "2014-10-17 14:10:42.185758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.187790"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:10:42.187790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:10:42.188960"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.192780"], ["nonce", #], ["updated_at", "2014-10-17 14:10:42.192780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.198134"], ["nonce", #], ["updated_at", "2014-10-17 14:10:42.198134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.202088"], ["nonce", #], ["updated_at", "2014-10-17 14:10:42.202088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.205777"], ["nonce", #], ["updated_at", "2014-10-17 14:10:42.205777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.209039"], ["nonce", #], ["updated_at", "2014-10-17 14:10:42.209039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:42.210997"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:10:42.210997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:10:42.212290"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.582628"], ["nonce", #], ["updated_at", "2014-10-17 14:10:51.582628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.589989"], ["nonce", #], ["updated_at", "2014-10-17 14:10:51.589989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.601352"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:10:51.601352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:10:51.603951"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.615481"], ["nonce", #], ["updated_at", "2014-10-17 14:10:51.615481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.617419"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:10:51.617419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:10:51.618572"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.622291"], ["nonce", #], ["updated_at", "2014-10-17 14:10:51.622291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.627796"], ["nonce", #], ["updated_at", "2014-10-17 14:10:51.627796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.632478"], ["nonce", #], ["updated_at", "2014-10-17 14:10:51.632478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.636167"], ["nonce", #], ["updated_at", "2014-10-17 14:10:51.636167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.639287"], ["nonce", #], ["updated_at", "2014-10-17 14:10:51.639287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.641212"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:10:51.641212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:10:51.642574"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.670534"], ["nonce", "100"], ["updated_at", "2014-10-17 14:10:51.670534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.671507"], ["nonce", "100"], ["updated_at", "2014-10-17 14:10:51.671507"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.673002"], ["nonce", "100"], ["updated_at", "2014-10-17 14:10:51.673002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:51.685264"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:10:51.685264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 22]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:51.688217"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:10:51.688217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 23]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:51.690773"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:10:51.690773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:51.694074"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:10:51.694074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:10:51.696397"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:10:51.696397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:10:51.702399"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:10:51.702399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.828301"], ["nonce", #], ["updated_at", "2014-10-17 14:11:00.828301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.843583"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:11:00.843583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:11:00.845671"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 25ms (ActiveRecord: 5.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.849959"], ["nonce", #], ["updated_at", "2014-10-17 14:11:00.849959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.853897"], ["nonce", #], ["updated_at", "2014-10-17 14:11:00.853897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.855829"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:11:00.855829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:11:00.857011"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.860532"], ["nonce", #], ["updated_at", "2014-10-17 14:11:00.860532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.864510"], ["nonce", #], ["updated_at", "2014-10-17 14:11:00.864510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.868777"], ["nonce", #], ["updated_at", "2014-10-17 14:11:00.868777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.873778"], ["nonce", #], ["updated_at", "2014-10-17 14:11:00.873778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.877104"], ["nonce", #], ["updated_at", "2014-10-17 14:11:00.877104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.878929"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:11:00.878929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:11:00.880125"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:11:00.895125"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:11:00.895125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:11:00.898471"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:11:00.898471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:11:00.900922"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:11:00.900922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:11:00.905379"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:11:00.905379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 34]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:11:00.909304"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:11:00.909304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 35]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.922529"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:11:00.922529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.971989"], ["nonce", "100"], ["updated_at", "2014-10-17 14:11:00.971989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.973001"], ["nonce", "100"], ["updated_at", "2014-10-17 14:11:00.973001"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:11:00.974689"], ["nonce", "100"], ["updated_at", "2014-10-17 14:11:00.974689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:12:19.411621"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:12:19.411621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 37]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:12:19.418856"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:12:19.418856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 38]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:12:19.422454"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:12:19.422454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:12:19.425763"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:12:19.425763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:12:19.429108"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:12:19.429108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.433699"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:12:19.433699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.458253"], ["nonce", #], ["updated_at", "2014-10-17 14:12:19.458253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.462828"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:12:19.462828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:12:19.464730"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.476045"], ["nonce", #], ["updated_at", "2014-10-17 14:12:19.476045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.480436"], ["nonce", #], ["updated_at", "2014-10-17 14:12:19.480436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.482389"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:12:19.482389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:12:19.483659"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.487901"], ["nonce", #], ["updated_at", "2014-10-17 14:12:19.487901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.499696"], ["nonce", #], ["updated_at", "2014-10-17 14:12:19.499696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.503835"], ["nonce", #], ["updated_at", "2014-10-17 14:12:19.503835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.508337"], ["nonce", #], ["updated_at", "2014-10-17 14:12:19.508337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.510315"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:12:19.510315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 45) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 45 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:12:19.511506"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.515993"], ["nonce", #], ["updated_at", "2014-10-17 14:12:19.515993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.560217"], ["nonce", "100"], ["updated_at", "2014-10-17 14:12:19.560217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.561735"], ["nonce", "100"], ["updated_at", "2014-10-17 14:12:19.561735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:12:19.562357"], ["nonce", "100"], ["updated_at", "2014-10-17 14:12:19.562357"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.581692"], ["nonce", #], ["updated_at", "2014-10-17 14:16:37.581692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.587498"], ["nonce", #], ["updated_at", "2014-10-17 14:16:37.587498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.595146"], ["nonce", #], ["updated_at", "2014-10-17 14:16:37.595146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.608496"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:16:37.608496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 46) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 46 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:16:37.610822"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.615207"], ["nonce", #], ["updated_at", "2014-10-17 14:16:37.615207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.617203"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:16:37.617203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 47) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 47 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:16:37.618757"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.631097"], ["nonce", #], ["updated_at", "2014-10-17 14:16:37.631097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.633461"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:16:37.633461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 48) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 48 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:16:37.634764"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.639652"], ["nonce", #], ["updated_at", "2014-10-17 14:16:37.639652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.643466"], ["nonce", #], ["updated_at", "2014-10-17 14:16:37.643466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.646950"], ["nonce", #], ["updated_at", "2014-10-17 14:16:37.646950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.654737"], ["nonce", "100"], ["updated_at", "2014-10-17 14:16:37.654737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.656580"], ["nonce", "100"], ["updated_at", "2014-10-17 14:16:37.656580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.657299"], ["nonce", "100"], ["updated_at", "2014-10-17 14:16:37.657299"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:16:37.679574"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:16:37.679574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:16:37.682362"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:16:37.682362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:16:37.684573"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:16:37.684573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:16:37.698234"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:16:37.698234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:16:37.703858"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:16:37.703858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 53]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:16:37.706831"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:16:37.706831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 54]]  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:24.799977"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:17:24.799977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 55]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:24.805335"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:17:24.805335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 56]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:24.808462"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:17:24.808462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:24.811841"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:17:24.811841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:24.814157"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:17:24.814157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.821476"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:17:24.821476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.843012"], ["nonce", #], ["updated_at", "2014-10-17 14:17:24.843012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.845310"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:17:24.845310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 61) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 61 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:17:24.847053"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.851938"], ["nonce", #], ["updated_at", "2014-10-17 14:17:24.851938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.853939"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:17:24.853939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 62) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 62 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:17:24.855220"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.862638"], ["nonce", #], ["updated_at", "2014-10-17 14:17:24.862638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.865862"], ["nonce", #], ["updated_at", "2014-10-17 14:17:24.865862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.870653"], ["nonce", #], ["updated_at", "2014-10-17 14:17:24.870653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.874238"], ["nonce", #], ["updated_at", "2014-10-17 14:17:24.874238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.878294"], ["nonce", #], ["updated_at", "2014-10-17 14:17:24.878294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.881688"], ["nonce", #], ["updated_at", "2014-10-17 14:17:24.881688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.883623"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:17:24.883623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 63) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 63 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:17:24.884825"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.899999"], ["nonce", "100"], ["updated_at", "2014-10-17 14:17:24.899999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.900871"], ["nonce", "100"], ["updated_at", "2014-10-17 14:17:24.900871"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:24.902394"], ["nonce", "100"], ["updated_at", "2014-10-17 14:17:24.902394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:33.503718"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:17:33.503718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:33.508833"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:17:33.508833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:33.511219"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:17:33.511219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.525659"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:17:33.525659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:33.532356"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:17:33.532356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 68]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:33.536032"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:17:33.536032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 69]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.544490"], ["nonce", "100"], ["updated_at", "2014-10-17 14:17:33.544490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.546842"], ["nonce", "100"], ["updated_at", "2014-10-17 14:17:33.546842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.547724"], ["nonce", "100"], ["updated_at", "2014-10-17 14:17:33.547724"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.556981"], ["nonce", #], ["updated_at", "2014-10-17 14:17:33.556981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.560776"], ["nonce", #], ["updated_at", "2014-10-17 14:17:33.560776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.565800"], ["nonce", #], ["updated_at", "2014-10-17 14:17:33.565800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.568036"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:17:33.568036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 70) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 70 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:17:33.570395"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.575449"], ["nonce", #], ["updated_at", "2014-10-17 14:17:33.575449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.577628"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:17:33.577628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 71) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 71 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:17:33.578817"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.592811"], ["nonce", #], ["updated_at", "2014-10-17 14:17:33.592811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.596047"], ["nonce", #], ["updated_at", "2014-10-17 14:17:33.596047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.597826"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:17:33.597826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 72) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 72 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:17:33.598976"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.603036"], ["nonce", #], ["updated_at", "2014-10-17 14:17:33.603036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:33.606712"], ["nonce", #], ["updated_at", "2014-10-17 14:17:33.606712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:40.885476"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:17:40.885476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:40.890952"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:17:40.890952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:40.894609"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:17:40.894609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:40.897707"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:17:40.897707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 76]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:17:40.901935"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:17:40.901935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 77]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:40.915164"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:17:40.915164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:40.944060"], ["nonce", "100"], ["updated_at", "2014-10-17 14:17:40.944060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:40.946588"], ["nonce", "100"], ["updated_at", "2014-10-17 14:17:40.946588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:40.947480"], ["nonce", "100"], ["updated_at", "2014-10-17 14:17:40.947480"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:40.978201"], ["nonce", #], ["updated_at", "2014-10-17 14:17:40.978201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:40.983552"], ["nonce", #], ["updated_at", "2014-10-17 14:17:40.983552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:40.986034"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:17:40.986034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 79) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 79 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:17:40.987986"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:40.994486"], ["nonce", #], ["updated_at", "2014-10-17 14:17:40.994486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:40.996381"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:17:40.996381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 80) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 80 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:17:40.997642"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:41.001188"], ["nonce", #], ["updated_at", "2014-10-17 14:17:41.001188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:41.012552"], ["nonce", #], ["updated_at", "2014-10-17 14:17:41.012552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:41.015938"], ["nonce", #], ["updated_at", "2014-10-17 14:17:41.015938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:41.019571"], ["nonce", #], ["updated_at", "2014-10-17 14:17:41.019571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:41.021489"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:17:41.021489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 81) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 81 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:17:41.022766"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:17:41.027430"], ["nonce", #], ["updated_at", "2014-10-17 14:17:41.027430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.524368"], ["nonce", #], ["updated_at", "2014-10-17 14:19:58.524368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.540346"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:19:58.540346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 82) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 82 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:19:58.542603"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.554456"], ["nonce", #], ["updated_at", "2014-10-17 14:19:58.554456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.558762"], ["nonce", #], ["updated_at", "2014-10-17 14:19:58.558762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.562141"], ["nonce", #], ["updated_at", "2014-10-17 14:19:58.562141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.564185"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:19:58.564185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 83) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 83 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:19:58.565725"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.580371"], ["nonce", #], ["updated_at", "2014-10-17 14:19:58.580371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.584384"], ["nonce", #], ["updated_at", "2014-10-17 14:19:58.584384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.586803"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:19:58.586803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 84) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 84 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:19:58.588239"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.592275"], ["nonce", #], ["updated_at", "2014-10-17 14:19:58.592275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.596503"], ["nonce", #], ["updated_at", "2014-10-17 14:19:58.596503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.609265"], ["nonce", "100"], ["updated_at", "2014-10-17 14:19:58.609265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.611062"], ["nonce", "100"], ["updated_at", "2014-10-17 14:19:58.611062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.611806"], ["nonce", "100"], ["updated_at", "2014-10-17 14:19:58.611806"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:19:58.642625"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:19:58.642625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:19:58.647148"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:19:58.647148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:19:58.649500"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:19:58.649500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:19:58.661829"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:19:58.661829"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:19:58.668783"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:19:58.668783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 89]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:19:58.671915"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:19:58.671915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 90]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.012387"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:00.012387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.016312"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:00.016312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.017210"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:00.017210"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.031989"], ["nonce", #], ["updated_at", "2014-10-17 14:21:00.031989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.042515"], ["nonce", #], ["updated_at", "2014-10-17 14:21:00.042515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.055467"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:00.055467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 91) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 91 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:00.058245"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.062987"], ["nonce", #], ["updated_at", "2014-10-17 14:21:00.062987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.065084"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:00.065084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 92) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 92 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:00.066620"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.070240"], ["nonce", #], ["updated_at", "2014-10-17 14:21:00.070240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.084683"], ["nonce", #], ["updated_at", "2014-10-17 14:21:00.084683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.086968"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:00.086968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 93) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 93 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:00.088359"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.092678"], ["nonce", #], ["updated_at", "2014-10-17 14:21:00.092678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.099488"], ["nonce", #], ["updated_at", "2014-10-17 14:21:00.099488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.103843"], ["nonce", #], ["updated_at", "2014-10-17 14:21:00.103843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:00.156701"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:21:00.156701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:00.163800"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:00.163800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:00.166303"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:00.166303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:00.168707"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:00.168707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:00.171580"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:21:00.171580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 98]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:00.174820"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:21:00.174820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 99]]  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.628921"], ["nonce", #], ["updated_at", "2014-10-17 14:21:08.628921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 12ms (Views: 4.0ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.644033"], ["nonce", #], ["updated_at", "2014-10-17 14:21:08.644033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.648355"], ["nonce", #], ["updated_at", "2014-10-17 14:21:08.648355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.663037"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:08.663037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 100) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 100 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:08.665780"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.670483"], ["nonce", #], ["updated_at", "2014-10-17 14:21:08.670483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.672740"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:08.672740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 101) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 101 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:08.673994"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.677609"], ["nonce", #], ["updated_at", "2014-10-17 14:21:08.677609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.679670"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:08.679670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 102) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 102 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:08.680928"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.685036"], ["nonce", #], ["updated_at", "2014-10-17 14:21:08.685036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.691233"], ["nonce", #], ["updated_at", "2014-10-17 14:21:08.691233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.695808"], ["nonce", #], ["updated_at", "2014-10-17 14:21:08.695808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.723949"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:08.723949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.725378"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:08.725378"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.727417"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:08.727417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:08.746569"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:21:08.746569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:08.755452"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:21:08.755452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 104]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:08.758233"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:21:08.758233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 105]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:08.764737"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:08.764737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:08.767099"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:08.767099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:08.769763"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:08.769763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.793074"], ["nonce", #], ["updated_at", "2014-10-17 14:21:30.793074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.805875"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:30.805875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 109) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 109 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:30.808155"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.812499"], ["nonce", #], ["updated_at", "2014-10-17 14:21:30.812499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.816558"], ["nonce", #], ["updated_at", "2014-10-17 14:21:30.816558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.818501"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:30.818501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 110) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 110 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:30.819770"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.823677"], ["nonce", #], ["updated_at", "2014-10-17 14:21:30.823677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.828327"], ["nonce", #], ["updated_at", "2014-10-17 14:21:30.828327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.835116"], ["nonce", #], ["updated_at", "2014-10-17 14:21:30.835116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.839050"], ["nonce", #], ["updated_at", "2014-10-17 14:21:30.839050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.841125"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:30.841125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 111) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 111 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:30.842394"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.846624"], ["nonce", #], ["updated_at", "2014-10-17 14:21:30.846624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:30.863895"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:21:30.863895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 112]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:30.867969"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:21:30.867969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 113]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.873164"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:21:30.873164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:30.888486"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:30.888486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:30.891821"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:30.891821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:30.895202"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:30.895202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.913877"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:30.913877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.914778"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:30.914778"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:30.916427"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:30.916427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.883489"], ["nonce", #], ["updated_at", "2014-10-17 14:21:38.883489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.896656"], ["nonce", #], ["updated_at", "2014-10-17 14:21:38.896656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.909321"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:38.909321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 118) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 118 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:38.911799"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.916686"], ["nonce", #], ["updated_at", "2014-10-17 14:21:38.916686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.920688"], ["nonce", #], ["updated_at", "2014-10-17 14:21:38.920688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.922727"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:38.922727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 119) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 119 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:38.924161"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.929294"], ["nonce", #], ["updated_at", "2014-10-17 14:21:38.929294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.934234"], ["nonce", #], ["updated_at", "2014-10-17 14:21:38.934234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.937714"], ["nonce", #], ["updated_at", "2014-10-17 14:21:38.937714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.940115"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:21:38.940115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 120) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 120 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:21:38.941554"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.945720"], ["nonce", #], ["updated_at", "2014-10-17 14:21:38.945720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:38.970227"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:21:38.970227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 121]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:38.973288"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:21:38.973288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 122]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:38.977932"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:21:38.977932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:38.990829"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:38.990829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:38.994362"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:38.994362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:21:38.997579"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:21:38.997579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:39.004046"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:39.004046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:39.005070"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:39.005070"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:21:39.006827"], ["nonce", "100"], ["updated_at", "2014-10-17 14:21:39.006827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.767626"], ["nonce", "100"], ["updated_at", "2014-10-17 14:23:20.767626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.770276"], ["nonce", "100"], ["updated_at", "2014-10-17 14:23:20.770276"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.772196"], ["nonce", "100"], ["updated_at", "2014-10-17 14:23:20.772196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:23:20.801485"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:23:20.801485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 127]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:23:20.805041"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:23:20.805041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 128]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.810162"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:23:20.810162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:23:20.826728"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:23:20.826728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:23:20.829991"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:23:20.829991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:23:20.833276"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:23:20.833276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.842585"], ["nonce", #], ["updated_at", "2014-10-17 14:23:20.842585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.844629"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:23:20.844629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 133) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 133 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:23:20.846286"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.850658"], ["nonce", #], ["updated_at", "2014-10-17 14:23:20.850658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.854070"], ["nonce", #], ["updated_at", "2014-10-17 14:23:20.854070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.857673"], ["nonce", #], ["updated_at", "2014-10-17 14:23:20.857673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.860620"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:23:20.860620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 134) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 134 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:23:20.862707"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.866940"], ["nonce", #], ["updated_at", "2014-10-17 14:23:20.866940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.871269"], ["nonce", #], ["updated_at", "2014-10-17 14:23:20.871269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.874990"], ["nonce", #], ["updated_at", "2014-10-17 14:23:20.874990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.876903"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:23:20.876903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 135) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 135 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:23:20.878166"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:23:20.882196"], ["nonce", #], ["updated_at", "2014-10-17 14:23:20.882196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.619513"], ["nonce", "100"], ["updated_at", "2014-10-17 14:24:19.619513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.622126"], ["nonce", "100"], ["updated_at", "2014-10-17 14:24:19.622126"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.624564"], ["nonce", "100"], ["updated_at", "2014-10-17 14:24:19.624564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.677207"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:24:19.677207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:19.686904"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:24:19.686904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 137]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:19.690276"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:24:19.690276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 138]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:19.692789"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:24:19.692789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:19.696019"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:24:19.696019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:19.699052"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:24:19.699052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.703365"], ["nonce", #], ["updated_at", "2014-10-17 14:24:19.703365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.711188"], ["nonce", #], ["updated_at", "2014-10-17 14:24:19.711188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.714751"], ["nonce", #], ["updated_at", "2014-10-17 14:24:19.714751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.716713"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:24:19.716713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 142) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 142 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:24:19.718417"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.722305"], ["nonce", #], ["updated_at", "2014-10-17 14:24:19.722305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.724671"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:24:19.724671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 143) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 143 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:24:19.726034"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.729937"], ["nonce", #], ["updated_at", "2014-10-17 14:24:19.729937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.734125"], ["nonce", #], ["updated_at", "2014-10-17 14:24:19.734125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.737260"], ["nonce", #], ["updated_at", "2014-10-17 14:24:19.737260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.739241"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:24:19.739241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 144) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 144 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:24:19.740686"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:19.744740"], ["nonce", #], ["updated_at", "2014-10-17 14:24:19.744740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.391126"], ["nonce", "100"], ["updated_at", "2014-10-17 14:24:44.391126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.395018"], ["nonce", "100"], ["updated_at", "2014-10-17 14:24:44.395018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.396074"], ["nonce", "100"], ["updated_at", "2014-10-17 14:24:44.396074"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (1.7ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:44.414177"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:24:44.414177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 145]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:44.419860"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:24:44.419860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 146]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.427106"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:24:44.427106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:44.445390"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:24:44.445390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:44.449565"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:24:44.449565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:24:44.451984"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:24:44.451984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.469823"], ["nonce", #], ["updated_at", "2014-10-17 14:24:44.469823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.472304"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:24:44.472304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 151) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 151 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:24:44.474300"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.483098"], ["nonce", #], ["updated_at", "2014-10-17 14:24:44.483098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.486430"], ["nonce", #], ["updated_at", "2014-10-17 14:24:44.486430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.490118"], ["nonce", #], ["updated_at", "2014-10-17 14:24:44.490118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.491994"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:24:44.491994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 152) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 152 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:24:44.493283"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.506555"], ["nonce", #], ["updated_at", "2014-10-17 14:24:44.506555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.509905"], ["nonce", #], ["updated_at", "2014-10-17 14:24:44.509905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.511762"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:24:44.511762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 153) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 153 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:24:44.513036"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.518673"], ["nonce", #], ["updated_at", "2014-10-17 14:24:44.518673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:24:44.523986"], ["nonce", #], ["updated_at", "2014-10-17 14:24:44.523986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.620852"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:25:29.620852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:25:29.629142"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:25:29.629142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:25:29.631742"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:25:29.631742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:25:29.634069"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:25:29.634069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:25:29.636518"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:25:29.636518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 158]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:25:29.639940"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:25:29.639940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 159]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.649688"], ["nonce", "100"], ["updated_at", "2014-10-17 14:25:29.649688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.652050"], ["nonce", "100"], ["updated_at", "2014-10-17 14:25:29.652050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.652789"], ["nonce", "100"], ["updated_at", "2014-10-17 14:25:29.652789"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.662530"], ["nonce", #], ["updated_at", "2014-10-17 14:25:29.662530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.668427"], ["nonce", #], ["updated_at", "2014-10-17 14:25:29.668427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.670511"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:25:29.670511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 160) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 160 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:25:29.672310"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.676736"], ["nonce", #], ["updated_at", "2014-10-17 14:25:29.676736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.680112"], ["nonce", #], ["updated_at", "2014-10-17 14:25:29.680112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.681865"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:25:29.681865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 161) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 161 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:25:29.683277"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.697425"], ["nonce", #], ["updated_at", "2014-10-17 14:25:29.697425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.699329"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:25:29.699329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 162) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 162 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:25:29.700515"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.704825"], ["nonce", #], ["updated_at", "2014-10-17 14:25:29.704825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.709112"], ["nonce", #], ["updated_at", "2014-10-17 14:25:29.709112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:25:29.712904"], ["nonce", #], ["updated_at", "2014-10-17 14:25:29.712904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.445902"], ["nonce", #], ["updated_at", "2014-10-17 14:26:07.445902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.463399"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:26:07.463399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 163) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 163 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:26:07.465782"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 4.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.471611"], ["nonce", #], ["updated_at", "2014-10-17 14:26:07.471611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.475244"], ["nonce", #], ["updated_at", "2014-10-17 14:26:07.475244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.484814"], ["nonce", #], ["updated_at", "2014-10-17 14:26:07.484814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.487095"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:26:07.487095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 164) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 164 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:26:07.488913"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.494315"], ["nonce", #], ["updated_at", "2014-10-17 14:26:07.494315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.498501"], ["nonce", #], ["updated_at", "2014-10-17 14:26:07.498501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.500665"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:26:07.500665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 165) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 165 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:26:07.502331"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.506615"], ["nonce", #], ["updated_at", "2014-10-17 14:26:07.506615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.510816"], ["nonce", #], ["updated_at", "2014-10-17 14:26:07.510816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.566170"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:26:07.566170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:07.577086"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:26:07.577086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 167]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:07.580166"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:26:07.580166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 168]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:07.582780"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:26:07.582780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:07.586783"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:26:07.586783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:07.589390"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:26:07.589390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.595036"], ["nonce", "100"], ["updated_at", "2014-10-17 14:26:07.595036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.595958"], ["nonce", "100"], ["updated_at", "2014-10-17 14:26:07.595958"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:07.597391"], ["nonce", "100"], ["updated_at", "2014-10-17 14:26:07.597391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.239783"], ["nonce", "100"], ["updated_at", "2014-10-17 14:26:43.239783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.242743"], ["nonce", "100"], ["updated_at", "2014-10-17 14:26:43.242743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.243775"], ["nonce", "100"], ["updated_at", "2014-10-17 14:26:43.243775"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.250279"], ["nonce", #], ["updated_at", "2014-10-17 14:26:43.250279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.260995"], ["nonce", #], ["updated_at", "2014-10-17 14:26:43.260995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.264803"], ["nonce", #], ["updated_at", "2014-10-17 14:26:43.264803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.269242"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:26:43.269242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:26:43.271668"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.276944"], ["nonce", #], ["updated_at", "2014-10-17 14:26:43.276944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.278953"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:26:43.278953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:26:43.280257"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.292381"], ["nonce", #], ["updated_at", "2014-10-17 14:26:43.292381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.298342"], ["nonce", #], ["updated_at", "2014-10-17 14:26:43.298342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.300561"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:26:43.300561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:26:43.301963"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.306114"], ["nonce", #], ["updated_at", "2014-10-17 14:26:43.306114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.310445"], ["nonce", #], ["updated_at", "2014-10-17 14:26:43.310445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:43.323948"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:26:43.323948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:43.326957"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:26:43.326957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:26:43.334884"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:26:43.334884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:43.346836"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:26:43.346836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:43.350903"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:26:43.350903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:26:43.353211"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:26:43.353211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.054243"], ["nonce", #], ["updated_at", "2014-10-17 14:29:47.054243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.057655"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:29:47.057655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:29:47.060030"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.064807"], ["nonce", #], ["updated_at", "2014-10-17 14:29:47.064807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.066843"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:29:47.066843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:29:47.068161"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.071863"], ["nonce", #], ["updated_at", "2014-10-17 14:29:47.071863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.075152"], ["nonce", #], ["updated_at", "2014-10-17 14:29:47.075152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.088496"], ["nonce", #], ["updated_at", "2014-10-17 14:29:47.088496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.092870"], ["nonce", #], ["updated_at", "2014-10-17 14:29:47.092870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.096192"], ["nonce", #], ["updated_at", "2014-10-17 14:29:47.096192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.098302"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:29:47.098302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:29:47.099980"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.104466"], ["nonce", #], ["updated_at", "2014-10-17 14:29:47.104466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.110685"], ["nonce", "100"], ["updated_at", "2014-10-17 14:29:47.110685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.112320"], ["nonce", "100"], ["updated_at", "2014-10-17 14:29:47.112320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.113076"], ["nonce", "100"], ["updated_at", "2014-10-17 14:29:47.113076"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:29:47.133082"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:29:47.133082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:29:47.136789"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:29:47.136789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:29:47.140473"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:29:47.140473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:29:47.153903"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:29:47.153903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:29:47.159820"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:29:47.159820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 17]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:29:47.162564"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:29:47.162564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 18]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:26.034833"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:30:26.034833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 19]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:26.039386"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:30:26.039386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 20]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:26.042270"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:30:26.042270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:26.045380"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:30:26.045380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:26.047598"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:30:26.047598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.053628"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:30:26.053628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.086220"], ["nonce", #], ["updated_at", "2014-10-17 14:30:26.086220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.088646"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:30:26.088646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:30:26.090732"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.095018"], ["nonce", #], ["updated_at", "2014-10-17 14:30:26.095018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.096935"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:30:26.096935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:30:26.098102"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.105227"], ["nonce", #], ["updated_at", "2014-10-17 14:30:26.105227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.109018"], ["nonce", #], ["updated_at", "2014-10-17 14:30:26.109018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.113139"], ["nonce", #], ["updated_at", "2014-10-17 14:30:26.113139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.117677"], ["nonce", #], ["updated_at", "2014-10-17 14:30:26.117677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.121422"], ["nonce", #], ["updated_at", "2014-10-17 14:30:26.121422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.124736"], ["nonce", #], ["updated_at", "2014-10-17 14:30:26.124736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.126607"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:30:26.126607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:30:26.127849"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.156138"], ["nonce", "100"], ["updated_at", "2014-10-17 14:30:26.156138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.157069"], ["nonce", "100"], ["updated_at", "2014-10-17 14:30:26.157069"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:26.158550"], ["nonce", "100"], ["updated_at", "2014-10-17 14:30:26.158550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:38.984592"], ["nonce", "100"], ["updated_at", "2014-10-17 14:30:38.984592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:38.987480"], ["nonce", "100"], ["updated_at", "2014-10-17 14:30:38.987480"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:38.989554"], ["nonce", "100"], ["updated_at", "2014-10-17 14:30:38.989554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:39.011396"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:30:39.011396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 28]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:39.015481"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:30:39.015481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 29]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.020448"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:30:39.020448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:39.033548"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:30:39.033548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:39.037375"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:30:39.037375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:30:39.039839"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:30:39.039839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.045343"], ["nonce", #], ["updated_at", "2014-10-17 14:30:39.045343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.049102"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:30:39.049102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:30:39.050972"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.055986"], ["nonce", #], ["updated_at", "2014-10-17 14:30:39.055986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.065957"], ["nonce", #], ["updated_at", "2014-10-17 14:30:39.065957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.069764"], ["nonce", #], ["updated_at", "2014-10-17 14:30:39.069764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.072118"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:30:39.072118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:30:39.074380"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.079124"], ["nonce", #], ["updated_at", "2014-10-17 14:30:39.079124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.082513"], ["nonce", #], ["updated_at", "2014-10-17 14:30:39.082513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.084307"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:30:39.084307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 36) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 36 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:30:39.085444"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.089201"], ["nonce", #], ["updated_at", "2014-10-17 14:30:39.089201"]]  (1.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:30:39.096074"], ["nonce", #], ["updated_at", "2014-10-17 14:30:39.096074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.076330"], ["nonce", #], ["updated_at", "2014-10-17 14:31:18.076330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 12ms (Views: 4.2ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.091982"], ["nonce", #], ["updated_at", "2014-10-17 14:31:18.091982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.095674"], ["nonce", #], ["updated_at", "2014-10-17 14:31:18.095674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.108189"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:31:18.108189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:31:18.110277"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.114978"], ["nonce", #], ["updated_at", "2014-10-17 14:31:18.114978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.116997"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:31:18.116997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:31:18.118238"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.121954"], ["nonce", #], ["updated_at", "2014-10-17 14:31:18.121954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.123886"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:31:18.123886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:31:18.125234"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.129523"], ["nonce", #], ["updated_at", "2014-10-17 14:31:18.129523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.134303"], ["nonce", #], ["updated_at", "2014-10-17 14:31:18.134303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.138632"], ["nonce", #], ["updated_at", "2014-10-17 14:31:18.138632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.165671"], ["nonce", "100"], ["updated_at", "2014-10-17 14:31:18.165671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.166572"], ["nonce", "100"], ["updated_at", "2014-10-17 14:31:18.166572"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.168305"], ["nonce", "100"], ["updated_at", "2014-10-17 14:31:18.168305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:18.184524"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:31:18.184524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 40]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:18.187547"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:31:18.187547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 41]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:18.192996"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:31:18.192996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:18.209840"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:31:18.209840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:18.212209"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:31:18.212209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:18.214749"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:31:18.214749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.407108"], ["nonce", #], ["updated_at", "2014-10-17 14:31:31.407108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.412788"], ["nonce", #], ["updated_at", "2014-10-17 14:31:31.412788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.425091"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:31:31.425091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 46) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 46 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:31:31.427633"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.432381"], ["nonce", #], ["updated_at", "2014-10-17 14:31:31.432381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.436265"], ["nonce", #], ["updated_at", "2014-10-17 14:31:31.436265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.438295"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:31:31.438295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 47) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 47 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:31:31.439589"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.451599"], ["nonce", #], ["updated_at", "2014-10-17 14:31:31.451599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.455404"], ["nonce", #], ["updated_at", "2014-10-17 14:31:31.455404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.459452"], ["nonce", #], ["updated_at", "2014-10-17 14:31:31.459452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.461491"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:31:31.461491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 48) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 48 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:31:31.462719"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.467515"], ["nonce", #], ["updated_at", "2014-10-17 14:31:31.467515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:31.472581"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:31:31.472581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 49]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:31.475676"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:31:31.475676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 50]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:31.478160"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:31:31.478160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:31.481363"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:31:31.481363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:31:31.484435"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:31:31.484435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.489738"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:31:31.489738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.520378"], ["nonce", "100"], ["updated_at", "2014-10-17 14:31:31.520378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.522058"], ["nonce", "100"], ["updated_at", "2014-10-17 14:31:31.522058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:31:31.522744"], ["nonce", "100"], ["updated_at", "2014-10-17 14:31:31.522744"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.279666"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:32:25.279666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:32:25.289725"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:32:25.289725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 56]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:32:25.293034"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:32:25.293034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 57]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:32:25.296085"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:32:25.296085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:32:25.300108"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:32:25.300108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:32:25.302416"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:32:25.302416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.342488"], ["nonce", "100"], ["updated_at", "2014-10-17 14:32:25.342488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.343690"], ["nonce", "100"], ["updated_at", "2014-10-17 14:32:25.343690"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.345721"], ["nonce", "100"], ["updated_at", "2014-10-17 14:32:25.345721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.351369"], ["nonce", #], ["updated_at", "2014-10-17 14:32:25.351369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.354857"], ["nonce", #], ["updated_at", "2014-10-17 14:32:25.354857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.362117"], ["nonce", #], ["updated_at", "2014-10-17 14:32:25.362117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.366285"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:32:25.366285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 61) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 61 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:32:25.368246"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.372525"], ["nonce", #], ["updated_at", "2014-10-17 14:32:25.372525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.374586"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:32:25.374586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 62) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 62 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:32:25.375911"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.380038"], ["nonce", #], ["updated_at", "2014-10-17 14:32:25.380038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.383266"], ["nonce", #], ["updated_at", "2014-10-17 14:32:25.383266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.385063"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:32:25.385063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 63) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 63 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:32:25.386303"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.390679"], ["nonce", #], ["updated_at", "2014-10-17 14:32:25.390679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:32:25.394672"], ["nonce", #], ["updated_at", "2014-10-17 14:32:25.394672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.850086"], ["nonce", #], ["updated_at", "2014-10-17 14:34:28.850086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.866217"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:34:28.866217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 64) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 64 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:34:28.868522"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 4.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.873601"], ["nonce", #], ["updated_at", "2014-10-17 14:34:28.873601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.877678"], ["nonce", #], ["updated_at", "2014-10-17 14:34:28.877678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.879888"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:34:28.879888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 65) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 65 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:34:28.881489"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.885774"], ["nonce", #], ["updated_at", "2014-10-17 14:34:28.885774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.890962"], ["nonce", #], ["updated_at", "2014-10-17 14:34:28.890962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.895742"], ["nonce", #], ["updated_at", "2014-10-17 14:34:28.895742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.899621"], ["nonce", #], ["updated_at", "2014-10-17 14:34:28.899621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.903039"], ["nonce", #], ["updated_at", "2014-10-17 14:34:28.903039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.905152"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:34:28.905152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 66) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 66 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:34:28.906640"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.923533"], ["nonce", "100"], ["updated_at", "2014-10-17 14:34:28.923533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.924594"], ["nonce", "100"], ["updated_at", "2014-10-17 14:34:28.924594"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.926139"], ["nonce", "100"], ["updated_at", "2014-10-17 14:34:28.926139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:34:28.937115"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:34:28.937115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 67]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:34:28.940527"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:34:28.940527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 68]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:34:28.943340"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:34:28.943340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:34:28.946457"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:34:28.946457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:34:28.948983"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:34:28.948983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:34:28.956407"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:34:28.956407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (2.7ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:44:43.579399"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:44:43.579399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:44:43.583817"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:44:43.583817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:44:43.587201"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:44:43.587201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:44:43.591127"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:44:43.591127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 76]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:44:43.594848"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:44:43.594848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 77]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.605234"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:44:43.605234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.631402"], ["nonce", #], ["updated_at", "2014-10-17 14:44:43.631402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.633903"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:44:43.633903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 79) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 79 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:44:43.635727"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.642217"], ["nonce", #], ["updated_at", "2014-10-17 14:44:43.642217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.644236"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:44:43.644236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 80) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 80 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:44:43.645514"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.649646"], ["nonce", #], ["updated_at", "2014-10-17 14:44:43.649646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.657959"], ["nonce", #], ["updated_at", "2014-10-17 14:44:43.657959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.663245"], ["nonce", #], ["updated_at", "2014-10-17 14:44:43.663245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.667592"], ["nonce", #], ["updated_at", "2014-10-17 14:44:43.667592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.671314"], ["nonce", #], ["updated_at", "2014-10-17 14:44:43.671314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.674536"], ["nonce", #], ["updated_at", "2014-10-17 14:44:43.674536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.676459"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:44:43.676459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 81) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 81 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:44:43.677767"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.695170"], ["nonce", "100"], ["updated_at", "2014-10-17 14:44:43.695170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.696166"], ["nonce", "100"], ["updated_at", "2014-10-17 14:44:43.696166"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:44:43.697933"], ["nonce", "100"], ["updated_at", "2014-10-17 14:44:43.697933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.313646"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:45:01.313646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:45:01.320553"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:45:01.320553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:45:01.326879"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:45:01.326879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:45:01.329447"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:45:01.329447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:45:01.331654"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:45:01.331654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 86]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:45:01.334438"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:45:01.334438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 87]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.370501"], ["nonce", "100"], ["updated_at", "2014-10-17 14:45:01.370501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.372649"], ["nonce", "100"], ["updated_at", "2014-10-17 14:45:01.372649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.373381"], ["nonce", "100"], ["updated_at", "2014-10-17 14:45:01.373381"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.392941"], ["nonce", #], ["updated_at", "2014-10-17 14:45:01.392941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.396627"], ["nonce", #], ["updated_at", "2014-10-17 14:45:01.396627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.398678"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:45:01.398678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 88) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 88 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:45:01.401415"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.406401"], ["nonce", #], ["updated_at", "2014-10-17 14:45:01.406401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.408481"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:45:01.408481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 89) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 89 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:45:01.409958"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.413718"], ["nonce", #], ["updated_at", "2014-10-17 14:45:01.413718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.431102"], ["nonce", #], ["updated_at", "2014-10-17 14:45:01.431102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.434246"], ["nonce", #], ["updated_at", "2014-10-17 14:45:01.434246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.436178"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:45:01.436178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 90) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 90 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:45:01.437556"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.442123"], ["nonce", #], ["updated_at", "2014-10-17 14:45:01.442123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:45:01.446072"], ["nonce", #], ["updated_at", "2014-10-17 14:45:01.446072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:01.989139"], ["nonce", "100"], ["updated_at", "2014-10-17 14:49:01.989139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:01.992048"], ["nonce", "100"], ["updated_at", "2014-10-17 14:49:01.992048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:01.992921"], ["nonce", "100"], ["updated_at", "2014-10-17 14:49:01.992921"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.042442"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:49:02.042442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:49:02.050776"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:49:02.050776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:49:02.053669"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:49:02.053669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:49:02.056063"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:49:02.056063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:49:02.058440"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:49:02.058440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 95]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:49:02.061470"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:49:02.061470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 96]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.070995"], ["nonce", #], ["updated_at", "2014-10-17 14:49:02.070995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.076502"], ["nonce", #], ["updated_at", "2014-10-17 14:49:02.076502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.079805"], ["nonce", #], ["updated_at", "2014-10-17 14:49:02.079805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.081870"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:49:02.081870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 97) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 97 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:49:02.084143"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.088569"], ["nonce", #], ["updated_at", "2014-10-17 14:49:02.088569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.090587"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:49:02.090587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 98) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 98 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:49:02.091829"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.106026"], ["nonce", #], ["updated_at", "2014-10-17 14:49:02.106026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.108283"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:49:02.108283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 99) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 99 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:49:02.109685"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.113529"], ["nonce", #], ["updated_at", "2014-10-17 14:49:02.113529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.117815"], ["nonce", #], ["updated_at", "2014-10-17 14:49:02.117815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:49:02.121452"], ["nonce", #], ["updated_at", "2014-10-17 14:49:02.121452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.152885"], ["nonce", #], ["updated_at", "2014-10-17 14:53:45.152885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.169739"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:53:45.169739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 100) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 100 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:53:45.172110"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 5.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.177502"], ["nonce", #], ["updated_at", "2014-10-17 14:53:45.177502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.181088"], ["nonce", #], ["updated_at", "2014-10-17 14:53:45.181088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.183091"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:53:45.183091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 101) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 101 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:53:45.184519"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.191795"], ["nonce", #], ["updated_at", "2014-10-17 14:53:45.191795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.197544"], ["nonce", #], ["updated_at", "2014-10-17 14:53:45.197544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.202006"], ["nonce", #], ["updated_at", "2014-10-17 14:53:45.202006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.205606"], ["nonce", #], ["updated_at", "2014-10-17 14:53:45.205606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.209007"], ["nonce", #], ["updated_at", "2014-10-17 14:53:45.209007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.210953"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:53:45.210953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 102) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 102 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:53:45.212439"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.229304"], ["nonce", "100"], ["updated_at", "2014-10-17 14:53:45.229304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.230195"], ["nonce", "100"], ["updated_at", "2014-10-17 14:53:45.230195"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.231819"], ["nonce", "100"], ["updated_at", "2014-10-17 14:53:45.231819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:53:45.245298"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:53:45.245298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:53:45.248723"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:53:45.248723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:53:45.251530"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:53:45.251530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:53:45.254823"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:53:45.254823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 106]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:53:45.257553"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:53:45.257553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 107]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:53:45.267788"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:53:45.267788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.411386"], ["nonce", #], ["updated_at", "2014-10-17 14:54:22.411386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.414215"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:54:22.414215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 109) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 109 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:54:22.416314"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.422612"], ["nonce", #], ["updated_at", "2014-10-17 14:54:22.422612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.426409"], ["nonce", #], ["updated_at", "2014-10-17 14:54:22.426409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.428401"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:54:22.428401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 110) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 110 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:54:22.429696"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.433259"], ["nonce", #], ["updated_at", "2014-10-17 14:54:22.433259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.451741"], ["nonce", #], ["updated_at", "2014-10-17 14:54:22.451741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.455906"], ["nonce", #], ["updated_at", "2014-10-17 14:54:22.455906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.458574"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:54:22.458574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 111) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 111 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:54:22.460134"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.464285"], ["nonce", #], ["updated_at", "2014-10-17 14:54:22.464285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.467958"], ["nonce", #], ["updated_at", "2014-10-17 14:54:22.467958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:22.493623"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:54:22.493623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:22.498286"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:54:22.498286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:22.501251"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:54:22.501251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.514435"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:54:22.514435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:22.520801"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:54:22.520801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 116]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:22.523440"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:54:22.523440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 117]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.529008"], ["nonce", "100"], ["updated_at", "2014-10-17 14:54:22.529008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.530653"], ["nonce", "100"], ["updated_at", "2014-10-17 14:54:22.530653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:22.531296"], ["nonce", "100"], ["updated_at", "2014-10-17 14:54:22.531296"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.007901"], ["nonce", #], ["updated_at", "2014-10-17 14:54:27.007901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.024738"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:54:27.024738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 118) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 118 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:54:27.026988"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 5.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.038752"], ["nonce", #], ["updated_at", "2014-10-17 14:54:27.038752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.042786"], ["nonce", #], ["updated_at", "2014-10-17 14:54:27.042786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.046122"], ["nonce", #], ["updated_at", "2014-10-17 14:54:27.046122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.048359"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:54:27.048359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 119) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 119 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:54:27.049967"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.054750"], ["nonce", #], ["updated_at", "2014-10-17 14:54:27.054750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.059073"], ["nonce", #], ["updated_at", "2014-10-17 14:54:27.059073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.062330"], ["nonce", #], ["updated_at", "2014-10-17 14:54:27.062330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.064259"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:54:27.064259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 120) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 120 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:54:27.065441"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.069215"], ["nonce", #], ["updated_at", "2014-10-17 14:54:27.069215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.087213"], ["nonce", "100"], ["updated_at", "2014-10-17 14:54:27.087213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.088175"], ["nonce", "100"], ["updated_at", "2014-10-17 14:54:27.088175"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.089991"], ["nonce", "100"], ["updated_at", "2014-10-17 14:54:27.089991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:27.109420"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:54:27.109420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:27.118519"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:54:27.118519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 122]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:27.121419"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:54:27.121419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 123]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:27.124284"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:54:27.124284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:27.127628"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:54:27.127628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:27.130672"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:54:27.130672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.387752"], ["nonce", "100"], ["updated_at", "2014-10-17 14:54:30.387752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.390725"], ["nonce", "100"], ["updated_at", "2014-10-17 14:54:30.390725"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.392615"], ["nonce", "100"], ["updated_at", "2014-10-17 14:54:30.392615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:30.411491"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:54:30.411491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 127]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:30.414859"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:54:30.414859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 128]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:30.417495"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:54:30.417495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:30.420946"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:54:30.420946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:54:30.423424"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:54:30.423424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.429008"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:54:30.429008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.446665"], ["nonce", #], ["updated_at", "2014-10-17 14:54:30.446665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.448997"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:54:30.448997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 133) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 133 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:54:30.450942"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.457300"], ["nonce", #], ["updated_at", "2014-10-17 14:54:30.457300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.464782"], ["nonce", #], ["updated_at", "2014-10-17 14:54:30.464782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.466966"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:54:30.466966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 134) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 134 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:54:30.468747"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.474437"], ["nonce", #], ["updated_at", "2014-10-17 14:54:30.474437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.479898"], ["nonce", #], ["updated_at", "2014-10-17 14:54:30.479898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.484288"], ["nonce", #], ["updated_at", "2014-10-17 14:54:30.484288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.488160"], ["nonce", #], ["updated_at", "2014-10-17 14:54:30.488160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.493136"], ["nonce", #], ["updated_at", "2014-10-17 14:54:30.493136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:54:30.495265"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:54:30.495265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 135) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 135 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:54:30.497009"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.102604"], ["nonce", #], ["updated_at", "2014-10-17 14:55:57.102604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.115209"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:55:57.115209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 136) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 136 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:55:57.117380"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.122031"], ["nonce", #], ["updated_at", "2014-10-17 14:55:57.122031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.124031"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:55:57.124031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 137) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 137 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:55:57.125411"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.129411"], ["nonce", #], ["updated_at", "2014-10-17 14:55:57.129411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.132792"], ["nonce", #], ["updated_at", "2014-10-17 14:55:57.132792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.137151"], ["nonce", #], ["updated_at", "2014-10-17 14:55:57.137151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.141634"], ["nonce", #], ["updated_at", "2014-10-17 14:55:57.141634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.146278"], ["nonce", #], ["updated_at", "2014-10-17 14:55:57.146278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.149658"], ["nonce", #], ["updated_at", "2014-10-17 14:55:57.149658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.151620"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:55:57.151620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 138) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 138 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:55:57.152854"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:55:57.167594"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:55:57.167594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 139]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:55:57.170563"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:55:57.170563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 140]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:55:57.173247"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:55:57.173247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:55:57.177690"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:55:57.177690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms)[0m BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:55:57.180565"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:55:57.180565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.186149"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:55:57.186149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.216802"], ["nonce", "100"], ["updated_at", "2014-10-17 14:55:57.216802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.217795"], ["nonce", "100"], ["updated_at", "2014-10-17 14:55:57.217795"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:55:57.219351"], ["nonce", "100"], ["updated_at", "2014-10-17 14:55:57.219351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.782531"], ["nonce", #], ["updated_at", "2014-10-17 14:56:02.782531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.794512"], ["nonce", #], ["updated_at", "2014-10-17 14:56:02.794512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.799423"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:56:02.799423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 145) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 145 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:56:02.801484"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.806433"], ["nonce", #], ["updated_at", "2014-10-17 14:56:02.806433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.808582"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:56:02.808582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 146) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 146 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:56:02.810137"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.814517"], ["nonce", #], ["updated_at", "2014-10-17 14:56:02.814517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.819099"], ["nonce", #], ["updated_at", "2014-10-17 14:56:02.819099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.823510"], ["nonce", #], ["updated_at", "2014-10-17 14:56:02.823510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.827183"], ["nonce", #], ["updated_at", "2014-10-17 14:56:02.827183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.830387"], ["nonce", #], ["updated_at", "2014-10-17 14:56:02.830387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.832818"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:56:02.832818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 147) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 147 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:56:02.834390"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.858648"], ["nonce", "100"], ["updated_at", "2014-10-17 14:56:02.858648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.859779"], ["nonce", "100"], ["updated_at", "2014-10-17 14:56:02.859779"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.861673"], ["nonce", "100"], ["updated_at", "2014-10-17 14:56:02.861673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:02.867005"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:56:02.867005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 148]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:02.869958"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:56:02.869958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 149]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:02.873181"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:56:02.873181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:02.877084"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:56:02.877084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:02.879843"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:56:02.879843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:02.886592"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:56:02.886592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.883243"], ["nonce", #], ["updated_at", "2014-10-17 14:56:07.883243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.888876"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:56:07.888876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 154) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 154 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:56:07.891191"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 14ms (ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.904307"], ["nonce", #], ["updated_at", "2014-10-17 14:56:07.904307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.907818"], ["nonce", #], ["updated_at", "2014-10-17 14:56:07.907818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.909781"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:56:07.909781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 155) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 155 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:56:07.911104"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.916484"], ["nonce", #], ["updated_at", "2014-10-17 14:56:07.916484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.921158"], ["nonce", #], ["updated_at", "2014-10-17 14:56:07.921158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.925660"], ["nonce", #], ["updated_at", "2014-10-17 14:56:07.925660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.929398"], ["nonce", #], ["updated_at", "2014-10-17 14:56:07.929398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.933020"], ["nonce", #], ["updated_at", "2014-10-17 14:56:07.933020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.935186"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:56:07.935186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 156) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 156 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:56:07.936623"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:07.957478"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:56:07.957478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:07.961088"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:56:07.961088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:07.963637"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:56:07.963637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:07.968806"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:56:07.968806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 160]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:07.971787"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:56:07.971787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 161]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.980197"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:56:07.980197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.995601"], ["nonce", "100"], ["updated_at", "2014-10-17 14:56:07.995601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.996547"], ["nonce", "100"], ["updated_at", "2014-10-17 14:56:07.996547"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:07.998311"], ["nonce", "100"], ["updated_at", "2014-10-17 14:56:07.998311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.100300"], ["nonce", #], ["updated_at", "2014-10-17 14:56:13.100300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.113047"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:56:13.113047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 163) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 163 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:56:13.115263"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 4.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.120674"], ["nonce", #], ["updated_at", "2014-10-17 14:56:13.120674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.128304"], ["nonce", #], ["updated_at", "2014-10-17 14:56:13.128304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.130508"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:56:13.130508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 164) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 164 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:56:13.131834"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.135519"], ["nonce", #], ["updated_at", "2014-10-17 14:56:13.135519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.140542"], ["nonce", #], ["updated_at", "2014-10-17 14:56:13.140542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.145112"], ["nonce", #], ["updated_at", "2014-10-17 14:56:13.145112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.148942"], ["nonce", #], ["updated_at", "2014-10-17 14:56:13.148942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.152177"], ["nonce", #], ["updated_at", "2014-10-17 14:56:13.152177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.154105"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:56:13.154105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 165) LIMIT 1 SQL (0.6ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 165 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:56:13.155460"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.187767"], ["nonce", "100"], ["updated_at", "2014-10-17 14:56:13.187767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.188766"], ["nonce", "100"], ["updated_at", "2014-10-17 14:56:13.188766"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.190440"], ["nonce", "100"], ["updated_at", "2014-10-17 14:56:13.190440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:13.197742"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:56:13.197742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:13.201229"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:56:13.201229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:13.203729"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:56:13.203729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:13.207193"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:56:13.207193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 169]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:56:13.209969"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:56:13.209969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 170]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:56:13.220906"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:56:13.220906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.717051"], ["nonce", #], ["updated_at", "2014-10-17 14:57:49.717051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.734253"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:57:49.734253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 172) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 172 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:57:49.736704"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 5.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.742561"], ["nonce", #], ["updated_at", "2014-10-17 14:57:49.742561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.744664"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:57:49.744664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 173) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 173 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:57:49.746185"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.750236"], ["nonce", #], ["updated_at", "2014-10-17 14:57:49.750236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.761106"], ["nonce", #], ["updated_at", "2014-10-17 14:57:49.761106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.765713"], ["nonce", #], ["updated_at", "2014-10-17 14:57:49.765713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.770240"], ["nonce", #], ["updated_at", "2014-10-17 14:57:49.770240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.773916"], ["nonce", #], ["updated_at", "2014-10-17 14:57:49.773916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.777414"], ["nonce", #], ["updated_at", "2014-10-17 14:57:49.777414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.780029"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:57:49.780029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 174) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 174 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:57:49.781312"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.822549"], ["nonce", "100"], ["updated_at", "2014-10-17 14:57:49.822549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.823526"], ["nonce", "100"], ["updated_at", "2014-10-17 14:57:49.823526"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.824964"], ["nonce", "100"], ["updated_at", "2014-10-17 14:57:49.824964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:49.834859"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:57:49.834859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:49.838648"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:57:49.838648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:49.841472"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:57:49.841472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:49.844584"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:57:49.844584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 178]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:49.847134"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:57:49.847134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 179]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:49.855426"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:57:49.855426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:53.587064"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:57:53.587064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:53.591710"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:57:53.591710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:53.594006"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:57:53.594006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.611344"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:57:53.611344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:53.617845"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:57:53.617845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 185]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:53.621304"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:57:53.621304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 186]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.642210"], ["nonce", #], ["updated_at", "2014-10-17 14:57:53.642210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.648568"], ["nonce", #], ["updated_at", "2014-10-17 14:57:53.648568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.651285"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:57:53.651285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 187) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 187 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:57:53.654175"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.659102"], ["nonce", #], ["updated_at", "2014-10-17 14:57:53.659102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.662577"], ["nonce", #], ["updated_at", "2014-10-17 14:57:53.662577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.664512"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:57:53.664512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 188) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 188 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:57:53.665951"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.683662"], ["nonce", #], ["updated_at", "2014-10-17 14:57:53.683662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.686072"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:57:53.686072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 189) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 189 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:57:53.687653"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.691861"], ["nonce", #], ["updated_at", "2014-10-17 14:57:53.691861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.697855"], ["nonce", #], ["updated_at", "2014-10-17 14:57:53.697855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.701551"], ["nonce", #], ["updated_at", "2014-10-17 14:57:53.701551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.710760"], ["nonce", "100"], ["updated_at", "2014-10-17 14:57:53.710760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.712215"], ["nonce", "100"], ["updated_at", "2014-10-17 14:57:53.712215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:53.712857"], ["nonce", "100"], ["updated_at", "2014-10-17 14:57:53.712857"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.758074"], ["nonce", "100"], ["updated_at", "2014-10-17 14:57:56.758074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.762175"], ["nonce", "100"], ["updated_at", "2014-10-17 14:57:56.762175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.763059"], ["nonce", "100"], ["updated_at", "2014-10-17 14:57:56.763059"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.794826"], ["nonce", #], ["updated_at", "2014-10-17 14:57:56.794826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.805236"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:57:56.805236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 190) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 190 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:57:56.808080"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.813122"], ["nonce", #], ["updated_at", "2014-10-17 14:57:56.813122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.820875"], ["nonce", #], ["updated_at", "2014-10-17 14:57:56.820875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.823053"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:57:56.823053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 191) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 191 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:57:56.824471"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.829132"], ["nonce", #], ["updated_at", "2014-10-17 14:57:56.829132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.841993"], ["nonce", #], ["updated_at", "2014-10-17 14:57:56.841993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.845952"], ["nonce", #], ["updated_at", "2014-10-17 14:57:56.845952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.848034"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:57:56.848034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 192) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 192 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:57:56.849530"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.855848"], ["nonce", #], ["updated_at", "2014-10-17 14:57:56.855848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.859888"], ["nonce", #], ["updated_at", "2014-10-17 14:57:56.859888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:57:56.900274"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:57:56.900274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:56.905935"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:57:56.905935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:56.910094"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:57:56.910094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:56.913164"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:57:56.913164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:56.915637"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:57:56.915637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 197]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:57:56.918180"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:57:56.918180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 198]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.563022"], ["nonce", #], ["updated_at", "2014-10-17 14:58:00.563022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.580146"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:00.580146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 199) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 199 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:00.582406"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 4.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.593843"], ["nonce", #], ["updated_at", "2014-10-17 14:58:00.593843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.597894"], ["nonce", #], ["updated_at", "2014-10-17 14:58:00.597894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.599933"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:00.599933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 200) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 200 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:00.601180"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.605434"], ["nonce", #], ["updated_at", "2014-10-17 14:58:00.605434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.609706"], ["nonce", #], ["updated_at", "2014-10-17 14:58:00.609706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.613949"], ["nonce", #], ["updated_at", "2014-10-17 14:58:00.613949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.617810"], ["nonce", #], ["updated_at", "2014-10-17 14:58:00.617810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.619714"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:00.619714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 201) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 201 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:00.621116"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.625599"], ["nonce", #], ["updated_at", "2014-10-17 14:58:00.625599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.660976"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:58:00.660976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:00.669864"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:58:00.669864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 203]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:00.672751"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:58:00.672751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 204]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:00.675383"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:00.675383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:00.678453"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:00.678453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:00.681792"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:00.681792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.700249"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:00.700249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.701332"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:00.701332"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:00.703213"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:00.703213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.163139"], ["nonce", #], ["updated_at", "2014-10-17 14:58:04.163139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 9ms (Views: 4.0ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.175683"], ["nonce", #], ["updated_at", "2014-10-17 14:58:04.175683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.180922"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:04.180922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 208) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 208 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:04.183166"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.188218"], ["nonce", #], ["updated_at", "2014-10-17 14:58:04.188218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.190727"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:04.190727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 209) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 209 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:04.192103"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.196070"], ["nonce", #], ["updated_at", "2014-10-17 14:58:04.196070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.199941"], ["nonce", #], ["updated_at", "2014-10-17 14:58:04.199941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.204123"], ["nonce", #], ["updated_at", "2014-10-17 14:58:04.204123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.208208"], ["nonce", #], ["updated_at", "2014-10-17 14:58:04.208208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.211723"], ["nonce", #], ["updated_at", "2014-10-17 14:58:04.211723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.214076"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:04.214076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 210) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 210 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:04.215536"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:04.227887"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:04.227887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:04.231275"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:04.231275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:04.233616"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:04.233616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:04.237413"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:58:04.237413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 214]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:04.240661"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:58:04.240661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 215]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.250691"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:58:04.250691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.290940"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:04.290940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.292035"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:04.292035"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:04.293957"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:04.293957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:38.539148"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:58:38.539148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 217]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:38.545796"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:58:38.545796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 218]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:38.548982"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:38.548982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:38.552273"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:38.552273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:38.554766"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:38.554766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.561633"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:58:38.561633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.605724"], ["nonce", #], ["updated_at", "2014-10-17 14:58:38.605724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.608276"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:38.608276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 223) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 223 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:38.610506"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.615432"], ["nonce", #], ["updated_at", "2014-10-17 14:58:38.615432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.617374"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:38.617374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 224) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 224 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:38.618854"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.622695"], ["nonce", #], ["updated_at", "2014-10-17 14:58:38.622695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.626744"], ["nonce", #], ["updated_at", "2014-10-17 14:58:38.626744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.630387"], ["nonce", #], ["updated_at", "2014-10-17 14:58:38.630387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.634687"], ["nonce", #], ["updated_at", "2014-10-17 14:58:38.634687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.639490"], ["nonce", #], ["updated_at", "2014-10-17 14:58:38.639490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.643004"], ["nonce", #], ["updated_at", "2014-10-17 14:58:38.643004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.644997"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:38.644997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 225) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 225 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:38.646304"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.692066"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:38.692066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.693120"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:38.693120"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:38.694877"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:38.694877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:42.682486"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:58:42.682486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 226]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:42.690283"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:58:42.690283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 227]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.695262"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:58:42.695262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:42.712574"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:42.712574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:42.716558"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:42.716558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:58:42.719166"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:58:42.719166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.758240"], ["nonce", #], ["updated_at", "2014-10-17 14:58:42.758240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.760976"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:42.760976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 232) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 232 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:42.762826"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.767433"], ["nonce", #], ["updated_at", "2014-10-17 14:58:42.767433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.771640"], ["nonce", #], ["updated_at", "2014-10-17 14:58:42.771640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.774889"], ["nonce", #], ["updated_at", "2014-10-17 14:58:42.774889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.776776"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:42.776776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 233) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 233 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:42.778240"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.782410"], ["nonce", #], ["updated_at", "2014-10-17 14:58:42.782410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.786238"], ["nonce", #], ["updated_at", "2014-10-17 14:58:42.786238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.788197"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:58:42.788197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 234) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 234 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:58:42.789482"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.793396"], ["nonce", #], ["updated_at", "2014-10-17 14:58:42.793396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.798188"], ["nonce", #], ["updated_at", "2014-10-17 14:58:42.798188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.828772"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:42.828772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.829683"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:42.829683"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:58:42.831358"], ["nonce", "100"], ["updated_at", "2014-10-17 14:58:42.831358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.670562"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:29.670562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.673003"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:29.673003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.673887"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:29.673887"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.696250"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:59:29.696250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:29.702985"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:29.702985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:29.707057"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:29.707057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:29.709469"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:29.709469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:29.711721"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:59:29.711721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 239]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:29.714518"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:59:29.714518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 240]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.718668"], ["nonce", #], ["updated_at", "2014-10-17 14:59:29.718668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.724175"], ["nonce", #], ["updated_at", "2014-10-17 14:59:29.724175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.726078"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:29.726078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 241) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 241 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:29.727743"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.733279"], ["nonce", #], ["updated_at", "2014-10-17 14:59:29.733279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.737711"], ["nonce", #], ["updated_at", "2014-10-17 14:59:29.737711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.8ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.740879"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:29.740879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 242) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 242 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:29.742993"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.760336"], ["nonce", #], ["updated_at", "2014-10-17 14:59:29.760336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.763865"], ["nonce", #], ["updated_at", "2014-10-17 14:59:29.763865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.766063"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:29.766063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 243) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 243 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:29.767258"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.771128"], ["nonce", #], ["updated_at", "2014-10-17 14:59:29.771128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:29.774786"], ["nonce", #], ["updated_at", "2014-10-17 14:59:29.774786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.230192"], ["nonce", #], ["updated_at", "2014-10-17 14:59:33.230192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.242561"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:33.242561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 244) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 244 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:33.245005"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 5.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.253788"], ["nonce", #], ["updated_at", "2014-10-17 14:59:33.253788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.257615"], ["nonce", #], ["updated_at", "2014-10-17 14:59:33.257615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.259677"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:33.259677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 245) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 245 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:33.260958"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.264687"], ["nonce", #], ["updated_at", "2014-10-17 14:59:33.264687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.269835"], ["nonce", #], ["updated_at", "2014-10-17 14:59:33.269835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.273866"], ["nonce", #], ["updated_at", "2014-10-17 14:59:33.273866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.277551"], ["nonce", #], ["updated_at", "2014-10-17 14:59:33.277551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.280773"], ["nonce", #], ["updated_at", "2014-10-17 14:59:33.280773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.282702"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:33.282702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 246) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 246 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:33.284017"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:33.311167"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:59:33.311167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 247]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:33.314086"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:59:33.314086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 248]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:33.316657"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:33.316657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:33.320131"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:33.320131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:33.322479"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:33.322479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.330042"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:59:33.330042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.349311"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:33.349311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.350286"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:33.350286"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:33.351875"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:33.351875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.328579"], ["nonce", #], ["updated_at", "2014-10-17 14:59:36.328579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.331456"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:36.331456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 253) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 253 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:36.333345"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.337926"], ["nonce", #], ["updated_at", "2014-10-17 14:59:36.337926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.343444"], ["nonce", #], ["updated_at", "2014-10-17 14:59:36.343444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.345419"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:36.345419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 254) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 254 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:36.346773"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.353306"], ["nonce", #], ["updated_at", "2014-10-17 14:59:36.353306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.366022"], ["nonce", #], ["updated_at", "2014-10-17 14:59:36.366022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.369805"], ["nonce", #], ["updated_at", "2014-10-17 14:59:36.369805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.373020"], ["nonce", #], ["updated_at", "2014-10-17 14:59:36.373020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.374968"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:36.374968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 255) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 255 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:36.376587"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.380833"], ["nonce", #], ["updated_at", "2014-10-17 14:59:36.380833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:36.385569"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:36.385569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:36.388941"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:36.388941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:36.392304"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:36.392304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:36.394933"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:59:36.394933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 259]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:36.398168"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:59:36.398168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 260]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.407976"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:59:36.407976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.422164"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:36.422164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.423916"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:36.423916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:36.424686"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:36.424686"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.698213"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:57.698213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.700943"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:57.700943"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.703372"], ["nonce", "100"], ["updated_at", "2014-10-17 14:59:57.703372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.760179"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 14:59:57.760179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:57.770207"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 14:59:57.770207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 263]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:57.773543"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 14:59:57.773543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 264]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:57.776651"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:57.776651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:57.780937"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:57.780937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 14:59:57.783191"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 14:59:57.783191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.803215"], ["nonce", #], ["updated_at", "2014-10-17 14:59:57.803215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.808331"], ["nonce", #], ["updated_at", "2014-10-17 14:59:57.808331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.812113"], ["nonce", #], ["updated_at", "2014-10-17 14:59:57.812113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.814491"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:57.814491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 268) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 268 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:57.816401"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.820997"], ["nonce", #], ["updated_at", "2014-10-17 14:59:57.820997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.823131"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:57.823131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 269) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 269 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:57.824479"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.833089"], ["nonce", #], ["updated_at", "2014-10-17 14:59:57.833089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.836502"], ["nonce", #], ["updated_at", "2014-10-17 14:59:57.836502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.838727"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 14:59:57.838727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 270) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 270 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 14:59:57.840180"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.844009"], ["nonce", #], ["updated_at", "2014-10-17 14:59:57.844009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 14:59:57.848456"], ["nonce", #], ["updated_at", "2014-10-17 14:59:57.848456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:08:59.813122"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:08:59.813122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:08:59.820033"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:08:59.820033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:08:59.823022"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:08:59.823022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:08:59.826617"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:08:59.826617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 274]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:08:59.829507"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:08:59.829507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 275]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.840678"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:08:59.840678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.881677"], ["nonce", #], ["updated_at", "2014-10-17 15:08:59.881677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.884262"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:08:59.884262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 277) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 277 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:08:59.886760"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.891907"], ["nonce", #], ["updated_at", "2014-10-17 15:08:59.891907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.894180"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:08:59.894180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 278) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 278 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:08:59.895718"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.899865"], ["nonce", #], ["updated_at", "2014-10-17 15:08:59.899865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.908453"], ["nonce", #], ["updated_at", "2014-10-17 15:08:59.908453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.912318"], ["nonce", #], ["updated_at", "2014-10-17 15:08:59.912318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.916030"], ["nonce", #], ["updated_at", "2014-10-17 15:08:59.916030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.919978"], ["nonce", #], ["updated_at", "2014-10-17 15:08:59.919978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.923147"], ["nonce", #], ["updated_at", "2014-10-17 15:08:59.923147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.925071"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:08:59.925071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 279) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 279 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:08:59.926384"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.941772"], ["nonce", "100"], ["updated_at", "2014-10-17 15:08:59.941772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.942758"], ["nonce", "100"], ["updated_at", "2014-10-17 15:08:59.942758"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:08:59.944415"], ["nonce", "100"], ["updated_at", "2014-10-17 15:08:59.944415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.851015"], ["nonce", "100"], ["updated_at", "2014-10-17 15:10:52.851015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.855216"], ["nonce", "100"], ["updated_at", "2014-10-17 15:10:52.855216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.856127"], ["nonce", "100"], ["updated_at", "2014-10-17 15:10:52.856127"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.864104"], ["nonce", #], ["updated_at", "2014-10-17 15:10:52.864104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.875417"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:10:52.875417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 280) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 280 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:10:52.877851"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.883725"], ["nonce", #], ["updated_at", "2014-10-17 15:10:52.883725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.885846"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:10:52.885846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 281) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 281 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:10:52.887259"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.895250"], ["nonce", #], ["updated_at", "2014-10-17 15:10:52.895250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.898921"], ["nonce", #], ["updated_at", "2014-10-17 15:10:52.898921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.913206"], ["nonce", #], ["updated_at", "2014-10-17 15:10:52.913206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.917462"], ["nonce", #], ["updated_at", "2014-10-17 15:10:52.917462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.922140"], ["nonce", #], ["updated_at", "2014-10-17 15:10:52.922140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.924896"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:10:52.924896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 282) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 282 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:10:52.926203"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.930145"], ["nonce", #], ["updated_at", "2014-10-17 15:10:52.930145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:10:52.965087"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:10:52.965087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:10:52.968519"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:10:52.968519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:10:52.971966"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:10:52.971966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:10:52.984870"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:10:52.984870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:10:52.990806"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:10:52.990806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 287]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:10:52.993754"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:10:52.993754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 288]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.812306"], ["nonce", "100"], ["updated_at", "2014-10-17 15:11:44.812306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.817224"], ["nonce", "100"], ["updated_at", "2014-10-17 15:11:44.817224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.818644"], ["nonce", "100"], ["updated_at", "2014-10-17 15:11:44.818644"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.831369"], ["nonce", #], ["updated_at", "2014-10-17 15:11:44.831369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.836590"], ["nonce", #], ["updated_at", "2014-10-17 15:11:44.836590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.8ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.851916"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:11:44.851916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 289) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 289 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:11:44.855764"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 4.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.861762"], ["nonce", #], ["updated_at", "2014-10-17 15:11:44.861762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.865415"], ["nonce", #], ["updated_at", "2014-10-17 15:11:44.865415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.867410"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:11:44.867410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 290) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 290 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:11:44.868723"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.880945"], ["nonce", #], ["updated_at", "2014-10-17 15:11:44.880945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.884402"], ["nonce", #], ["updated_at", "2014-10-17 15:11:44.884402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.886319"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:11:44.886319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 291) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 291 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:11:44.887535"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.891504"], ["nonce", #], ["updated_at", "2014-10-17 15:11:44.891504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.896391"], ["nonce", #], ["updated_at", "2014-10-17 15:11:44.896391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:11:44.913706"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:11:44.913706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 292]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:11:44.917812"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:11:44.917812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 293]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:11:44.924736"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:11:44.924736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:11:44.942082"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:11:44.942082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:11:44.946057"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:11:44.946057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:11:44.948327"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:11:44.948327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:12.588359"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:13:12.588359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:12.593346"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:13:12.593346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:12.595714"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:13:12.595714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.609741"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:13:12.609741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:12.616860"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:13:12.616860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 302]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:12.620051"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:13:12.620051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 303]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.629328"], ["nonce", "100"], ["updated_at", "2014-10-17 15:13:12.629328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.631840"], ["nonce", "100"], ["updated_at", "2014-10-17 15:13:12.631840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.632732"], ["nonce", "100"], ["updated_at", "2014-10-17 15:13:12.632732"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.638944"], ["nonce", #], ["updated_at", "2014-10-17 15:13:12.638944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.642379"], ["nonce", #], ["updated_at", "2014-10-17 15:13:12.642379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.644495"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:13:12.644495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 304) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 304 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:13:12.646593"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.650586"], ["nonce", #], ["updated_at", "2014-10-17 15:13:12.650586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.655449"], ["nonce", #], ["updated_at", "2014-10-17 15:13:12.655449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.657304"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:13:12.657304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 305) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 305 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:13:12.658468"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.673144"], ["nonce", #], ["updated_at", "2014-10-17 15:13:12.673144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.677126"], ["nonce", #], ["updated_at", "2014-10-17 15:13:12.677126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.679039"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:13:12.679039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 306) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 306 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:13:12.680246"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.684054"], ["nonce", #], ["updated_at", "2014-10-17 15:13:12.684054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:12.688088"], ["nonce", #], ["updated_at", "2014-10-17 15:13:12.688088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:36.986257"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:13:36.986257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:36.994542"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:13:36.994542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:36.997365"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:13:36.997365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:37.000577"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:13:37.000577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:37.003443"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:13:37.003443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 311]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:13:37.006395"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:13:37.006395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 312]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.016395"], ["nonce", "100"], ["updated_at", "2014-10-17 15:13:37.016395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.018764"], ["nonce", "100"], ["updated_at", "2014-10-17 15:13:37.018764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.019669"], ["nonce", "100"], ["updated_at", "2014-10-17 15:13:37.019669"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.052170"], ["nonce", #], ["updated_at", "2014-10-17 15:13:37.052170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.056210"], ["nonce", #], ["updated_at", "2014-10-17 15:13:37.056210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.061193"], ["nonce", #], ["updated_at", "2014-10-17 15:13:37.061193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.063242"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:13:37.063242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 313) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 313 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:13:37.065127"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.072089"], ["nonce", #], ["updated_at", "2014-10-17 15:13:37.072089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.075388"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:13:37.075388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 314) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 314 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:13:37.076710"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.087455"], ["nonce", #], ["updated_at", "2014-10-17 15:13:37.087455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.089586"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:13:37.089586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 315) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 315 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:13:37.090933"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.094945"], ["nonce", #], ["updated_at", "2014-10-17 15:13:37.094945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.099225"], ["nonce", #], ["updated_at", "2014-10-17 15:13:37.099225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:13:37.102849"], ["nonce", #], ["updated_at", "2014-10-17 15:13:37.102849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.932782"], ["nonce", #], ["updated_at", "2014-10-17 15:14:01.932782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.945549"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:14:01.945549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 316) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 316 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:14:01.947974"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 4.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.957422"], ["nonce", #], ["updated_at", "2014-10-17 15:14:01.957422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.959797"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:14:01.959797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 317) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 317 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:14:01.961123"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.964920"], ["nonce", #], ["updated_at", "2014-10-17 15:14:01.964920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.968157"], ["nonce", #], ["updated_at", "2014-10-17 15:14:01.968157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.973385"], ["nonce", #], ["updated_at", "2014-10-17 15:14:01.973385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.976972"], ["nonce", #], ["updated_at", "2014-10-17 15:14:01.976972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.979083"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:14:01.979083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 318) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 318 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:14:01.980440"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.984966"], ["nonce", #], ["updated_at", "2014-10-17 15:14:01.984966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:01.989979"], ["nonce", #], ["updated_at", "2014-10-17 15:14:01.989979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:14:02.004214"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:14:02.004214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 319]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:14:02.007365"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:14:02.007365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 320]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:02.013917"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:14:02.013917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:14:02.028974"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:14:02.028974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:14:02.033285"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:14:02.033285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:14:02.035669"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:14:02.035669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:02.041846"], ["nonce", "100"], ["updated_at", "2014-10-17 15:14:02.041846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:02.042682"], ["nonce", "100"], ["updated_at", "2014-10-17 15:14:02.042682"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:14:02.044200"], ["nonce", "100"], ["updated_at", "2014-10-17 15:14:02.044200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:27:25.114516"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:27:25.114516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 325]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:27:25.121415"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:27:25.121415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 326]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:27:25.124368"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:27:25.124368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:27:25.127553"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:27:25.127553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:27:25.130024"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:27:25.130024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.135596"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:27:25.135596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.160623"], ["nonce", #], ["updated_at", "2014-10-17 15:27:25.160623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.165268"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:27:25.165268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 331) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 331 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:27:25.167398"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 12ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.178550"], ["nonce", #], ["updated_at", "2014-10-17 15:27:25.178550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.180613"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:27:25.180613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 332) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 332 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:27:25.181809"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.185413"], ["nonce", #], ["updated_at", "2014-10-17 15:27:25.185413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.188787"], ["nonce", #], ["updated_at", "2014-10-17 15:27:25.188787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.193679"], ["nonce", #], ["updated_at", "2014-10-17 15:27:25.193679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.197326"], ["nonce", #], ["updated_at", "2014-10-17 15:27:25.197326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.201759"], ["nonce", #], ["updated_at", "2014-10-17 15:27:25.201759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.205175"], ["nonce", #], ["updated_at", "2014-10-17 15:27:25.205175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.207116"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:27:25.207116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 333) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 333 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:27:25.208409"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.237794"], ["nonce", "100"], ["updated_at", "2014-10-17 15:27:25.237794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.238693"], ["nonce", "100"], ["updated_at", "2014-10-17 15:27:25.238693"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:27:25.240203"], ["nonce", "100"], ["updated_at", "2014-10-17 15:27:25.240203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.800166"], ["nonce", #], ["updated_at", "2014-10-17 15:28:10.800166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 4.0ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.808609"], ["nonce", #], ["updated_at", "2014-10-17 15:28:10.808609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.811101"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:10.811101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 334) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 334 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:10.813598"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.820788"], ["nonce", #], ["updated_at", "2014-10-17 15:28:10.820788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.822747"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:10.822747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 335) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 335 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:10.823928"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.827896"], ["nonce", #], ["updated_at", "2014-10-17 15:28:10.827896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.831876"], ["nonce", #], ["updated_at", "2014-10-17 15:28:10.831876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.836859"], ["nonce", #], ["updated_at", "2014-10-17 15:28:10.836859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.840719"], ["nonce", #], ["updated_at", "2014-10-17 15:28:10.840719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.843945"], ["nonce", #], ["updated_at", "2014-10-17 15:28:10.843945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.845815"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:10.845815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 336) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 336 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:10.847230"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:10.877166"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:10.877166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:10.880592"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:10.880592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:10.883026"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:10.883026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:10.886408"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:28:10.886408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 340]]  (0.3ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:10.890054"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:28:10.890054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 341]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.898678"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:28:10.898678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.919079"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:10.919079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.920104"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:10.920104"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:10.921874"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:10.921874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:16.529712"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:28:16.529712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 343]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:16.535769"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:28:16.535769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 344]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:16.538900"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:16.538900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:16.542187"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:16.542187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:16.544660"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:16.544660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.550007"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:28:16.550007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.576837"], ["nonce", #], ["updated_at", "2014-10-17 15:28:16.576837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.581463"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:16.581463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 349) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 349 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:16.583265"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 12ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.594248"], ["nonce", #], ["updated_at", "2014-10-17 15:28:16.594248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.596228"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:16.596228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 350) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 350 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:16.597388"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.601134"], ["nonce", #], ["updated_at", "2014-10-17 15:28:16.601134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.604654"], ["nonce", #], ["updated_at", "2014-10-17 15:28:16.604654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.609482"], ["nonce", #], ["updated_at", "2014-10-17 15:28:16.609482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.613761"], ["nonce", #], ["updated_at", "2014-10-17 15:28:16.613761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.617901"], ["nonce", #], ["updated_at", "2014-10-17 15:28:16.617901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.621225"], ["nonce", #], ["updated_at", "2014-10-17 15:28:16.621225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.623127"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:16.623127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 351) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 351 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:16.624354"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.653469"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:16.653469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.654374"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:16.654374"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:16.655858"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:16.655858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 500 Internal Server Error in 0ms  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:27.602452"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:27.602452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:27.606377"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:27.606377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:27.608821"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:27.608821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:27.612016"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:28:27.612016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 355]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:27.614841"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:28:27.614841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 356]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.624066"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:28:27.624066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.637550"], ["nonce", #], ["updated_at", "2014-10-17 15:28:27.637550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.6ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.642967"], ["nonce", #], ["updated_at", "2014-10-17 15:28:27.642967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.644902"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:27.644902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 358) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 358 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:27.646526"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.653174"], ["nonce", #], ["updated_at", "2014-10-17 15:28:27.653174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.655043"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:27.655043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 359) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 359 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:27.656264"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.660143"], ["nonce", #], ["updated_at", "2014-10-17 15:28:27.660143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.664333"], ["nonce", #], ["updated_at", "2014-10-17 15:28:27.664333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.667903"], ["nonce", #], ["updated_at", "2014-10-17 15:28:27.667903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.671264"], ["nonce", #], ["updated_at", "2014-10-17 15:28:27.671264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.674497"], ["nonce", #], ["updated_at", "2014-10-17 15:28:27.674497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.676739"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:27.676739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 360) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 360 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:27.678329"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.693572"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:27.693572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.694501"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:27.694501"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:27.696114"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:27.696114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (2.8ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.067250"], ["nonce", #], ["updated_at", "2014-10-17 15:28:31.067250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.079482"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:31.079482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 361) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 361 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:31.081605"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 21ms (ActiveRecord: 4.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.090866"], ["nonce", #], ["updated_at", "2014-10-17 15:28:31.090866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.094256"], ["nonce", #], ["updated_at", "2014-10-17 15:28:31.094256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.096460"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:31.096460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 362) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 362 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:31.097782"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.101522"], ["nonce", #], ["updated_at", "2014-10-17 15:28:31.101522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.106597"], ["nonce", #], ["updated_at", "2014-10-17 15:28:31.106597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.110770"], ["nonce", #], ["updated_at", "2014-10-17 15:28:31.110770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.115115"], ["nonce", #], ["updated_at", "2014-10-17 15:28:31.115115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.118479"], ["nonce", #], ["updated_at", "2014-10-17 15:28:31.118479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.120339"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:28:31.120339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 363) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 363 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:28:31.121727"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:31.143434"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:31.143434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:31.146984"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:31.146984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:31.149283"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:28:31.149283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:31.152508"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:28:31.152508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 367]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:28:31.155188"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:28:31.155188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 368]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.164622"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:28:31.164622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.177889"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:31.177889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.178927"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:31.178927"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:28:31.180635"], ["nonce", "100"], ["updated_at", "2014-10-17 15:28:31.180635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.067968"], ["nonce", #], ["updated_at", "2014-10-17 15:29:08.067968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.075499"], ["nonce", #], ["updated_at", "2014-10-17 15:29:08.075499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.086207"], ["nonce", #], ["updated_at", "2014-10-17 15:29:08.086207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.098707"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:29:08.098707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 370) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 370 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:29:08.101133"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.105886"], ["nonce", #], ["updated_at", "2014-10-17 15:29:08.105886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.107915"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:29:08.107915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 371) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 371 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:29:08.109264"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.121007"], ["nonce", #], ["updated_at", "2014-10-17 15:29:08.121007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.123649"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:29:08.123649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 372) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 372 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:29:08.125425"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.129955"], ["nonce", #], ["updated_at", "2014-10-17 15:29:08.129955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.133893"], ["nonce", #], ["updated_at", "2014-10-17 15:29:08.133893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.138556"], ["nonce", #], ["updated_at", "2014-10-17 15:29:08.138556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.144114"], ["nonce", "100"], ["updated_at", "2014-10-17 15:29:08.144114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.146096"], ["nonce", "100"], ["updated_at", "2014-10-17 15:29:08.146096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.147043"], ["nonce", "100"], ["updated_at", "2014-10-17 15:29:08.147043"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:08.188709"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:29:08.188709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:08.198431"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:29:08.198431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 374]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:08.202026"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:29:08.202026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 375]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:08.208005"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:29:08.208005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:08.210426"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:29:08.210426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:08.212822"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:29:08.212822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.409921"], ["nonce", #], ["updated_at", "2014-10-17 15:29:11.409921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.414437"], ["nonce", #], ["updated_at", "2014-10-17 15:29:11.414437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.418920"], ["nonce", #], ["updated_at", "2014-10-17 15:29:11.418920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.421104"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:29:11.421104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 379) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 379 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:29:11.422997"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.426943"], ["nonce", #], ["updated_at", "2014-10-17 15:29:11.426943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.428780"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:29:11.428780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 380) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 380 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:29:11.429943"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.442711"], ["nonce", #], ["updated_at", "2014-10-17 15:29:11.442711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.446236"], ["nonce", #], ["updated_at", "2014-10-17 15:29:11.446236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.448102"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:29:11.448102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 381) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 381 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:29:11.449267"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.453313"], ["nonce", #], ["updated_at", "2014-10-17 15:29:11.453313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.458006"], ["nonce", #], ["updated_at", "2014-10-17 15:29:11.458006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:11.477701"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:29:11.477701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 382]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:11.480501"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:29:11.480501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 383]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.485097"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:29:11.485097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:11.497909"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:29:11.497909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:11.501893"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:29:11.501893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:29:11.504224"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:29:11.504224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.511021"], ["nonce", "100"], ["updated_at", "2014-10-17 15:29:11.511021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.512869"], ["nonce", "100"], ["updated_at", "2014-10-17 15:29:11.512869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:29:11.513595"], ["nonce", "100"], ["updated_at", "2014-10-17 15:29:11.513595"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:45.993972"], ["nonce", "100"], ["updated_at", "2014-10-17 15:45:45.993972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:45.996422"], ["nonce", "100"], ["updated_at", "2014-10-17 15:45:45.996422"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:45.998165"], ["nonce", "100"], ["updated_at", "2014-10-17 15:45:45.998165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.024177"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:45:46.024177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:45:46.034990"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:45:46.034990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 389]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:45:46.037951"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:45:46.037951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 390]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:45:46.040866"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:45:46.040866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:45:46.045089"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:45:46.045089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:45:46.047344"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:45:46.047344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.057829"], ["nonce", #], ["updated_at", "2014-10-17 15:45:46.057829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.060118"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:45:46.060118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 394) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 394 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:45:46.062135"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.066983"], ["nonce", #], ["updated_at", "2014-10-17 15:45:46.066983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.074416"], ["nonce", #], ["updated_at", "2014-10-17 15:45:46.074416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.081029"], ["nonce", #], ["updated_at", "2014-10-17 15:45:46.081029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.083120"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:45:46.083120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 395) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 395 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:45:46.084506"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.088730"], ["nonce", #], ["updated_at", "2014-10-17 15:45:46.088730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.093418"], ["nonce", #], ["updated_at", "2014-10-17 15:45:46.093418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.095550"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:45:46.095550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 396) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 396 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:45:46.096873"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.101462"], ["nonce", #], ["updated_at", "2014-10-17 15:45:46.101462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:45:46.105996"], ["nonce", #], ["updated_at", "2014-10-17 15:45:46.105996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.939296"], ["nonce", #], ["updated_at", "2014-10-17 15:47:20.939296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.945075"], ["nonce", #], ["updated_at", "2014-10-17 15:47:20.945075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.949938"], ["nonce", #], ["updated_at", "2014-10-17 15:47:20.949938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.960267"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:47:20.960267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 397) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 397 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:47:20.962939"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 15ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.967774"], ["nonce", #], ["updated_at", "2014-10-17 15:47:20.967774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.969984"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:47:20.969984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 398) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 398 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:47:20.971373"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.984068"], ["nonce", #], ["updated_at", "2014-10-17 15:47:20.984068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.987769"], ["nonce", #], ["updated_at", "2014-10-17 15:47:20.987769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.989745"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 15:47:20.989745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 399) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 399 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 15:47:20.991040"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.995001"], ["nonce", #], ["updated_at", "2014-10-17 15:47:20.995001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:20.999067"], ["nonce", #], ["updated_at", "2014-10-17 15:47:20.999067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:47:21.003736"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 15:47:21.003736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 400]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:47:21.007242"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 15:47:21.007242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 401]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:21.013234"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 15:47:21.013234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:47:21.028874"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:47:21.028874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:47:21.033063"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:47:21.033063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 15:47:21.035583"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 15:47:21.035583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:21.042342"], ["nonce", "100"], ["updated_at", "2014-10-17 15:47:21.042342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:21.044183"], ["nonce", "100"], ["updated_at", "2014-10-17 15:47:21.044183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 15:47:21.044932"], ["nonce", "100"], ["updated_at", "2014-10-17 15:47:21.044932"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.903730"], ["nonce", #], ["updated_at", "2014-10-17 16:00:57.903730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.915377"], ["nonce", #], ["updated_at", "2014-10-17 16:00:57.915377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.920151"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 16:00:57.920151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 406) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 406 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 16:00:57.922562"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.927067"], ["nonce", #], ["updated_at", "2014-10-17 16:00:57.927067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.928972"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 16:00:57.928972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 407) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 407 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 16:00:57.930172"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.934496"], ["nonce", #], ["updated_at", "2014-10-17 16:00:57.934496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.938434"], ["nonce", #], ["updated_at", "2014-10-17 16:00:57.938434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.942930"], ["nonce", #], ["updated_at", "2014-10-17 16:00:57.942930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.946697"], ["nonce", #], ["updated_at", "2014-10-17 16:00:57.946697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.950090"], ["nonce", #], ["updated_at", "2014-10-17 16:00:57.950090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:57.952543"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 16:00:57.952543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 408) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 408 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 16:00:57.953925"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:00:57.985077"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 16:00:57.985077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:00:57.988601"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 16:00:57.988601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:00:57.991036"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 16:00:57.991036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:00:57.994919"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 16:00:57.994919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 412]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:00:57.997805"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 16:00:57.997805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 413]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:58.007879"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 16:00:58.007879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:58.034413"], ["nonce", "100"], ["updated_at", "2014-10-17 16:00:58.034413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:58.035553"], ["nonce", "100"], ["updated_at", "2014-10-17 16:00:58.035553"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:00:58.037278"], ["nonce", "100"], ["updated_at", "2014-10-17 16:00:58.037278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.241989"], ["nonce", "100"], ["updated_at", "2014-10-17 16:01:02.241989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.244589"], ["nonce", "100"], ["updated_at", "2014-10-17 16:01:02.244589"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.247180"], ["nonce", "100"], ["updated_at", "2014-10-17 16:01:02.247180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:01:02.277745"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 16:01:02.277745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 415]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:01:02.281355"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 16:01:02.281355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 416]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:01:02.284604"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 16:01:02.284604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:01:02.288381"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 16:01:02.288381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 16:01:02.291103"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 16:01:02.291103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.296950"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 16:01:02.296950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.319387"], ["nonce", #], ["updated_at", "2014-10-17 16:01:02.319387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.321578"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 16:01:02.321578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 421) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 421 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 16:01:02.323712"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.328028"], ["nonce", #], ["updated_at", "2014-10-17 16:01:02.328028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.335385"], ["nonce", #], ["updated_at", "2014-10-17 16:01:02.335385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.337244"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 16:01:02.337244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 422) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 422 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 16:01:02.338412"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.342001"], ["nonce", #], ["updated_at", "2014-10-17 16:01:02.342001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.346613"], ["nonce", #], ["updated_at", "2014-10-17 16:01:02.346613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.351019"], ["nonce", #], ["updated_at", "2014-10-17 16:01:02.351019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.354937"], ["nonce", #], ["updated_at", "2014-10-17 16:01:02.354937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.358212"], ["nonce", #], ["updated_at", "2014-10-17 16:01:02.358212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 16:01:02.360116"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 16:01:02.360116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 423) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 423 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 16:01:02.361317"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:43:48.549457"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 20:43:48.549457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:43:48.556375"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 20:43:48.556375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.561903"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 20:43:48.561903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:43:48.577475"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 20:43:48.577475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:43:48.581735"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 20:43:48.581735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:43:48.584258"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 20:43:48.584258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.632400"], ["nonce", #], ["updated_at", "2014-10-17 20:43:48.632400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.637870"], ["nonce", #], ["updated_at", "2014-10-17 20:43:48.637870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.641558"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 20:43:48.641558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 20:43:48.643448"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.648030"], ["nonce", #], ["updated_at", "2014-10-17 20:43:48.648030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.651273"], ["nonce", #], ["updated_at", "2014-10-17 20:43:48.651273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.653311"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 20:43:48.653311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 20:43:48.654989"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.667377"], ["nonce", #], ["updated_at", "2014-10-17 20:43:48.667377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.670685"], ["nonce", #], ["updated_at", "2014-10-17 20:43:48.670685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.672552"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 20:43:48.672552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 20:43:48.673759"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.678565"], ["nonce", #], ["updated_at", "2014-10-17 20:43:48.678565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.682357"], ["nonce", #], ["updated_at", "2014-10-17 20:43:48.682357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.688929"], ["nonce", "100"], ["updated_at", "2014-10-17 20:43:48.688929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.690460"], ["nonce", "100"], ["updated_at", "2014-10-17 20:43:48.690460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:43:48.691160"], ["nonce", "100"], ["updated_at", "2014-10-17 20:43:48.691160"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.420805"], ["nonce", "100"], ["updated_at", "2014-10-17 20:47:22.420805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.423249"], ["nonce", "100"], ["updated_at", "2014-10-17 20:47:22.423249"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.425729"], ["nonce", "100"], ["updated_at", "2014-10-17 20:47:22.425729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.476548"], ["lti_user_id", "a"], ["updated_at", "2014-10-17 20:47:22.476548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:47:22.489308"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-17 20:47:22.489308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:47:22.492177"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-17 20:47:22.492177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:47:22.496306"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 20:47:22.496306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:47:22.498750"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 20:47:22.498750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-17 20:47:22.501251"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-17 20:47:22.501251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.505428"], ["nonce", #], ["updated_at", "2014-10-17 20:47:22.505428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.510420"], ["nonce", #], ["updated_at", "2014-10-17 20:47:22.510420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.513580"], ["nonce", #], ["updated_at", "2014-10-17 20:47:22.513580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.515414"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 20:47:22.515414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 20:47:22.517147"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.524311"], ["nonce", #], ["updated_at", "2014-10-17 20:47:22.524311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.526159"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 20:47:22.526159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 20:47:22.527315"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.530761"], ["nonce", #], ["updated_at", "2014-10-17 20:47:22.530761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.532558"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-17 20:47:22.532558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-17 20:47:22.533715"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.537393"], ["nonce", #], ["updated_at", "2014-10-17 20:47:22.537393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.541724"], ["nonce", #], ["updated_at", "2014-10-17 20:47:22.541724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-17 20:47:22.545256"], ["nonce", #], ["updated_at", "2014-10-17 20:47:22.545256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (1.1ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (3.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (1.0ms) DELETE FROM "dce_lti_nonces";  (0.6ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.5ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-21 15:52:00.392738"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-21 15:52:00.392738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-21 15:52:00.401682"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-21 15:52:00.401682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-21 15:52:00.405336"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-21 15:52:00.405336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-21 15:52:00.409664"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-21 15:52:00.409664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-21 15:52:00.413154"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-21 15:52:00.413154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (4.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.425396"], ["lti_user_id", "a"], ["updated_at", "2014-10-21 15:52:00.425396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.479470"], ["nonce", #], ["updated_at", "2014-10-21 15:52:00.479470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.482970"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-21 15:52:00.482970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-21 15:52:00.485623"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 12ms (ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.490342"], ["nonce", #], ["updated_at", "2014-10-21 15:52:00.490342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.492268"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-21 15:52:00.492268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-21 15:52:00.493501"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.498064"], ["nonce", #], ["updated_at", "2014-10-21 15:52:00.498064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.502563"], ["nonce", #], ["updated_at", "2014-10-21 15:52:00.502563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.507341"], ["nonce", #], ["updated_at", "2014-10-21 15:52:00.507341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.511934"], ["nonce", #], ["updated_at", "2014-10-21 15:52:00.511934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.517357"], ["nonce", #], ["updated_at", "2014-10-21 15:52:00.517357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.522063"], ["nonce", #], ["updated_at", "2014-10-21 15:52:00.522063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.524233"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-21 15:52:00.524233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-21 15:52:00.525662"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.558626"], ["nonce", "100"], ["updated_at", "2014-10-21 15:52:00.558626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.559638"], ["nonce", "100"], ["updated_at", "2014-10-21 15:52:00.559638"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-21 15:52:00.561407"], ["nonce", "100"], ["updated_at", "2014-10-21 15:52:00.561407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.6ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.3ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.119664"], ["nonce", #], ["updated_at", "2014-10-29 17:57:46.119664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.126994"], ["nonce", #], ["updated_at", "2014-10-29 17:57:46.126994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.144088"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-29 17:57:46.144088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-29 17:57:46.146348"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 21ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.151462"], ["nonce", #], ["updated_at", "2014-10-29 17:57:46.151462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.155903"], ["nonce", #], ["updated_at", "2014-10-29 17:57:46.155903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.158286"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-29 17:57:46.158286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-29 17:57:46.159932"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.174366"], ["nonce", #], ["updated_at", "2014-10-29 17:57:46.174366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.178686"], ["nonce", #], ["updated_at", "2014-10-29 17:57:46.178686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.183217"], ["nonce", #], ["updated_at", "2014-10-29 17:57:46.183217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.185535"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-29 17:57:46.185535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-29 17:57:46.187285"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.192538"], ["nonce", #], ["updated_at", "2014-10-29 17:57:46.192538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:46.218269"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-29 17:57:46.218269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:46.221961"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-29 17:57:46.221961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:46.225077"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-29 17:57:46.225077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:46.228765"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-29 17:57:46.228765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:46.232800"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-29 17:57:46.232800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.237783"], ["lti_user_id", "a"], ["updated_at", "2014-10-29 17:57:46.237783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.267507"], ["nonce", "100"], ["updated_at", "2014-10-29 17:57:46.267507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.269610"], ["nonce", "100"], ["updated_at", "2014-10-29 17:57:46.269610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:46.270521"], ["nonce", "100"], ["updated_at", "2014-10-29 17:57:46.270521"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:54.956808"], ["lti_user_id", "a"], ["updated_at", "2014-10-29 17:57:54.956808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:54.968912"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-29 17:57:54.968912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:54.972514"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-29 17:57:54.972514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:54.975689"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-29 17:57:54.975689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:54.980539"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-29 17:57:54.980539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:57:54.983335"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-29 17:57:54.983335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.008463"], ["nonce", "100"], ["updated_at", "2014-10-29 17:57:55.008463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.009937"], ["nonce", "100"], ["updated_at", "2014-10-29 17:57:55.009937"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.012069"], ["nonce", "100"], ["updated_at", "2014-10-29 17:57:55.012069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.018603"], ["nonce", #], ["updated_at", "2014-10-29 17:57:55.018603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.021171"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-29 17:57:55.021171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-29 17:57:55.023313"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.028043"], ["nonce", #], ["updated_at", "2014-10-29 17:57:55.028043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.033813"], ["nonce", #], ["updated_at", "2014-10-29 17:57:55.033813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.040918"], ["nonce", #], ["updated_at", "2014-10-29 17:57:55.040918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.043256"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-29 17:57:55.043256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-29 17:57:55.044930"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.049513"], ["nonce", #], ["updated_at", "2014-10-29 17:57:55.049513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.053454"], ["nonce", #], ["updated_at", "2014-10-29 17:57:55.053454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.055646"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-29 17:57:55.055646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-29 17:57:55.057326"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.061733"], ["nonce", #], ["updated_at", "2014-10-29 17:57:55.061733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:57:55.066005"], ["nonce", #], ["updated_at", "2014-10-29 17:57:55.066005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.791181"], ["nonce", "100"], ["updated_at", "2014-10-29 17:59:05.791181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.795852"], ["nonce", "100"], ["updated_at", "2014-10-29 17:59:05.795852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.796889"], ["nonce", "100"], ["updated_at", "2014-10-29 17:59:05.796889"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.828898"], ["lti_user_id", "a"], ["updated_at", "2014-10-29 17:59:05.828898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:59:05.838182"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-29 17:59:05.838182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:59:05.841247"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-29 17:59:05.841247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:59:05.843992"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2014-10-29 17:59:05.843992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:59:05.847048"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2014-10-29 17:59:05.847048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-10-29 17:59:05.850476"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2014-10-29 17:59:05.850476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.857313"], ["nonce", #], ["updated_at", "2014-10-29 17:59:05.857313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.863054"], ["nonce", #], ["updated_at", "2014-10-29 17:59:05.863054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.865445"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-29 17:59:05.865445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-29 17:59:05.867444"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.875182"], ["nonce", #], ["updated_at", "2014-10-29 17:59:05.875182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.878924"], ["nonce", #], ["updated_at", "2014-10-29 17:59:05.878924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.881128"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-29 17:59:05.881128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-29 17:59:05.882673"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.895150"], ["nonce", #], ["updated_at", "2014-10-29 17:59:05.895150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.897468"], ["lti_user_id", "oauth_id"], ["updated_at", "2014-10-29 17:59:05.897468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2014-10-29 17:59:05.899083"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.903427"], ["nonce", #], ["updated_at", "2014-10-29 17:59:05.903427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.907397"], ["nonce", #], ["updated_at", "2014-10-29 17:59:05.907397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-10-29 17:59:05.912029"], ["nonce", #], ["updated_at", "2014-10-29 17:59:05.912029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.5ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.444869"], ["nonce", "100"], ["updated_at", "2015-01-05 20:40:18.444869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.446253"], ["nonce", "100"], ["updated_at", "2015-01-05 20:40:18.446253"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.449268"], ["nonce", "100"], ["updated_at", "2015-01-05 20:40:18.449268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.458428"], ["nonce", #], ["updated_at", "2015-01-05 20:40:18.458428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.470187"], ["nonce", #], ["updated_at", "2015-01-05 20:40:18.470187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.473789"], ["nonce", #], ["updated_at", "2015-01-05 20:40:18.473789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.479371"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:40:18.479371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:40:18.481571"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.486737"], ["nonce", #], ["updated_at", "2015-01-05 20:40:18.486737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.488623"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:40:18.488623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:40:18.490036"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.493752"], ["nonce", #], ["updated_at", "2015-01-05 20:40:18.493752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.495507"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:40:18.495507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:40:18.496612"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.500668"], ["nonce", #], ["updated_at", "2015-01-05 20:40:18.500668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.505551"], ["nonce", #], ["updated_at", "2015-01-05 20:40:18.505551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.510102"], ["nonce", #], ["updated_at", "2015-01-05 20:40:18.510102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:40:18.530406"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 20:40:18.530406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:40:18.539311"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 20:40:18.539311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:40:18.542536"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 20:40:18.542536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:40:18.546900"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 20:40:18.546900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:40:18.549441"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 20:40:18.549441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:40:18.552140"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 20:40:18.552140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:42:42.731888"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 20:42:42.731888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:42:42.737260"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 20:42:42.737260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:42:42.740279"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 20:42:42.740279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:42:42.743626"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 20:42:42.743626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 20:42:42.747368"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 20:42:42.747368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 14]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.758962"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 20:42:42.758962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.813319"], ["nonce", #], ["updated_at", "2015-01-05 20:42:42.813319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.816120"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:42:42.816120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:42:42.818202"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.822663"], ["nonce", #], ["updated_at", "2015-01-05 20:42:42.822663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.824517"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:42:42.824517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:42:42.825701"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.829097"], ["nonce", #], ["updated_at", "2015-01-05 20:42:42.829097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.836675"], ["nonce", #], ["updated_at", "2015-01-05 20:42:42.836675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.840803"], ["nonce", #], ["updated_at", "2015-01-05 20:42:42.840803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.844913"], ["nonce", #], ["updated_at", "2015-01-05 20:42:42.844913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.849953"], ["nonce", #], ["updated_at", "2015-01-05 20:42:42.849953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.853696"], ["nonce", #], ["updated_at", "2015-01-05 20:42:42.853696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.855697"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:42:42.855697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:42:42.857264"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.873110"], ["nonce", "100"], ["updated_at", "2015-01-05 20:42:42.873110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.874001"], ["nonce", "100"], ["updated_at", "2015-01-05 20:42:42.874001"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:42:42.875630"], ["nonce", "100"], ["updated_at", "2015-01-05 20:42:42.875630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.658444"], ["nonce", #], ["updated_at", "2015-01-05 20:59:59.658444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 12ms (Views: 4.0ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.668857"], ["nonce", #], ["updated_at", "2015-01-05 20:59:59.668857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.682032"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:59:59.682032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:59:59.684292"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.689572"], ["nonce", #], ["updated_at", "2015-01-05 20:59:59.689572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.693073"], ["nonce", #], ["updated_at", "2015-01-05 20:59:59.693073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.694884"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:59:59.694884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:59:59.696204"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.699805"], ["nonce", #], ["updated_at", "2015-01-05 20:59:59.699805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.701573"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:59:59.701573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:59:59.702664"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.717788"], ["nonce", #], ["updated_at", "2015-01-05 20:59:59.717788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.722643"], ["nonce", #], ["updated_at", "2015-01-05 20:59:59.722643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.726683"], ["nonce", #], ["updated_at", "2015-01-05 20:59:59.726683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.728602"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 20:59:59.728602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 20:59:59.729820"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 20:59:59.733517"], ["nonce", #], ["updated_at", "2015-01-05 20:59:59.733517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:00:13.229220"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:00:13.229220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 23]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:00:13.232961"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:00:13.232961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 24]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:00:13.235888"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:00:13.235888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:00:13.239047"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:00:13.239047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:00:13.241364"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:00:13.241364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.248832"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:00:13.248832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.269526"], ["nonce", #], ["updated_at", "2015-01-05 21:00:13.269526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.271874"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:00:13.271874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:00:13.273592"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.278245"], ["nonce", #], ["updated_at", "2015-01-05 21:00:13.278245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.280520"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:00:13.280520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:00:13.281912"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.290045"], ["nonce", #], ["updated_at", "2015-01-05 21:00:13.290045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.293380"], ["nonce", #], ["updated_at", "2015-01-05 21:00:13.293380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.295275"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:00:13.295275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 31) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 31 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:00:13.296539"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.300170"], ["nonce", #], ["updated_at", "2015-01-05 21:00:13.300170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.304851"], ["nonce", #], ["updated_at", "2015-01-05 21:00:13.304851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.308556"], ["nonce", #], ["updated_at", "2015-01-05 21:00:13.308556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.312820"], ["nonce", #], ["updated_at", "2015-01-05 21:00:13.312820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.316073"], ["nonce", #], ["updated_at", "2015-01-05 21:00:13.316073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.317972"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:00:13.317972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 32) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 32 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:00:13.319253"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.337791"], ["nonce", "100"], ["updated_at", "2015-01-05 21:00:13.337791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.338993"], ["nonce", "100"], ["updated_at", "2015-01-05 21:00:13.338993"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:00:13.340909"], ["nonce", "100"], ["updated_at", "2015-01-05 21:00:13.340909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 19207ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.3ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1673ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.787614"], ["nonce", #], ["updated_at", "2015-01-05 21:07:48.787614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.790865"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:07:48.790865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 33) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 33 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:07:48.793105"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.797838"], ["nonce", #], ["updated_at", "2015-01-05 21:07:48.797838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.799938"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:07:48.799938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:07:48.801519"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.806037"], ["nonce", #], ["updated_at", "2015-01-05 21:07:48.806037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.814209"], ["nonce", #], ["updated_at", "2015-01-05 21:07:48.814209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.817194"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:07:48.817194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:07:48.818514"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.823048"], ["nonce", #], ["updated_at", "2015-01-05 21:07:48.823048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.827124"], ["nonce", #], ["updated_at", "2015-01-05 21:07:48.827124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.830407"], ["nonce", #], ["updated_at", "2015-01-05 21:07:48.830407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.832358"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:07:48.832358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 36) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 36 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:07:48.833692"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.837581"], ["nonce", #], ["updated_at", "2015-01-05 21:07:48.837581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.842805"], ["nonce", #], ["updated_at", "2015-01-05 21:07:48.842805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.856297"], ["nonce", "100"], ["updated_at", "2015-01-05 21:07:48.856297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.857252"], ["nonce", "100"], ["updated_at", "2015-01-05 21:07:48.857252"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.859250"], ["nonce", "100"], ["updated_at", "2015-01-05 21:07:48.859250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:07:48.872654"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:07:48.872654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:07:48.882451"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:07:48.882451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 38]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:07:48.885520"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:07:48.885520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 39]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:07:48.888148"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:07:48.888148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:07:48.892197"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:07:48.892197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:07:48.894428"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:07:48.894428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.198002"], ["nonce", #], ["updated_at", "2015-01-05 21:13:19.198002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.214888"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:13:19.214888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:13:19.217209"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 26ms (ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.222537"], ["nonce", #], ["updated_at", "2015-01-05 21:13:19.222537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.224605"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:13:19.224605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:13:19.225884"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.229955"], ["nonce", #], ["updated_at", "2015-01-05 21:13:19.229955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.237481"], ["nonce", #], ["updated_at", "2015-01-05 21:13:19.237481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.241622"], ["nonce", #], ["updated_at", "2015-01-05 21:13:19.241622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.243768"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:13:19.243768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 45) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 45 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:13:19.245188"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.261135"], ["nonce", #], ["updated_at", "2015-01-05 21:13:19.261135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.265896"], ["nonce", #], ["updated_at", "2015-01-05 21:13:19.265896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.269180"], ["nonce", #], ["updated_at", "2015-01-05 21:13:19.269180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.271099"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:13:19.271099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 46) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 46 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:13:19.272412"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:13:19.276507"], ["nonce", #], ["updated_at", "2015-01-05 21:13:19.276507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.869143"], ["nonce", "100"], ["updated_at", "2015-01-05 21:25:40.869143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.873100"], ["nonce", "100"], ["updated_at", "2015-01-05 21:25:40.873100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.873983"], ["nonce", "100"], ["updated_at", "2015-01-05 21:25:40.873983"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:25:40.904029"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:25:40.904029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:25:40.909259"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:25:40.909259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:25:40.911661"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:25:40.911661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.927465"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:25:40.927465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:25:40.933095"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:25:40.933095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 51]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:25:40.935790"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:25:40.935790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 52]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.970011"], ["nonce", #], ["updated_at", "2015-01-05 21:25:40.970011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.973621"], ["nonce", #], ["updated_at", "2015-01-05 21:25:40.973621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.978336"], ["nonce", #], ["updated_at", "2015-01-05 21:25:40.978336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.980364"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:25:40.980364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 53) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 53 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:25:40.982170"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.987857"], ["nonce", #], ["updated_at", "2015-01-05 21:25:40.987857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.989786"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:25:40.989786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 54) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 54 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:25:40.991305"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.997740"], ["nonce", #], ["updated_at", "2015-01-05 21:25:40.997740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:40.999662"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:25:40.999662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 55 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:25:41.000974"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:41.012813"], ["nonce", #], ["updated_at", "2015-01-05 21:25:41.012813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:41.016191"], ["nonce", #], ["updated_at", "2015-01-05 21:25:41.016191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:41.018144"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:25:41.018144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 56) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 56 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:25:41.019434"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:41.023858"], ["nonce", #], ["updated_at", "2015-01-05 21:25:41.023858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:25:41.027424"], ["nonce", #], ["updated_at", "2015-01-05 21:25:41.027424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.082495"], ["nonce", #], ["updated_at", "2015-01-05 21:30:51.082495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.100321"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:30:51.100321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 57) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 57 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:30:51.102554"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 28ms (ActiveRecord: 5.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.107862"], ["nonce", #], ["updated_at", "2015-01-05 21:30:51.107862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.118165"], ["nonce", #], ["updated_at", "2015-01-05 21:30:51.118165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.121643"], ["nonce", #], ["updated_at", "2015-01-05 21:30:51.121643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.123813"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:30:51.123813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 58) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 58 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:30:51.125574"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.129726"], ["nonce", #], ["updated_at", "2015-01-05 21:30:51.129726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.131910"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:30:51.131910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 59) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 59 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:30:51.133266"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.137100"], ["nonce", #], ["updated_at", "2015-01-05 21:30:51.137100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.139141"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:30:51.139141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 60) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 60 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:30:51.140478"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.144822"], ["nonce", #], ["updated_at", "2015-01-05 21:30:51.144822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.149867"], ["nonce", #], ["updated_at", "2015-01-05 21:30:51.149867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:51.154517"], ["nonce", #], ["updated_at", "2015-01-05 21:30:51.154517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.275643"], ["nonce", "100"], ["updated_at", "2015-01-05 21:30:54.275643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.279168"], ["nonce", "100"], ["updated_at", "2015-01-05 21:30:54.279168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.280024"], ["nonce", "100"], ["updated_at", "2015-01-05 21:30:54.280024"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:30:54.298938"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:30:54.298938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:30:54.304093"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:30:54.304093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:30:54.306330"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:30:54.306330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.321278"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:30:54.321278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:30:54.327248"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:30:54.327248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 65]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:30:54.329960"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:30:54.329960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 66]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.364087"], ["nonce", #], ["updated_at", "2015-01-05 21:30:54.364087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.366537"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:30:54.366537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 67) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 67 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:30:54.368351"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.372707"], ["nonce", #], ["updated_at", "2015-01-05 21:30:54.372707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.377899"], ["nonce", #], ["updated_at", "2015-01-05 21:30:54.377899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.381136"], ["nonce", #], ["updated_at", "2015-01-05 21:30:54.381136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.382841"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:30:54.382841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 68) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 68 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:30:54.383993"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.390572"], ["nonce", #], ["updated_at", "2015-01-05 21:30:54.390572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.392422"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:30:54.392422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 69) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 69 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:30:54.393606"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.404838"], ["nonce", #], ["updated_at", "2015-01-05 21:30:54.404838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.408650"], ["nonce", #], ["updated_at", "2015-01-05 21:30:54.408650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.410595"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:30:54.410595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 70) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 70 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:30:54.411833"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.415711"], ["nonce", #], ["updated_at", "2015-01-05 21:30:54.415711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:30:54.419288"], ["nonce", #], ["updated_at", "2015-01-05 21:30:54.419288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (2.7ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.194612"], ["nonce", "100"], ["updated_at", "2015-01-05 21:31:35.194612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.198271"], ["nonce", "100"], ["updated_at", "2015-01-05 21:31:35.198271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.199135"], ["nonce", "100"], ["updated_at", "2015-01-05 21:31:35.199135"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.226285"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:31:35.226285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:31:35.233997"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:31:35.233997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:31:35.236454"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:31:35.236454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:31:35.239277"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:31:35.239277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:31:35.241664"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:31:35.241664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 75]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:31:35.244279"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:31:35.244279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 76]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.252420"], ["nonce", #], ["updated_at", "2015-01-05 21:31:35.252420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.257952"], ["nonce", #], ["updated_at", "2015-01-05 21:31:35.257952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.260061"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:31:35.260061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 77) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 77 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:31:35.261769"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.265642"], ["nonce", #], ["updated_at", "2015-01-05 21:31:35.265642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.267493"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:31:35.267493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 78) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 78 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:31:35.268653"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.271993"], ["nonce", #], ["updated_at", "2015-01-05 21:31:35.271993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.273844"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:31:35.273844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 79) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 79 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:31:35.275318"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.279243"], ["nonce", #], ["updated_at", "2015-01-05 21:31:35.279243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.292563"], ["nonce", #], ["updated_at", "2015-01-05 21:31:35.292563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.294584"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:31:35.294584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 80) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 80 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:31:35.296089"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.300110"], ["nonce", #], ["updated_at", "2015-01-05 21:31:35.300110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.303813"], ["nonce", #], ["updated_at", "2015-01-05 21:31:35.303813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:31:35.307531"], ["nonce", #], ["updated_at", "2015-01-05 21:31:35.307531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.434434"], ["nonce", "100"], ["updated_at", "2015-01-05 21:39:06.434434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.437379"], ["nonce", "100"], ["updated_at", "2015-01-05 21:39:06.437379"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.440022"], ["nonce", "100"], ["updated_at", "2015-01-05 21:39:06.440022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.452258"], ["nonce", #], ["updated_at", "2015-01-05 21:39:06.452258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.456628"], ["nonce", #], ["updated_at", "2015-01-05 21:39:06.456628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.471947"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:39:06.471947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 81) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 81 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:39:06.474235"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 20ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.479534"], ["nonce", #], ["updated_at", "2015-01-05 21:39:06.479534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.481698"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:39:06.481698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 82) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 82 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:39:06.483051"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.486714"], ["nonce", #], ["updated_at", "2015-01-05 21:39:06.486714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.489842"], ["nonce", #], ["updated_at", "2015-01-05 21:39:06.489842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.491630"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:39:06.491630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 83) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 83 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:39:06.492881"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.497514"], ["nonce", #], ["updated_at", "2015-01-05 21:39:06.497514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.501160"], ["nonce", #], ["updated_at", "2015-01-05 21:39:06.501160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.503069"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:39:06.503069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 84) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 84 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:39:06.504384"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.508820"], ["nonce", #], ["updated_at", "2015-01-05 21:39:06.508820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.513360"], ["nonce", #], ["updated_at", "2015-01-05 21:39:06.513360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:39:06.541315"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:39:06.541315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 85]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:39:06.544449"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:39:06.544449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 86]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:39:06.550617"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:39:06.550617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:39:06.569270"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:39:06.569270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:39:06.573764"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:39:06.573764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:39:06.576952"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:39:06.576952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.227397"], ["nonce", "100"], ["updated_at", "2015-01-05 21:40:58.227397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.231525"], ["nonce", "100"], ["updated_at", "2015-01-05 21:40:58.231525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.232383"], ["nonce", "100"], ["updated_at", "2015-01-05 21:40:58.232383"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:40:58.250163"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:40:58.250163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:40:58.254792"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:40:58.254792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:40:58.257160"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:40:58.257160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.270941"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:40:58.270941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:40:58.277155"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:40:58.277155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 95]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:40:58.279874"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:40:58.279874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 96]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.309023"], ["nonce", #], ["updated_at", "2015-01-05 21:40:58.309023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.311263"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:40:58.311263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 97) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 97 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:40:58.313112"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.317802"], ["nonce", #], ["updated_at", "2015-01-05 21:40:58.317802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.319790"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:40:58.319790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 98) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 98 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:40:58.321057"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.324778"], ["nonce", #], ["updated_at", "2015-01-05 21:40:58.324778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.328003"], ["nonce", #], ["updated_at", "2015-01-05 21:40:58.328003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.329959"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:40:58.329959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 99) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 99 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:40:58.331164"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.335277"], ["nonce", #], ["updated_at", "2015-01-05 21:40:58.335277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.351856"], ["nonce", #], ["updated_at", "2015-01-05 21:40:58.351856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.356245"], ["nonce", #], ["updated_at", "2015-01-05 21:40:58.356245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.358091"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:40:58.358091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 100) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 100 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:40:58.359560"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.363593"], ["nonce", #], ["updated_at", "2015-01-05 21:40:58.363593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:40:58.367683"], ["nonce", #], ["updated_at", "2015-01-05 21:40:58.367683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.168798"], ["nonce", #], ["updated_at", "2015-01-05 21:46:39.168798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.181139"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:46:39.181139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:46:39.183654"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 4.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.188399"], ["nonce", #], ["updated_at", "2015-01-05 21:46:39.188399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.190463"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:46:39.190463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:46:39.191989"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.195952"], ["nonce", #], ["updated_at", "2015-01-05 21:46:39.195952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.199947"], ["nonce", #], ["updated_at", "2015-01-05 21:46:39.199947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.201934"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:46:39.201934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:46:39.203420"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.209560"], ["nonce", #], ["updated_at", "2015-01-05 21:46:39.209560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.223773"], ["nonce", #], ["updated_at", "2015-01-05 21:46:39.223773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.228105"], ["nonce", #], ["updated_at", "2015-01-05 21:46:39.228105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.230066"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:46:39.230066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:46:39.231342"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.235302"], ["nonce", #], ["updated_at", "2015-01-05 21:46:39.235302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.238953"], ["nonce", #], ["updated_at", "2015-01-05 21:46:39.238953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.254025"], ["nonce", "100"], ["updated_at", "2015-01-05 21:46:39.254025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.255624"], ["nonce", "100"], ["updated_at", "2015-01-05 21:46:39.255624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.256432"], ["nonce", "100"], ["updated_at", "2015-01-05 21:46:39.256432"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:46:39.264684"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:46:39.264684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:46:39.269884"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:46:39.269884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:46:39.272738"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:46:39.272738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:46:39.284482"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:46:39.284482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:46:39.291983"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:46:39.291983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:46:39.294968"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:46:39.294968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.776430"], ["nonce", "100"], ["updated_at", "2015-01-05 21:47:46.776430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.779176"], ["nonce", "100"], ["updated_at", "2015-01-05 21:47:46.779176"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.781878"], ["nonce", "100"], ["updated_at", "2015-01-05 21:47:46.781878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.796438"], ["nonce", #], ["updated_at", "2015-01-05 21:47:46.796438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.802135"], ["nonce", #], ["updated_at", "2015-01-05 21:47:46.802135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.816766"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:47:46.816766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:47:46.820653"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 21ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.826466"], ["nonce", #], ["updated_at", "2015-01-05 21:47:46.826466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.828559"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:47:46.828559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:47:46.830045"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.833952"], ["nonce", #], ["updated_at", "2015-01-05 21:47:46.833952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.835892"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:47:46.835892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:47:46.837229"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.841425"], ["nonce", #], ["updated_at", "2015-01-05 21:47:46.841425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.849321"], ["nonce", #], ["updated_at", "2015-01-05 21:47:46.849321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.862769"], ["nonce", #], ["updated_at", "2015-01-05 21:47:46.862769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.869350"], ["nonce", #], ["updated_at", "2015-01-05 21:47:46.869350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.872766"], ["nonce", #], ["updated_at", "2015-01-05 21:47:46.872766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.874850"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:47:46.874850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:47:46.876246"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:47:46.900349"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:47:46.900349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:47:46.904143"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:47:46.904143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:47:46.907273"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:47:46.907273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:47:46.910881"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:47:46.910881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:47:46.913410"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:47:46.913410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:47:46.920506"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:47:46.920506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.416962"], ["nonce", #], ["updated_at", "2015-01-05 21:51:47.416962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.419944"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:51:47.419944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:51:47.421911"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.431789"], ["nonce", #], ["updated_at", "2015-01-05 21:51:47.431789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.434007"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:51:47.434007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:51:47.435428"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.439410"], ["nonce", #], ["updated_at", "2015-01-05 21:51:47.439410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.443264"], ["nonce", #], ["updated_at", "2015-01-05 21:51:47.443264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.445312"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:51:47.445312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:51:47.446665"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 14ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.459908"], ["nonce", #], ["updated_at", "2015-01-05 21:51:47.459908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.464002"], ["nonce", #], ["updated_at", "2015-01-05 21:51:47.464002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.467900"], ["nonce", #], ["updated_at", "2015-01-05 21:51:47.467900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.469885"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-05 21:51:47.469885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-05 21:51:47.471131"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.475204"], ["nonce", #], ["updated_at", "2015-01-05 21:51:47.475204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.479952"], ["nonce", #], ["updated_at", "2015-01-05 21:51:47.479952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.514804"], ["nonce", "100"], ["updated_at", "2015-01-05 21:51:47.514804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.515793"], ["nonce", "100"], ["updated_at", "2015-01-05 21:51:47.515793"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.517583"], ["nonce", "100"], ["updated_at", "2015-01-05 21:51:47.517583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-05 21:51:47.532108"], ["lti_user_id", "a"], ["updated_at", "2015-01-05 21:51:47.532108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:51:47.541691"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-05 21:51:47.541691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:51:47.544620"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-05 21:51:47.544620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 7]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:51:47.547243"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:51:47.547243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:51:47.551477"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:51:47.551477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-05 21:51:47.553954"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-05 21:51:47.553954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.063646"], ["nonce", #], ["updated_at", "2015-01-06 16:23:33.063646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.067049"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-06 16:23:33.067049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-06 16:23:33.069498"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.074017"], ["nonce", #], ["updated_at", "2015-01-06 16:23:33.074017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.088525"], ["nonce", #], ["updated_at", "2015-01-06 16:23:33.088525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.095386"], ["nonce", #], ["updated_at", "2015-01-06 16:23:33.095386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.097245"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-06 16:23:33.097245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-06 16:23:33.098400"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.102171"], ["nonce", #], ["updated_at", "2015-01-06 16:23:33.102171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.104019"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-06 16:23:33.104019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-06 16:23:33.105179"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.116892"], ["nonce", #], ["updated_at", "2015-01-06 16:23:33.116892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.118825"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-06 16:23:33.118825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-06 16:23:33.119985"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.124236"], ["nonce", #], ["updated_at", "2015-01-06 16:23:33.124236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.128411"], ["nonce", #], ["updated_at", "2015-01-06 16:23:33.128411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.134002"], ["nonce", #], ["updated_at", "2015-01-06 16:23:33.134002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.140143"], ["nonce", "100"], ["updated_at", "2015-01-06 16:23:33.140143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.142478"], ["nonce", "100"], ["updated_at", "2015-01-06 16:23:33.142478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.143455"], ["nonce", "100"], ["updated_at", "2015-01-06 16:23:33.143455"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:23:33.166855"], ["lti_user_id", "a"], ["updated_at", "2015-01-06 16:23:33.166855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:23:33.176852"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-06 16:23:33.176852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:23:33.179379"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-06 16:23:33.179379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:23:33.181566"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-06 16:23:33.181566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:23:33.184192"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-06 16:23:33.184192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:23:33.186746"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-06 16:23:33.186746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.496834"], ["nonce", "100"], ["updated_at", "2015-01-06 16:25:10.496834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.499041"], ["nonce", "100"], ["updated_at", "2015-01-06 16:25:10.499041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.499807"], ["nonce", "100"], ["updated_at", "2015-01-06 16:25:10.499807"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:25:10.514437"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-06 16:25:10.514437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:25:10.519218"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-06 16:25:10.519218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:25:10.521599"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-01-06 16:25:10.521599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.533118"], ["lti_user_id", "a"], ["updated_at", "2015-01-06 16:25:10.533118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:25:10.539684"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-01-06 16:25:10.539684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-06 16:25:10.542733"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-01-06 16:25:10.542733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.550191"], ["nonce", #], ["updated_at", "2015-01-06 16:25:10.550191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.555606"], ["nonce", #], ["updated_at", "2015-01-06 16:25:10.555606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.558059"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-06 16:25:10.558059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-06 16:25:10.559981"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.564207"], ["nonce", #], ["updated_at", "2015-01-06 16:25:10.564207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.567528"], ["nonce", #], ["updated_at", "2015-01-06 16:25:10.567528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.569342"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-06 16:25:10.569342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-06 16:25:10.570493"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.573986"], ["nonce", #], ["updated_at", "2015-01-06 16:25:10.573986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.575850"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-06 16:25:10.575850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-06 16:25:10.576974"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.591417"], ["nonce", #], ["updated_at", "2015-01-06 16:25:10.591417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.594756"], ["nonce", #], ["updated_at", "2015-01-06 16:25:10.594756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.596576"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-01-06 16:25:10.596576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-01-06 16:25:10.597713"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.602070"], ["nonce", #], ["updated_at", "2015-01-06 16:25:10.602070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-06 16:25:10.606250"], ["nonce", #], ["updated_at", "2015-01-06 16:25:10.606250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (1.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (3.7ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (1.1ms) DELETE FROM "dce_lti_nonces";  (0.7ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:21.969020"], ["nonce", #], ["updated_at", "2015-02-04 21:27:21.969020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.7ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:21.982104"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:27:21.982104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.6ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:27:21.986694"], ["user_image", #]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 28ms (ActiveRecord: 6.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:21.996490"], ["nonce", #], ["updated_at", "2015-02-04 21:27:21.996490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.001129"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:27:22.001129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:27:22.004042"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.021647"], ["nonce", #], ["updated_at", "2015-02-04 21:27:22.021647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.029861"], ["nonce", #], ["updated_at", "2015-02-04 21:27:22.029861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.033926"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:27:22.033926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:27:22.037578"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.045812"], ["nonce", #], ["updated_at", "2015-02-04 21:27:22.045812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.072169"], ["nonce", #], ["updated_at", "2015-02-04 21:27:22.072169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.080009"], ["nonce", #], ["updated_at", "2015-02-04 21:27:22.080009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.084595"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:27:22.084595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:27:22.087424"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.096129"], ["nonce", #], ["updated_at", "2015-02-04 21:27:22.096129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.103990"], ["nonce", #], ["updated_at", "2015-02-04 21:27:22.103990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.132913"], ["nonce", "100"], ["updated_at", "2015-02-04 21:27:22.132913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.136356"], ["nonce", "100"], ["updated_at", "2015-02-04 21:27:22.136356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.137870"], ["nonce", "100"], ["updated_at", "2015-02-04 21:27:22.137870"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:22.158118"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:27:22.158118"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:22.167472"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:27:22.167472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:22.172866"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:27:22.172866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.6ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:22.199915"], ["lti_user_id", "a"], ["updated_at", "2015-02-04 21:27:22.199915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:22.213251"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-04 21:27:22.213251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 29]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:22.220575"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-04 21:27:22.220575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 30]]  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.737693"], ["nonce", "100"], ["updated_at", "2015-02-04 21:27:28.737693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.746050"], ["nonce", "100"], ["updated_at", "2015-02-04 21:27:28.746050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.747892"], ["nonce", "100"], ["updated_at", "2015-02-04 21:27:28.747892"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.814931"], ["nonce", #], ["updated_at", "2015-02-04 21:27:28.814931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.832164"], ["nonce", #], ["updated_at", "2015-02-04 21:27:28.832164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.876134"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:27:28.876134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 31) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 31 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:27:28.880583"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 53ms (ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.890489"], ["nonce", #], ["updated_at", "2015-02-04 21:27:28.890489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.898540"], ["nonce", #], ["updated_at", "2015-02-04 21:27:28.898540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.902976"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:27:28.902976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 32) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 32 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:27:28.906568"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.914644"], ["nonce", #], ["updated_at", "2015-02-04 21:27:28.914644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.918966"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:27:28.918966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 33) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 33 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:27:28.921630"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.946954"], ["nonce", #], ["updated_at", "2015-02-04 21:27:28.946954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.951937"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:27:28.951937"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:27:28.954941"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 11ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.963603"], ["nonce", #], ["updated_at", "2015-02-04 21:27:28.963603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.971963"], ["nonce", #], ["updated_at", "2015-02-04 21:27:28.971963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:28.981805"], ["nonce", #], ["updated_at", "2015-02-04 21:27:28.981805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.6ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:27:29.010429"], ["lti_user_id", "a"], ["updated_at", "2015-02-04 21:27:29.010429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:29.030654"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-04 21:27:29.030654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 36]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:29.036905"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-04 21:27:29.036905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 37]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:29.046605"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:27:29.046605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:29.051935"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:27:29.051935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:27:29.056903"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:27:29.056903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.5ms) DELETE FROM "dce_lti_nonces";  (0.4ms) DELETE FROM "dce_lti_users";  (0.3ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 7ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.102536"], ["nonce", #], ["updated_at", "2015-02-04 21:32:27.102536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.112069"], ["nonce", #], ["updated_at", "2015-02-04 21:32:27.112069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.116434"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:32:27.116434"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 41) LIMIT 1 SQL (0.6ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 41 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:32:27.120838"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.130027"], ["nonce", #], ["updated_at", "2015-02-04 21:32:27.130027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.134433"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:32:27.134433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:32:27.137265"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.153950"], ["nonce", #], ["updated_at", "2015-02-04 21:32:27.153950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.158558"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:32:27.158558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:32:27.161506"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.169575"], ["nonce", #], ["updated_at", "2015-02-04 21:32:27.169575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.179025"], ["nonce", #], ["updated_at", "2015-02-04 21:32:27.179025"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.201750"], ["nonce", #], ["updated_at", "2015-02-04 21:32:27.201750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.209244"], ["nonce", #], ["updated_at", "2015-02-04 21:32:27.209244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.213339"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:32:27.213339"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:32:27.216477"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 10ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.225076"], ["nonce", #], ["updated_at", "2015-02-04 21:32:27.225076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.258243"], ["nonce", "100"], ["updated_at", "2015-02-04 21:32:27.258243"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.260323"], ["nonce", "100"], ["updated_at", "2015-02-04 21:32:27.260323"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.263864"], ["nonce", "100"], ["updated_at", "2015-02-04 21:32:27.263864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:32:27.273932"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-04 21:32:27.273932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 45]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:32:27.280286"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-04 21:32:27.280286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 46]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.6ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:32:27.290433"], ["lti_user_id", "a"], ["updated_at", "2015-02-04 21:32:27.290433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:32:27.319460"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:32:27.319460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:32:27.326723"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:32:27.326723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:32:27.334153"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:32:27.334153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.567253"], ["nonce", "100"], ["updated_at", "2015-02-04 21:35:55.567253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.575984"], ["nonce", "100"], ["updated_at", "2015-02-04 21:35:55.575984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.578149"], ["nonce", "100"], ["updated_at", "2015-02-04 21:35:55.578149"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:35:55.627511"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:35:55.627511"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:35:55.635972"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:35:55.635972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:35:55.643728"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:35:55.643728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:35:55.649581"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-04 21:35:55.649581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 54]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:35:55.658193"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-04 21:35:55.658193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 55]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.6ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.681693"], ["lti_user_id", "a"], ["updated_at", "2015-02-04 21:35:55.681693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.720641"], ["nonce", #], ["updated_at", "2015-02-04 21:35:55.720641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.724988"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:35:55.724988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 57) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 57 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:35:55.728703"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 12ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.738039"], ["nonce", #], ["updated_at", "2015-02-04 21:35:55.738039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.742203"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:35:55.742203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 58) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 58 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:35:55.745066"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.769103"], ["nonce", #], ["updated_at", "2015-02-04 21:35:55.769103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.776794"], ["nonce", #], ["updated_at", "2015-02-04 21:35:55.776794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.785007"], ["nonce", #], ["updated_at", "2015-02-04 21:35:55.785007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.789260"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:35:55.789260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 59) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 59 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:35:55.792189"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.817619"], ["nonce", #], ["updated_at", "2015-02-04 21:35:55.817619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.827047"], ["nonce", #], ["updated_at", "2015-02-04 21:35:55.827047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.834593"], ["nonce", #], ["updated_at", "2015-02-04 21:35:55.834593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.839305"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:35:55.839305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 60) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 60 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:35:55.842327"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 11ms (ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:35:55.852162"], ["nonce", #], ["updated_at", "2015-02-04 21:35:55.852162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 11ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 9ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:05.966719"], ["nonce", "100"], ["updated_at", "2015-02-04 21:37:05.966719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:05.973071"], ["nonce", "100"], ["updated_at", "2015-02-04 21:37:05.973071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:05.975123"], ["nonce", "100"], ["updated_at", "2015-02-04 21:37:05.975123"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.010443"], ["lti_user_id", "a"], ["updated_at", "2015-02-04 21:37:06.010443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:06.023986"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:37:06.023986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:06.033527"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:37:06.033527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:06.039591"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:37:06.039591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:06.045086"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-04 21:37:06.045086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 65]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:06.051187"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-04 21:37:06.051187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 66]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.060611"], ["nonce", #], ["updated_at", "2015-02-04 21:37:06.060611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.068539"], ["nonce", #], ["updated_at", "2015-02-04 21:37:06.068539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.079288"], ["nonce", #], ["updated_at", "2015-02-04 21:37:06.079288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.083659"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:37:06.083659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 67) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 67 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:37:06.087342"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 12ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.095868"], ["nonce", #], ["updated_at", "2015-02-04 21:37:06.095868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.099946"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:37:06.099946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 68) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 68 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:37:06.102862"], ["user_image", #]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.111235"], ["nonce", #], ["updated_at", "2015-02-04 21:37:06.111235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.115667"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:37:06.115667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 69) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 69 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:37:06.118715"], ["user_image", #]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.150182"], ["nonce", #], ["updated_at", "2015-02-04 21:37:06.150182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.157628"], ["nonce", #], ["updated_at", "2015-02-04 21:37:06.157628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.161759"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:37:06.161759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 70) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 70 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:37:06.164672"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.173241"], ["nonce", #], ["updated_at", "2015-02-04 21:37:06.173241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:06.228144"], ["nonce", #], ["updated_at", "2015-02-04 21:37:06.228144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.1ms) Completed 200 OK in 10ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 9ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.407926"], ["nonce", "100"], ["updated_at", "2015-02-04 21:37:29.407926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.413713"], ["nonce", "100"], ["updated_at", "2015-02-04 21:37:29.413713"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.419181"], ["nonce", "100"], ["updated_at", "2015-02-04 21:37:29.419181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.471214"], ["nonce", #], ["updated_at", "2015-02-04 21:37:29.471214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.479289"], ["nonce", #], ["updated_at", "2015-02-04 21:37:29.479289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.6ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.484114"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:37:29.484114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 71) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 71 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:37:29.488250"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.497020"], ["nonce", #], ["updated_at", "2015-02-04 21:37:29.497020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.501120"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:37:29.501120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 72) LIMIT 1 SQL (0.6ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 72 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:37:29.503768"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.520082"], ["nonce", #], ["updated_at", "2015-02-04 21:37:29.520082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.528421"], ["nonce", #], ["updated_at", "2015-02-04 21:37:29.528421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.532676"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:37:29.532676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.5ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 73) LIMIT 1 SQL (0.7ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 73 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:37:29.535968"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.545423"], ["nonce", #], ["updated_at", "2015-02-04 21:37:29.545423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.554752"], ["nonce", #], ["updated_at", "2015-02-04 21:37:29.554752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.561971"], ["nonce", #], ["updated_at", "2015-02-04 21:37:29.561971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.566153"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:37:29.566153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 74) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 74 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:37:29.569136"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 10ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.577739"], ["nonce", #], ["updated_at", "2015-02-04 21:37:29.577739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.6ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:37:29.617015"], ["lti_user_id", "a"], ["updated_at", "2015-02-04 21:37:29.617015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:29.638098"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-04 21:37:29.638098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 76]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:29.645532"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-04 21:37:29.645532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 77]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:29.651705"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:37:29.651705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:29.661185"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:37:29.661185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:37:29.669574"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:37:29.669574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.3ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.5ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.5ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.5ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.4ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:13.945595"], ["nonce", #], ["updated_at", "2015-02-04 21:44:13.945595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.5ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:13.961612"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:44:13.961612"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:44:13.966100"], ["user_image", #]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 31ms (ActiveRecord: 6.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:13.975946"], ["nonce", #], ["updated_at", "2015-02-04 21:44:13.975946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:13.999316"], ["nonce", #], ["updated_at", "2015-02-04 21:44:13.999316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.006764"], ["nonce", #], ["updated_at", "2015-02-04 21:44:14.006764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.011072"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:44:14.011072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:44:14.014025"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.021982"], ["nonce", #], ["updated_at", "2015-02-04 21:44:14.021982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.026210"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:44:14.026210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:44:14.029104"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.067801"], ["nonce", #], ["updated_at", "2015-02-04 21:44:14.067801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.072268"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:44:14.072268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:44:14.075123"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.084183"], ["nonce", #], ["updated_at", "2015-02-04 21:44:14.084183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.092583"], ["nonce", #], ["updated_at", "2015-02-04 21:44:14.092583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.101861"], ["nonce", #], ["updated_at", "2015-02-04 21:44:14.101861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.8ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.125023"], ["lti_user_id", "a"], ["updated_at", "2015-02-04 21:44:14.125023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:14.146297"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-04 21:44:14.146297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:14.152675"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-04 21:44:14.152675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 7]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:14.162828"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:44:14.162828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:14.168208"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:44:14.168208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:14.173331"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:44:14.173331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.223098"], ["nonce", "100"], ["updated_at", "2015-02-04 21:44:14.223098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.226792"], ["nonce", "100"], ["updated_at", "2015-02-04 21:44:14.226792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:14.228371"], ["nonce", "100"], ["updated_at", "2015-02-04 21:44:14.228371"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.5ms) DELETE FROM "dce_lti_nonces";  (0.4ms) DELETE FROM "dce_lti_users";  (0.3ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 9ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.387049"], ["nonce", "100"], ["updated_at", "2015-02-04 21:44:33.387049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.392744"], ["nonce", "100"], ["updated_at", "2015-02-04 21:44:33.392744"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.398999"], ["nonce", "100"], ["updated_at", "2015-02-04 21:44:33.398999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.409762"], ["nonce", #], ["updated_at", "2015-02-04 21:44:33.409762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.5ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.437266"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:44:33.437266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.6ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:44:33.441881"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 36ms (ActiveRecord: 5.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.459611"], ["nonce", #], ["updated_at", "2015-02-04 21:44:33.459611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.463981"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:44:33.463981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.7ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:44:33.468309"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.479031"], ["nonce", #], ["updated_at", "2015-02-04 21:44:33.479031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.487743"], ["nonce", #], ["updated_at", "2015-02-04 21:44:33.487743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.495119"], ["nonce", #], ["updated_at", "2015-02-04 21:44:33.495119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.499223"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:44:33.499223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:44:33.515224"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.524128"], ["nonce", #], ["updated_at", "2015-02-04 21:44:33.524128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.531049"], ["nonce", #], ["updated_at", "2015-02-04 21:44:33.531049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.534758"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-04 21:44:33.534758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-04 21:44:33.537730"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.547536"], ["nonce", #], ["updated_at", "2015-02-04 21:44:33.547536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.557149"], ["nonce", #], ["updated_at", "2015-02-04 21:44:33.557149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (2.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:33.642990"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-04 21:44:33.642990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:33.649527"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-04 21:44:33.649527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-04 21:44:33.659093"], ["lti_user_id", "a"], ["updated_at", "2015-02-04 21:44:33.659093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:33.693280"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:44:33.693280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:33.702590"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:44:33.702590"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-04 21:44:33.708292"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-04 21:44:33.708292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (3.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.7ms) DELETE FROM "dce_lti_nonces";  (0.4ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:03.940953"], ["nonce", #], ["updated_at", "2015-02-11 15:22:03.940953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:03.960210"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:03.960210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:03.962745"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 30ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:03.967222"], ["nonce", #], ["updated_at", "2015-02-11 15:22:03.967222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:03.980520"], ["nonce", #], ["updated_at", "2015-02-11 15:22:03.980520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:03.984751"], ["nonce", #], ["updated_at", "2015-02-11 15:22:03.984751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:03.987123"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:03.987123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:03.988595"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:03.992365"], ["nonce", #], ["updated_at", "2015-02-11 15:22:03.992365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:03.994366"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:03.994366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:03.995710"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:04.000111"], ["nonce", #], ["updated_at", "2015-02-11 15:22:04.000111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:04.003723"], ["nonce", #], ["updated_at", "2015-02-11 15:22:04.003723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:04.005650"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:04.005650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:04.006920"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:04.011492"], ["nonce", #], ["updated_at", "2015-02-11 15:22:04.011492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:04.015380"], ["nonce", #], ["updated_at", "2015-02-11 15:22:04.015380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 8ms (Views: 8.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.355950"], ["nonce", #], ["updated_at", "2015-02-11 15:22:09.355950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.372652"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:09.372652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 15) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 15 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:09.374902"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 26ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.386639"], ["nonce", #], ["updated_at", "2015-02-11 15:22:09.386639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.388842"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:09.388842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 16) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 16 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:09.390120"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.393852"], ["nonce", #], ["updated_at", "2015-02-11 15:22:09.393852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.396641"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:09.396641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:09.398462"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.402346"], ["nonce", #], ["updated_at", "2015-02-11 15:22:09.402346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.406563"], ["nonce", #], ["updated_at", "2015-02-11 15:22:09.406563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.427733"], ["nonce", #], ["updated_at", "2015-02-11 15:22:09.427733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.431335"], ["nonce", #], ["updated_at", "2015-02-11 15:22:09.431335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.433431"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:09.433431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:09.434806"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.438925"], ["nonce", #], ["updated_at", "2015-02-11 15:22:09.438925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.443469"], ["nonce", #], ["updated_at", "2015-02-11 15:22:09.443469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.449394"], ["nonce", "100"], ["updated_at", "2015-02-11 15:22:09.449394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.450836"], ["nonce", "100"], ["updated_at", "2015-02-11 15:22:09.450836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.451579"], ["nonce", "100"], ["updated_at", "2015-02-11 15:22:09.451579"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:22:09.487415"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:22:09.487415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:22:09.491825"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:22:09.491825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:22:09.494242"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:22:09.494242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:09.511769"], ["lti_user_id", "a"], ["updated_at", "2015-02-11 15:22:09.511769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:22:09.518439"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-11 15:22:09.518439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 23]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:22:09.521246"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-11 15:22:09.521246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 24]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:25.730477"], ["nonce", #], ["updated_at", "2015-02-11 15:22:25.730477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:25.746389"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:25.746389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 25) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 25 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:25.748791"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 26ms  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.318089"], ["nonce", #], ["updated_at", "2015-02-11 15:22:40.318089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 13ms (Views: 4.1ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.328786"], ["nonce", #], ["updated_at", "2015-02-11 15:22:40.328786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.349570"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:40.349570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 26) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 26 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:40.351849"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 25ms (ActiveRecord: 4.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.356353"], ["nonce", #], ["updated_at", "2015-02-11 15:22:40.356353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.358348"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:40.358348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:40.359652"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.366149"], ["nonce", #], ["updated_at", "2015-02-11 15:22:40.366149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.369392"], ["nonce", #], ["updated_at", "2015-02-11 15:22:40.369392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.371238"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:40.371238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:40.372707"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.378075"], ["nonce", #], ["updated_at", "2015-02-11 15:22:40.378075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.382254"], ["nonce", #], ["updated_at", "2015-02-11 15:22:40.382254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.384364"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:40.384364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:40.385763"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.389930"], ["nonce", #], ["updated_at", "2015-02-11 15:22:40.389930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:40.394295"], ["nonce", #], ["updated_at", "2015-02-11 15:22:40.394295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.5ms) DELETE FROM "dce_lti_nonces";  (0.3ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.123821"], ["nonce", #], ["updated_at", "2015-02-11 15:22:50.123821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.140468"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:50.140468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:50.142782"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 27ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.147666"], ["nonce", #], ["updated_at", "2015-02-11 15:22:50.147666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.149847"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:50.149847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 31) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 31 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:50.151245"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.154821"], ["nonce", #], ["updated_at", "2015-02-11 15:22:50.154821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.156743"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:50.156743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 32) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 32 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:50.158026"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.169307"], ["nonce", #], ["updated_at", "2015-02-11 15:22:50.169307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.172893"], ["nonce", #], ["updated_at", "2015-02-11 15:22:50.172893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.177825"], ["nonce", #], ["updated_at", "2015-02-11 15:22:50.177825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.181337"], ["nonce", #], ["updated_at", "2015-02-11 15:22:50.181337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.185728"], ["nonce", #], ["updated_at", "2015-02-11 15:22:50.185728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.189198"], ["nonce", #], ["updated_at", "2015-02-11 15:22:50.189198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:22:50.191295"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:22:50.191295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 33) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 33 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:22:50.192891"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:13.105408"], ["nonce", #], ["updated_at", "2015-02-11 15:23:13.105408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:13.121555"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:23:13.121555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:23:13.123671"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 26ms (ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:20.227308"], ["nonce", #], ["updated_at", "2015-02-11 15:23:20.227308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:20.243884"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:23:20.243884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 35) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 35 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:23:20.246263"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 26ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:33.580287"], ["nonce", #], ["updated_at", "2015-02-11 15:23:33.580287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:33.596793"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:23:33.596793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 36) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 36 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:23:33.599103"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 26ms (ActiveRecord: 4.9ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.520545"], ["nonce", #], ["updated_at", "2015-02-11 15:23:36.520545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 13ms (Views: 4.6ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.531627"], ["nonce", #], ["updated_at", "2015-02-11 15:23:36.531627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.546537"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:23:36.546537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:23:36.549251"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 20ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.553854"], ["nonce", #], ["updated_at", "2015-02-11 15:23:36.553854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.555913"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:23:36.555913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:23:36.557190"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.563830"], ["nonce", #], ["updated_at", "2015-02-11 15:23:36.563830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.566946"], ["nonce", #], ["updated_at", "2015-02-11 15:23:36.566946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.569120"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:23:36.569120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:23:36.570820"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.575314"], ["nonce", #], ["updated_at", "2015-02-11 15:23:36.575314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.578597"], ["nonce", #], ["updated_at", "2015-02-11 15:23:36.578597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.580517"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:23:36.580517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 40) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 40 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:23:36.581787"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.586600"], ["nonce", #], ["updated_at", "2015-02-11 15:23:36.586600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:23:36.590822"], ["nonce", #], ["updated_at", "2015-02-11 15:23:36.590822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:24:16.681861"], ["nonce", #], ["updated_at", "2015-02-11 15:24:16.681861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:24:16.697724"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:24:16.697724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 41) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 41 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:24:16.699854"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 25ms (ActiveRecord: 4.7ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:24:28.909186"], ["nonce", #], ["updated_at", "2015-02-11 15:24:28.909186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:24:28.925453"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:24:28.925453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:24:28.927724"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 26ms (ActiveRecord: 4.8ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.220111"], ["nonce", #], ["updated_at", "2015-02-11 15:26:27.220111"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.236805"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:26:27.236805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:26:27.239394"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 27ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.244239"], ["nonce", #], ["updated_at", "2015-02-11 15:26:27.244239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.247646"], ["nonce", #], ["updated_at", "2015-02-11 15:26:27.247646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.255702"], ["nonce", #], ["updated_at", "2015-02-11 15:26:27.255702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.257744"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:26:27.257744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:26:27.259225"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.266288"], ["nonce", #], ["updated_at", "2015-02-11 15:26:27.266288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.268308"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:26:27.268308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 45) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 45 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:26:27.269597"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.282085"], ["nonce", #], ["updated_at", "2015-02-11 15:26:27.282085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.284273"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:26:27.284273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 46) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 46 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:26:27.285635"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.290203"], ["nonce", #], ["updated_at", "2015-02-11 15:26:27.290203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.301694"], ["nonce", #], ["updated_at", "2015-02-11 15:26:27.301694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:27.305959"], ["nonce", #], ["updated_at", "2015-02-11 15:26:27.305959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:34.263738"], ["nonce", #], ["updated_at", "2015-02-11 15:26:34.263738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:34.280023"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:26:34.280023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 47) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 47 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:26:34.282185"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 26ms (ActiveRecord: 5.1ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:52.433075"], ["nonce", #], ["updated_at", "2015-02-11 15:26:52.433075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:26:52.450525"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:26:52.450525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 48) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 48 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:26:52.452780"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 27ms (ActiveRecord: 4.8ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.099978"], ["nonce", #], ["updated_at", "2015-02-11 15:27:07.099978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.106896"], ["nonce", #], ["updated_at", "2015-02-11 15:27:07.106896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.122292"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:27:07.122292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 49) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 49 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:27:07.125181"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.130032"], ["nonce", #], ["updated_at", "2015-02-11 15:27:07.130032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.132128"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:27:07.132128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 50) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 50 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:27:07.133479"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.137116"], ["nonce", #], ["updated_at", "2015-02-11 15:27:07.137116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.138916"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:27:07.138916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 51) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 51 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:27:07.140099"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.143582"], ["nonce", #], ["updated_at", "2015-02-11 15:27:07.143582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.155712"], ["nonce", #], ["updated_at", "2015-02-11 15:27:07.155712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.157880"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:27:07.157880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 52) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 52 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:27:07.159174"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.164337"], ["nonce", #], ["updated_at", "2015-02-11 15:27:07.164337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.176222"], ["nonce", #], ["updated_at", "2015-02-11 15:27:07.176222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:07.179976"], ["nonce", #], ["updated_at", "2015-02-11 15:27:07.179976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:22.166628"], ["nonce", #], ["updated_at", "2015-02-11 15:27:22.166628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:27:22.183453"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:27:22.183453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 53) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 53 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:27:22.185753"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 27ms  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:25.324012"], ["nonce", #], ["updated_at", "2015-02-11 15:28:25.324012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:25.342930"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:25.342930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 54) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 54 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:25.346013"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 30ms (ActiveRecord: 5.1ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:27.966572"], ["nonce", #], ["updated_at", "2015-02-11 15:28:27.966572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:27.973714"], ["nonce", #], ["updated_at", "2015-02-11 15:28:27.973714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:27.985710"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:27.985710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 55) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 55 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:27.987908"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:27.993209"], ["nonce", #], ["updated_at", "2015-02-11 15:28:27.993209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:27.995651"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:27.995651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 56) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 56 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:27.997073"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:28.000962"], ["nonce", #], ["updated_at", "2015-02-11 15:28:28.000962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:28.009029"], ["nonce", #], ["updated_at", "2015-02-11 15:28:28.009029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:28.011449"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:28.011449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 57) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 57 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:28.013247"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:28.029872"], ["nonce", #], ["updated_at", "2015-02-11 15:28:28.029872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:28.035246"], ["nonce", #], ["updated_at", "2015-02-11 15:28:28.035246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:28.038826"], ["nonce", #], ["updated_at", "2015-02-11 15:28:28.038826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:28.048310"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:28.048310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 58) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 58 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:28.049965"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 13ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:28.054607"], ["nonce", #], ["updated_at", "2015-02-11 15:28:28.054607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.931068"], ["nonce", #], ["updated_at", "2015-02-11 15:28:30.931068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.6ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.941205"], ["nonce", #], ["updated_at", "2015-02-11 15:28:30.941205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.955618"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:30.955618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 59) LIMIT 1 SQL (8.0ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 59 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:30.958189"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 10.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.970482"], ["nonce", #], ["updated_at", "2015-02-11 15:28:30.970482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.972442"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:30.972442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 60) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 60 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:30.973579"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.977168"], ["nonce", #], ["updated_at", "2015-02-11 15:28:30.977168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.978986"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:30.978986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 61) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 61 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:30.980136"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.983645"], ["nonce", #], ["updated_at", "2015-02-11 15:28:30.983645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.987442"], ["nonce", #], ["updated_at", "2015-02-11 15:28:30.987442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.989287"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:30.989287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 62) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 62 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:30.990440"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.994383"], ["nonce", #], ["updated_at", "2015-02-11 15:28:30.994383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:30.998531"], ["nonce", #], ["updated_at", "2015-02-11 15:28:30.998531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:31.002570"], ["nonce", #], ["updated_at", "2015-02-11 15:28:31.002570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:31.017330"], ["nonce", "100"], ["updated_at", "2015-02-11 15:28:31.017330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:31.018215"], ["nonce", "100"], ["updated_at", "2015-02-11 15:28:31.018215"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:31.019823"], ["nonce", "100"], ["updated_at", "2015-02-11 15:28:31.019823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:31.034399"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-11 15:28:31.034399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 63]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:31.037478"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-11 15:28:31.037478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 64]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:31.042762"], ["lti_user_id", "a"], ["updated_at", "2015-02-11 15:28:31.042762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:31.060420"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:28:31.060420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:31.062975"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:28:31.062975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:31.065386"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:28:31.065386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.579481"], ["nonce", "100"], ["updated_at", "2015-02-11 15:28:35.579481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.582326"], ["nonce", "100"], ["updated_at", "2015-02-11 15:28:35.582326"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.584887"], ["nonce", "100"], ["updated_at", "2015-02-11 15:28:35.584887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.623690"], ["nonce", #], ["updated_at", "2015-02-11 15:28:35.623690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.626247"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:35.626247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 69) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 69 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:35.638165"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.643177"], ["nonce", #], ["updated_at", "2015-02-11 15:28:35.643177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.645258"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:35.645258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 70) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 70 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:35.646723"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.650588"], ["nonce", #], ["updated_at", "2015-02-11 15:28:35.650588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.653900"], ["nonce", #], ["updated_at", "2015-02-11 15:28:35.653900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.655833"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:35.655833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 71) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 71 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:35.657115"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.666042"], ["nonce", #], ["updated_at", "2015-02-11 15:28:35.666042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.670642"], ["nonce", #], ["updated_at", "2015-02-11 15:28:35.670642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.675051"], ["nonce", #], ["updated_at", "2015-02-11 15:28:35.675051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.679347"], ["nonce", #], ["updated_at", "2015-02-11 15:28:35.679347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.682684"], ["nonce", #], ["updated_at", "2015-02-11 15:28:35.682684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.684710"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:28:35.684710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 72) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 72 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:28:35.686037"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:35.699024"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-11 15:28:35.699024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 73]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:35.702019"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-11 15:28:35.702019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 74]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:35.704740"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:28:35.704740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:35.708119"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:28:35.708119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:28:35.710457"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:28:35.710457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:28:35.717498"], ["lti_user_id", "a"], ["updated_at", "2015-02-11 15:28:35.717498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:29:58.693059"], ["nonce", #], ["updated_at", "2015-02-11 15:29:58.693059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:29:58.710253"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:29:58.710253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 79) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 79 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:29:58.712585"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 27ms (ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.760359"], ["nonce", #], ["updated_at", "2015-02-11 15:30:01.760359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.771151"], ["nonce", #], ["updated_at", "2015-02-11 15:30:01.771151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.784616"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:01.784616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 80) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 80 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:01.787931"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.793779"], ["nonce", #], ["updated_at", "2015-02-11 15:30:01.793779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.796360"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:01.796360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 81) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 81 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:01.797945"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.802980"], ["nonce", #], ["updated_at", "2015-02-11 15:30:01.802980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.813968"], ["nonce", #], ["updated_at", "2015-02-11 15:30:01.813968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.816566"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:01.816566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 82) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 82 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:01.818122"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (1.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.836558"], ["nonce", #], ["updated_at", "2015-02-11 15:30:01.836558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.839008"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:01.839008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 83) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 83 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:01.840520"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 14ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.854470"], ["nonce", #], ["updated_at", "2015-02-11 15:30:01.854470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.859866"], ["nonce", #], ["updated_at", "2015-02-11 15:30:01.859866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:01.863985"], ["nonce", #], ["updated_at", "2015-02-11 15:30:01.863985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.476578"], ["nonce", "100"], ["updated_at", "2015-02-11 15:30:10.476578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.480595"], ["nonce", "100"], ["updated_at", "2015-02-11 15:30:10.480595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.481404"], ["nonce", "100"], ["updated_at", "2015-02-11 15:30:10.481404"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.552695"], ["nonce", #], ["updated_at", "2015-02-11 15:30:10.552695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.557892"], ["nonce", #], ["updated_at", "2015-02-11 15:30:10.557892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.560282"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:10.560282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 84) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 84 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:10.562411"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.566843"], ["nonce", #], ["updated_at", "2015-02-11 15:30:10.566843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.569023"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:10.569023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 85) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 85 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:10.570369"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.577278"], ["nonce", #], ["updated_at", "2015-02-11 15:30:10.577278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.579359"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:10.579359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 86) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 86 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:10.580788"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.584466"], ["nonce", #], ["updated_at", "2015-02-11 15:30:10.584466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.596003"], ["nonce", #], ["updated_at", "2015-02-11 15:30:10.596003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.598125"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:10.598125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 87) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 87 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:10.599530"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.603668"], ["nonce", #], ["updated_at", "2015-02-11 15:30:10.603668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.607435"], ["nonce", #], ["updated_at", "2015-02-11 15:30:10.607435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.611521"], ["nonce", #], ["updated_at", "2015-02-11 15:30:10.611521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:10.620886"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:30:10.620886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:10.623702"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:30:10.623702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:10.625917"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:30:10.625917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:10.639654"], ["lti_user_id", "a"], ["updated_at", "2015-02-11 15:30:10.639654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:10.645525"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-11 15:30:10.645525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 92]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:10.648419"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-11 15:30:10.648419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 93]]  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.422699"], ["nonce", #], ["updated_at", "2015-02-11 15:30:22.422699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.440089"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:22.440089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 94) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 94 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:22.442373"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 28ms (ActiveRecord: 4.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.447984"], ["nonce", #], ["updated_at", "2015-02-11 15:30:22.447984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.450134"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:22.450134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 95) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 95 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:22.451446"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.455322"], ["nonce", #], ["updated_at", "2015-02-11 15:30:22.455322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.463157"], ["nonce", #], ["updated_at", "2015-02-11 15:30:22.463157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.470248"], ["nonce", #], ["updated_at", "2015-02-11 15:30:22.470248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.472446"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:22.472446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 96) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 96 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:22.473893"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.479393"], ["nonce", #], ["updated_at", "2015-02-11 15:30:22.479393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.484860"], ["nonce", #], ["updated_at", "2015-02-11 15:30:22.484860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.488964"], ["nonce", #], ["updated_at", "2015-02-11 15:30:22.488964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.491115"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:22.491115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 97) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 97 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:22.492490"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:22.496697"], ["nonce", #], ["updated_at", "2015-02-11 15:30:22.496697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.088693"], ["nonce", "100"], ["updated_at", "2015-02-11 15:30:26.088693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.092717"], ["nonce", "100"], ["updated_at", "2015-02-11 15:30:26.092717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.093633"], ["nonce", "100"], ["updated_at", "2015-02-11 15:30:26.093633"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.101065"], ["nonce", #], ["updated_at", "2015-02-11 15:30:26.101065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.106793"], ["nonce", #], ["updated_at", "2015-02-11 15:30:26.106793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.126699"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:26.126699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 98) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 98 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:26.129006"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 24ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.136466"], ["nonce", #], ["updated_at", "2015-02-11 15:30:26.136466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.138608"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:26.138608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 99) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 99 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:26.139958"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.144129"], ["nonce", #], ["updated_at", "2015-02-11 15:30:26.144129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.147503"], ["nonce", #], ["updated_at", "2015-02-11 15:30:26.147503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.149495"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:26.149495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 100) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 100 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:26.150942"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.162076"], ["nonce", #], ["updated_at", "2015-02-11 15:30:26.162076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.163985"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:30:26.163985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 101) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 101 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:30:26.165231"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.170214"], ["nonce", #], ["updated_at", "2015-02-11 15:30:26.170214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.174211"], ["nonce", #], ["updated_at", "2015-02-11 15:30:26.174211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.178494"], ["nonce", #], ["updated_at", "2015-02-11 15:30:26.178494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:30:26.197504"], ["lti_user_id", "a"], ["updated_at", "2015-02-11 15:30:26.197504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:26.204829"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:30:26.204829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:26.207598"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:30:26.207598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:26.209898"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:30:26.209898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:26.212442"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-11 15:30:26.212442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 106]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:30:26.215191"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-11 15:30:26.215191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 107]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:27.847016"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-11 15:42:27.847016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:27.853311"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-11 15:42:27.853311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.858658"], ["lti_user_id", "a"], ["updated_at", "2015-02-11 15:42:27.858658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:27.876321"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:42:27.876321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:27.880529"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:42:27.880529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:27.882833"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:42:27.882833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.905139"], ["nonce", "100"], ["updated_at", "2015-02-11 15:42:27.905139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.908199"], ["nonce", "100"], ["updated_at", "2015-02-11 15:42:27.908199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.909150"], ["nonce", "100"], ["updated_at", "2015-02-11 15:42:27.909150"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.919181"], ["nonce", #], ["updated_at", "2015-02-11 15:42:27.919181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.922920"], ["nonce", #], ["updated_at", "2015-02-11 15:42:27.922920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.926944"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:42:27.926944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:42:27.928731"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.939779"], ["nonce", #], ["updated_at", "2015-02-11 15:42:27.939779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.943687"], ["nonce", #], ["updated_at", "2015-02-11 15:42:27.943687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.945720"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:42:27.945720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:42:27.947006"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.951060"], ["nonce", #], ["updated_at", "2015-02-11 15:42:27.951060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.952928"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:42:27.952928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:42:27.954083"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.965650"], ["nonce", #], ["updated_at", "2015-02-11 15:42:27.965650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.969499"], ["nonce", #], ["updated_at", "2015-02-11 15:42:27.969499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.971480"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:42:27.971480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:42:27.972792"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.977080"], ["nonce", #], ["updated_at", "2015-02-11 15:42:27.977080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:27.981679"], ["nonce", #], ["updated_at", "2015-02-11 15:42:27.981679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:52.541404"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:42:52.541404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:52.546774"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:42:52.546774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:52.550248"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:42:52.550248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:52.552880"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-11 15:42:52.552880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:42:52.557198"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-11 15:42:52.557198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.572433"], ["lti_user_id", "a"], ["updated_at", "2015-02-11 15:42:52.572433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 12ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.626802"], ["nonce", #], ["updated_at", "2015-02-11 15:42:52.626802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.629243"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:42:52.629243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:42:52.631053"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.635528"], ["nonce", #], ["updated_at", "2015-02-11 15:42:52.635528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.643478"], ["nonce", #], ["updated_at", "2015-02-11 15:42:52.643478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.647315"], ["nonce", #], ["updated_at", "2015-02-11 15:42:52.647315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.649282"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:42:52.649282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:42:52.650545"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.654087"], ["nonce", #], ["updated_at", "2015-02-11 15:42:52.654087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.655950"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:42:52.655950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:42:52.657175"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.669800"], ["nonce", #], ["updated_at", "2015-02-11 15:42:52.669800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.673587"], ["nonce", #], ["updated_at", "2015-02-11 15:42:52.673587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.677259"], ["nonce", #], ["updated_at", "2015-02-11 15:42:52.677259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.679485"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:42:52.679485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:42:52.680819"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.685394"], ["nonce", #], ["updated_at", "2015-02-11 15:42:52.685394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.700323"], ["nonce", "100"], ["updated_at", "2015-02-11 15:42:52.700323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.702137"], ["nonce", "100"], ["updated_at", "2015-02-11 15:42:52.702137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:42:52.702888"], ["nonce", "100"], ["updated_at", "2015-02-11 15:42:52.702888"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.253735"], ["lti_user_id", "a"], ["updated_at", "2015-02-11 15:43:09.253735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:43:09.264074"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-02-11 15:43:09.264074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:43:09.267275"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-02-11 15:43:09.267275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:43:09.272028"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:43:09.272028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:43:09.274586"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:43:09.274586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-02-11 15:43:09.276896"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-02-11 15:43:09.276896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.285178"], ["nonce", "100"], ["updated_at", "2015-02-11 15:43:09.285178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.287366"], ["nonce", "100"], ["updated_at", "2015-02-11 15:43:09.287366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.288078"], ["nonce", "100"], ["updated_at", "2015-02-11 15:43:09.288078"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.332182"], ["nonce", #], ["updated_at", "2015-02-11 15:43:09.332182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.335759"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:43:09.335759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:43:09.337438"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.341951"], ["nonce", #], ["updated_at", "2015-02-11 15:43:09.341951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.345732"], ["nonce", #], ["updated_at", "2015-02-11 15:43:09.345732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.353195"], ["nonce", #], ["updated_at", "2015-02-11 15:43:09.353195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.355219"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:43:09.355219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:43:09.356487"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.360077"], ["nonce", #], ["updated_at", "2015-02-11 15:43:09.360077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.362042"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:43:09.362042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:43:09.363473"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.374791"], ["nonce", #], ["updated_at", "2015-02-11 15:43:09.374791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.376729"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-02-11 15:43:09.376729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-02-11 15:43:09.378144"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.382540"], ["nonce", #], ["updated_at", "2015-02-11 15:43:09.382540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.386711"], ["nonce", #], ["updated_at", "2015-02-11 15:43:09.386711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-11 15:43:09.390307"], ["nonce", #], ["updated_at", "2015-02-11 15:43:09.390307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.118839"], ["lti_user_id", "a"], ["updated_at", "2015-05-07 18:19:17.118839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 18:19:17.127617"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 18:19:17.127617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 18:19:17.130246"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 18:19:17.130246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 18:19:17.132520"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 18:19:17.132520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 18:19:17.134914"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-07 18:19:17.134914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 18:19:17.137467"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-07 18:19:17.137467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.146019"], ["nonce", "100"], ["updated_at", "2015-05-07 18:19:17.146019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.148640"], ["nonce", "100"], ["updated_at", "2015-05-07 18:19:17.148640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.149412"], ["nonce", "100"], ["updated_at", "2015-05-07 18:19:17.149412"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.166428"], ["nonce", #], ["updated_at", "2015-05-07 18:19:17.166428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.169984"], ["nonce", #], ["updated_at", "2015-05-07 18:19:17.169984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.174983"], ["nonce", #], ["updated_at", "2015-05-07 18:19:17.174983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.176816"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 18:19:17.176816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 18:19:17.178410"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.6ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.186131"], ["nonce", #], ["updated_at", "2015-05-07 18:19:17.186131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.188044"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 18:19:17.188044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 18:19:17.189267"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.192765"], ["nonce", #], ["updated_at", "2015-05-07 18:19:17.192765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.194506"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 18:19:17.194506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 18:19:17.195596"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.209614"], ["nonce", #], ["updated_at", "2015-05-07 18:19:17.209614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.211601"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 18:19:17.211601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 18:19:17.212949"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.217062"], ["nonce", #], ["updated_at", "2015-05-07 18:19:17.217062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.221221"], ["nonce", #], ["updated_at", "2015-05-07 18:19:17.221221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 18:19:17.224711"], ["nonce", #], ["updated_at", "2015-05-07 18:19:17.224711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.138006"], ["nonce", #], ["updated_at", "2015-05-07 19:30:12.138006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.145654"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 19:30:12.145654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 19:30:12.148469"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.153581"], ["nonce", #], ["updated_at", "2015-05-07 19:30:12.153581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.157677"], ["nonce", #], ["updated_at", "2015-05-07 19:30:12.157677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.159796"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 19:30:12.159796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 19:30:12.161155"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.165152"], ["nonce", #], ["updated_at", "2015-05-07 19:30:12.165152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.167276"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 19:30:12.167276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 19:30:12.168583"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.173189"], ["nonce", #], ["updated_at", "2015-05-07 19:30:12.173189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.184285"], ["nonce", #], ["updated_at", "2015-05-07 19:30:12.184285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.186523"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 19:30:12.186523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 19:30:12.187860"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.193906"], ["nonce", #], ["updated_at", "2015-05-07 19:30:12.193906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.197666"], ["nonce", #], ["updated_at", "2015-05-07 19:30:12.197666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.201234"], ["nonce", #], ["updated_at", "2015-05-07 19:30:12.201234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.208963"], ["nonce", "100"], ["updated_at", "2015-05-07 19:30:12.208963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.210841"], ["nonce", "100"], ["updated_at", "2015-05-07 19:30:12.210841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.211718"], ["nonce", "100"], ["updated_at", "2015-05-07 19:30:12.211718"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:30:12.232127"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 19:30:12.232127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:30:12.235248"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 19:30:12.235248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:30:12.237503"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 19:30:12.237503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:30:12.250751"], ["lti_user_id", "a"], ["updated_at", "2015-05-07 19:30:12.250751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:30:12.256400"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-07 19:30:12.256400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 19]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:30:12.259516"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-07 19:30:12.259516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 20]]  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.496200"], ["nonce", "100"], ["updated_at", "2015-05-07 19:41:48.496200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.500315"], ["nonce", "100"], ["updated_at", "2015-05-07 19:41:48.500315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.501133"], ["nonce", "100"], ["updated_at", "2015-05-07 19:41:48.501133"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.538401"], ["lti_user_id", "a"], ["updated_at", "2015-05-07 19:41:48.538401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:41:48.547637"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 19:41:48.547637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:41:48.550303"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 19:41:48.550303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:41:48.552809"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 19:41:48.552809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:41:48.555354"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-07 19:41:48.555354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 25]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 19:41:48.558175"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-07 19:41:48.558175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 26]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.593973"], ["nonce", #], ["updated_at", "2015-05-07 19:41:48.593973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.596358"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 19:41:48.596358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 19:41:48.598003"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.602065"], ["nonce", #], ["updated_at", "2015-05-07 19:41:48.602065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.608441"], ["nonce", #], ["updated_at", "2015-05-07 19:41:48.608441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.610246"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 19:41:48.610246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 19:41:48.611507"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.615074"], ["nonce", #], ["updated_at", "2015-05-07 19:41:48.615074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.621060"], ["nonce", #], ["updated_at", "2015-05-07 19:41:48.621060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.623180"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 19:41:48.623180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 19:41:48.625498"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.636706"], ["nonce", #], ["updated_at", "2015-05-07 19:41:48.636706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.638604"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 19:41:48.638604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 19:41:48.639822"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.643920"], ["nonce", #], ["updated_at", "2015-05-07 19:41:48.643920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.649380"], ["nonce", #], ["updated_at", "2015-05-07 19:41:48.649380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 19:41:48.653121"], ["nonce", #], ["updated_at", "2015-05-07 19:41:48.653121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.116913"], ["nonce", "100"], ["updated_at", "2015-05-07 20:12:13.116913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.122329"], ["nonce", "100"], ["updated_at", "2015-05-07 20:12:13.122329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.123199"], ["nonce", "100"], ["updated_at", "2015-05-07 20:12:13.123199"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.127316"], ["nonce", #], ["updated_at", "2015-05-07 20:12:13.127316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.136573"], ["nonce", #], ["updated_at", "2015-05-07 20:12:13.136573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=915ecf547e314027db90754da6bdceec Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.140628"], ["nonce", #], ["updated_at", "2015-05-07 20:12:13.140628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.151986"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 20:12:13.151986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 20:12:13.154280"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=d853c3e501e8d9a04a9b5208bf6d11c0 Completed 302 Found in 16ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.160432"], ["nonce", #], ["updated_at", "2015-05-07 20:12:13.160432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.162584"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 20:12:13.162584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 20:12:13.164044"], ["user_image", #]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=15864a38b672e7a373acdcddf52141b6 Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.168181"], ["nonce", #], ["updated_at", "2015-05-07 20:12:13.168181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.170135"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 20:12:13.170135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 20:12:13.171400"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=16b08b5516664e7daed75d0e7e009f0e Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.184881"], ["nonce", #], ["updated_at", "2015-05-07 20:12:13.184881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e698a534bebbfe723228f31df5386db9 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.188500"], ["nonce", #], ["updated_at", "2015-05-07 20:12:13.188500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.190478"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-07 20:12:13.190478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-07 20:12:13.191813"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.196151"], ["nonce", #], ["updated_at", "2015-05-07 20:12:13.196151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=59733dbf647176eb6965e95169bc8450 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.200973"], ["nonce", #], ["updated_at", "2015-05-07 20:12:13.200973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=454432316bef4740223d499b5a88c384 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 20:12:13.205758"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-07 20:12:13.205758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 20:12:13.208763"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-07 20:12:13.208763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-07 20:12:13.213500"], ["lti_user_id", "a"], ["updated_at", "2015-05-07 20:12:13.213500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 20:12:13.229386"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 20:12:13.229386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 20:12:13.233213"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 20:12:13.233213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-07 20:12:13.235514"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-07 20:12:13.235514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (5.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (1.0ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-08 20:21:16.410211"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-08 20:21:16.410211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-08 20:21:16.417075"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-08 20:21:16.417075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-08 20:21:16.419614"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-08 20:21:16.419614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.435534"], ["lti_user_id", "a"], ["updated_at", "2015-05-08 20:21:16.435534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-08 20:21:16.442360"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-08 20:21:16.442360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-08 20:21:16.445261"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-08 20:21:16.445261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.493313"], ["nonce", "100"], ["updated_at", "2015-05-08 20:21:16.493313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.496515"], ["nonce", "100"], ["updated_at", "2015-05-08 20:21:16.496515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.497290"], ["nonce", "100"], ["updated_at", "2015-05-08 20:21:16.497290"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.505015"], ["nonce", #], ["updated_at", "2015-05-08 20:21:16.505015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.507154"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-08 20:21:16.507154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-08 20:21:16.509073"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b65140596618a2f8d9ba140844f75bf3 Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.513284"], ["nonce", #], ["updated_at", "2015-05-08 20:21:16.513284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.515235"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-08 20:21:16.515235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-08 20:21:16.516493"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b913c4d8893f481addcfd79c91081d00 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.520903"], ["nonce", #], ["updated_at", "2015-05-08 20:21:16.520903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=ea72c5834f54cf6888e716f8834d6583 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.524291"], ["nonce", #], ["updated_at", "2015-05-08 20:21:16.524291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.529265"], ["nonce", #], ["updated_at", "2015-05-08 20:21:16.529265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.531180"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-08 20:21:16.531180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-08 20:21:16.532481"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=93991aabadbb1c826a5791a047c47bd9 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.548022"], ["nonce", #], ["updated_at", "2015-05-08 20:21:16.548022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c56cdb82ce86b5867b5a95fefa591fab Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.551798"], ["nonce", #], ["updated_at", "2015-05-08 20:21:16.551798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.553740"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-08 20:21:16.553740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-08 20:21:16.555070"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.560845"], ["nonce", #], ["updated_at", "2015-05-08 20:21:16.560845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=5a45bf2e39881aa82d13556eb627cd0e Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-08 20:21:16.564797"], ["nonce", #], ["updated_at", "2015-05-08 20:21:16.564797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2fbe913e37683a15b2f296bd953d2382 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:25:41.746088"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 15:25:41.746088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 21]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:25:41.754677"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 15:25:41.754677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 22]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:25:41.757955"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 15:25:41.757955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:25:41.761494"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 15:25:41.761494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:25:41.764040"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 15:25:41.764040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.769890"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 15:25:41.769890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.819974"], ["nonce", #], ["updated_at", "2015-05-11 15:25:41.819974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.822822"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:25:41.822822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:25:41.824736"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b1020afad5b5ab49aa5a72d302206b3e Completed 302 Found in 10ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.828830"], ["nonce", #], ["updated_at", "2015-05-11 15:25:41.828830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.830596"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:25:41.830596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:25:41.831690"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=af2174fa3a92e798a9aee911816861a0 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.835400"], ["nonce", #], ["updated_at", "2015-05-11 15:25:41.835400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2a70a4059b552d2e77b6e0ca53982b9b Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.842948"], ["nonce", #], ["updated_at", "2015-05-11 15:25:41.842948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.849008"], ["nonce", #], ["updated_at", "2015-05-11 15:25:41.849008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.851426"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:25:41.851426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:25:41.852908"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=fd70826932b8bb93b9af290c300b6732 Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.857405"], ["nonce", #], ["updated_at", "2015-05-11 15:25:41.857405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=93016dd2b460aa4c04781d69437f6d7c Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.862741"], ["nonce", #], ["updated_at", "2015-05-11 15:25:41.862741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=23f97134f8e3726a24bacdd3a2ffd465 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.868658"], ["nonce", #], ["updated_at", "2015-05-11 15:25:41.868658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=100eef687d822059d2e2839e18349065 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.872289"], ["nonce", #], ["updated_at", "2015-05-11 15:25:41.872289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.874303"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:25:41.874303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:25:41.875588"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.912139"], ["nonce", "100"], ["updated_at", "2015-05-11 15:25:41.912139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.913202"], ["nonce", "100"], ["updated_at", "2015-05-11 15:25:41.913202"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:25:41.915071"], ["nonce", "100"], ["updated_at", "2015-05-11 15:25:41.915071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:36:27.258595"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 15:36:27.258595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 31]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:36:27.263088"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 15:36:27.263088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 32]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.269638"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 15:36:27.269638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:36:27.286307"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 15:36:27.286307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:36:27.288727"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 15:36:27.288727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:36:27.291037"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 15:36:27.291037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.300495"], ["nonce", "100"], ["updated_at", "2015-05-11 15:36:27.300495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.301663"], ["nonce", "100"], ["updated_at", "2015-05-11 15:36:27.301663"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.303900"], ["nonce", "100"], ["updated_at", "2015-05-11 15:36:27.303900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.316827"], ["nonce", #], ["updated_at", "2015-05-11 15:36:27.316827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.321827"], ["nonce", #], ["updated_at", "2015-05-11 15:36:27.321827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=885f30cf86b53649f1e5db6fe3047c4d Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.325046"], ["nonce", #], ["updated_at", "2015-05-11 15:36:27.325046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.327006"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:36:27.327006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.6ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:36:27.329392"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=25aec6f29f4b13ad953859c4004105e2 Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.333607"], ["nonce", #], ["updated_at", "2015-05-11 15:36:27.333607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.335591"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:36:27.335591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:36:27.336938"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=cb1388476d24d2032356b886012cc06c Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.343285"], ["nonce", #], ["updated_at", "2015-05-11 15:36:27.343285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.345072"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:36:27.345072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:36:27.346485"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=72043350acc789130276cc98462abe27 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.351264"], ["nonce", #], ["updated_at", "2015-05-11 15:36:27.351264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.354091"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:36:27.354091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 40) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 40 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:36:27.355375"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.359449"], ["nonce", #], ["updated_at", "2015-05-11 15:36:27.359449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2b3b090bbbd4f160525e0ca41346fd6f Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.363244"], ["nonce", #], ["updated_at", "2015-05-11 15:36:27.363244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=6d866c202ca1fb4a9153f156d7c731ca Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:36:27.366873"], ["nonce", #], ["updated_at", "2015-05-11 15:36:27.366873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=9af8e1b53d330d8624e6b6bbb284bc38 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.742627"], ["nonce", #], ["updated_at", "2015-05-11 15:38:04.742627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.761325"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:38:04.761325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 41) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 41 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:38:04.764073"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=9cb9cd8a84aa01d4163eb34c53737dae Completed 302 Found in 29ms (ActiveRecord: 5.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.769982"], ["nonce", #], ["updated_at", "2015-05-11 15:38:04.769982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.772164"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:38:04.772164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:38:04.773466"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=25aa1b74bf4bfda33e14ba324bac5957 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.777630"], ["nonce", #], ["updated_at", "2015-05-11 15:38:04.777630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.779601"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:38:04.779601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:38:04.780899"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=d0ecd110d82b0180f08f585bdbd72e5d Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.791854"], ["nonce", #], ["updated_at", "2015-05-11 15:38:04.791854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e4188814194c2dc92f34f80a04168b55 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.795633"], ["nonce", #], ["updated_at", "2015-05-11 15:38:04.795633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.799833"], ["nonce", #], ["updated_at", "2015-05-11 15:38:04.799833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b1c338c7c1e633796f598bd5cc40bb25 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.803985"], ["nonce", #], ["updated_at", "2015-05-11 15:38:04.803985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e27505f87f64a272e53214718845288a Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.809281"], ["nonce", #], ["updated_at", "2015-05-11 15:38:04.809281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=bf9e51b86a55db277657d9cc725cc681 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.814793"], ["nonce", #], ["updated_at", "2015-05-11 15:38:04.814793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.816791"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 15:38:04.816791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 15:38:04.818077"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.835579"], ["nonce", "100"], ["updated_at", "2015-05-11 15:38:04.835579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.836537"], ["nonce", "100"], ["updated_at", "2015-05-11 15:38:04.836537"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.838173"], ["nonce", "100"], ["updated_at", "2015-05-11 15:38:04.838173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:38:04.848435"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 15:38:04.848435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:38:04.852224"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 15:38:04.852224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:38:04.854944"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 15:38:04.854944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:38:04.858641"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 15:38:04.858641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 48]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 15:38:04.861446"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 15:38:04.861446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 49]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 15:38:04.874277"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 15:38:04.874277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 16:53:56.639374"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 16:53:56.639374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 51]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 16:53:56.645007"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 16:53:56.645007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 52]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.651910"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 16:53:56.651910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 16:53:56.670035"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 16:53:56.670035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 16:53:56.672594"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 16:53:56.672594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 16:53:56.675092"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 16:53:56.675092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.682695"], ["nonce", #], ["updated_at", "2015-05-11 16:53:56.682695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.686867"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 16:53:56.686867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 57) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 57 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 16:53:56.688718"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=846bb2241eb8508c42640527e834327a Completed 302 Found in 12ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.693447"], ["nonce", #], ["updated_at", "2015-05-11 16:53:56.693447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.699194"], ["nonce", #], ["updated_at", "2015-05-11 16:53:56.699194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.701131"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 16:53:56.701131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 58) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 58 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 16:53:56.702406"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e50f289ff91e9aafdae5b718fd563360 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.708453"], ["nonce", #], ["updated_at", "2015-05-11 16:53:56.708453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=607221fd19b4ea67fed45896700a096f Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.711926"], ["nonce", #], ["updated_at", "2015-05-11 16:53:56.711926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.713847"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 16:53:56.713847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 59) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 59 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 16:53:56.715639"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=634a8f6ecc08a5b7a49841c748c3ac81 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.719933"], ["nonce", #], ["updated_at", "2015-05-11 16:53:56.719933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.721896"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 16:53:56.721896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 60) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 60 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 16:53:56.723143"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.726959"], ["nonce", #], ["updated_at", "2015-05-11 16:53:56.726959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=5fdbd4171f3cc22082c0bd64fe212bee Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.731128"], ["nonce", #], ["updated_at", "2015-05-11 16:53:56.731128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=7c1f63e3152981235f6a85237ebded84 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.735189"], ["nonce", #], ["updated_at", "2015-05-11 16:53:56.735189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=4db21e7719cc572ce6fbcc41775f48a2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.770734"], ["nonce", "100"], ["updated_at", "2015-05-11 16:53:56.770734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.771660"], ["nonce", "100"], ["updated_at", "2015-05-11 16:53:56.771660"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 16:53:56.773261"], ["nonce", "100"], ["updated_at", "2015-05-11 16:53:56.773261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.7ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.570896"], ["nonce", #], ["updated_at", "2015-05-11 18:29:05.570896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=bfddaba1ac7b90a64f527806c6851cad Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.576304"], ["nonce", #], ["updated_at", "2015-05-11 18:29:05.576304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.585382"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:29:05.585382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 61) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 61 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:29:05.587557"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=0d810fd809cb95d0663ca19229bbbd9b Completed 302 Found in 13ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.591993"], ["nonce", #], ["updated_at", "2015-05-11 18:29:05.591993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.596885"], ["nonce", #], ["updated_at", "2015-05-11 18:29:05.596885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.598650"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:29:05.598650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 62) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 62 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:29:05.600014"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8e6d5fc2b4a499d6d7b08ce5e2238cfe Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.603505"], ["nonce", #], ["updated_at", "2015-05-11 18:29:05.603505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.605244"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:29:05.605244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 63) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 63 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:29:05.606408"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=dbc0f7d82d8b5e714880a2559963bba0 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.622100"], ["nonce", #], ["updated_at", "2015-05-11 18:29:05.622100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=1d2e95e25e3b47c8a6c01576a7d5dff8 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.625781"], ["nonce", #], ["updated_at", "2015-05-11 18:29:05.625781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.628042"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:29:05.628042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 64) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 64 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:29:05.629339"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.633450"], ["nonce", #], ["updated_at", "2015-05-11 18:29:05.633450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c493b6b04963ce18b95b3ff9d564c93f Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.636950"], ["nonce", #], ["updated_at", "2015-05-11 18:29:05.636950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=86d381ff171105fa68f7d71a8e13ed11 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:29:05.641350"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:29:05.641350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:29:05.645191"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:29:05.645191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:29:05.647307"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:29:05.647307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.661799"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 18:29:05.661799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:29:05.667448"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 18:29:05.667448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 69]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:29:05.670099"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 18:29:05.670099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 70]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.678403"], ["nonce", "100"], ["updated_at", "2015-05-11 18:29:05.678403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.679763"], ["nonce", "100"], ["updated_at", "2015-05-11 18:29:05.679763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:29:05.680379"], ["nonce", "100"], ["updated_at", "2015-05-11 18:29:05.680379"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.029413"], ["nonce", "100"], ["updated_at", "2015-05-11 18:30:26.029413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.033464"], ["nonce", "100"], ["updated_at", "2015-05-11 18:30:26.033464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.034285"], ["nonce", "100"], ["updated_at", "2015-05-11 18:30:26.034285"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:30:26.090258"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:30:26.090258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:30:26.094087"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:30:26.094087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:30:26.097091"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:30:26.097091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.108816"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 18:30:26.108816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:30:26.114965"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 18:30:26.114965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 75]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:30:26.117819"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 18:30:26.117819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 76]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.121945"], ["nonce", #], ["updated_at", "2015-05-11 18:30:26.121945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.127338"], ["nonce", #], ["updated_at", "2015-05-11 18:30:26.127338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=fdefd618532285b8bfbe64beb60bebc6 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.130567"], ["nonce", #], ["updated_at", "2015-05-11 18:30:26.130567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.132844"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:30:26.132844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 77) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 77 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:30:26.134564"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=21eff7d9f57c8b393660a1c11aaa1a59 Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.138497"], ["nonce", #], ["updated_at", "2015-05-11 18:30:26.138497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.140293"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:30:26.140293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 78) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 78 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:30:26.141515"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8a1944139e5e5d3a4924b64d849f6cbd Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.145319"], ["nonce", #], ["updated_at", "2015-05-11 18:30:26.145319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.147091"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:30:26.147091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 79) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 79 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:30:26.148202"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=fb9e1ab5054feca3027857fac2ece4f6 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.162399"], ["nonce", #], ["updated_at", "2015-05-11 18:30:26.162399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=00e38d423dceb6e8c3693a4751d010dc Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.166176"], ["nonce", #], ["updated_at", "2015-05-11 18:30:26.166176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=4b7b80f2c514712f6f815572d17e03b0 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.169601"], ["nonce", #], ["updated_at", "2015-05-11 18:30:26.169601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.171377"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:30:26.171377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 80) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 80 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:30:26.172503"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:30:26.176847"], ["nonce", #], ["updated_at", "2015-05-11 18:30:26.176847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=5c887e3d93707f31425589f0100dcd1c Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.4ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.219175"], ["nonce", #], ["updated_at", "2015-05-11 18:32:26.219175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.221895"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:32:26.221895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 81) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 81 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:32:26.223798"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=4f9da5adf89e85bf8e0498cc80acc7af Completed 302 Found in 9ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.228219"], ["nonce", #], ["updated_at", "2015-05-11 18:32:26.228219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.233472"], ["nonce", #], ["updated_at", "2015-05-11 18:32:26.233472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.235712"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:32:26.235712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 82) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 82 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:32:26.237008"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=07f7f8f5af8f457bf41d4b643332456d Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.243343"], ["nonce", #], ["updated_at", "2015-05-11 18:32:26.243343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.245648"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:32:26.245648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 83) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 83 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:32:26.246921"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=113adafc1e044d5786f28972321dee76 Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.250725"], ["nonce", #], ["updated_at", "2015-05-11 18:32:26.250725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e7f202ce7055b0be7ad113552ea6bd73 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.261067"], ["nonce", #], ["updated_at", "2015-05-11 18:32:26.261067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.263162"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:32:26.263162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 84) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 84 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:32:26.264520"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.268892"], ["nonce", #], ["updated_at", "2015-05-11 18:32:26.268892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=63494eb690349a418736dd026aa59015 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.272907"], ["nonce", #], ["updated_at", "2015-05-11 18:32:26.272907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2c9d86efca5e4addc3d598413c8591dc Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.276421"], ["nonce", #], ["updated_at", "2015-05-11 18:32:26.276421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=9f621c844fa065d48709537d50e7cbe6 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.288723"], ["nonce", "100"], ["updated_at", "2015-05-11 18:32:26.288723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.290650"], ["nonce", "100"], ["updated_at", "2015-05-11 18:32:26.290650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.291439"], ["nonce", "100"], ["updated_at", "2015-05-11 18:32:26.291439"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:32:26.304825"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 18:32:26.304825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:32:26.314479"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 18:32:26.314479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 86]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:32:26.317354"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 18:32:26.317354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 87]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:32:26.321837"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:32:26.321837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:32:26.324159"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:32:26.324159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:32:26.326391"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:32:26.326391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.1ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:34:30.494799"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:34:30.494799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:34:30.498511"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:34:30.498511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:34:30.500902"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:34:30.500902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:34:30.504037"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 18:34:30.504037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 94]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:34:30.506615"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 18:34:30.506615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 95]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.515355"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 18:34:30.515355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.542836"], ["nonce", #], ["updated_at", "2015-05-11 18:34:30.542836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=873996716dfef9adaf7ef9c82f14ec27 Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.547763"], ["nonce", #], ["updated_at", "2015-05-11 18:34:30.547763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.549705"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:34:30.549705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 97) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 97 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:34:30.551394"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=0f05b0c1a2b1b04bfad5858cebd4d2ab Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.555383"], ["nonce", #], ["updated_at", "2015-05-11 18:34:30.555383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.557198"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:34:30.557198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 98) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 98 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:34:30.558357"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=910858b27f31ac2cc458ba66d722660b Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.562745"], ["nonce", #], ["updated_at", "2015-05-11 18:34:30.562745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.565815"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:34:30.565815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 99) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 99 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:34:30.567214"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=a3270a32a811e8ade95feb0046075285 Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.574313"], ["nonce", #], ["updated_at", "2015-05-11 18:34:30.574313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.578373"], ["nonce", #], ["updated_at", "2015-05-11 18:34:30.578373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=11fa74a5dccc7a2b9f74d4a61fa75dd2 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.581773"], ["nonce", #], ["updated_at", "2015-05-11 18:34:30.581773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2555e0ce40c30a9235c871e548885dc8 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.585539"], ["nonce", #], ["updated_at", "2015-05-11 18:34:30.585539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b450eb4c274dd446923c078ed60e1e63 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.589396"], ["nonce", #], ["updated_at", "2015-05-11 18:34:30.589396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.591287"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:34:30.591287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 100) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 100 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:34:30.592481"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.607222"], ["nonce", "100"], ["updated_at", "2015-05-11 18:34:30.607222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.608116"], ["nonce", "100"], ["updated_at", "2015-05-11 18:34:30.608116"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:34:30.609743"], ["nonce", "100"], ["updated_at", "2015-05-11 18:34:30.609743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.588561"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 18:50:43.588561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:50:43.600159"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 18:50:43.600159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:50:43.603012"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 18:50:43.603012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 3]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:50:43.607108"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:50:43.607108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:50:43.609357"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:50:43.609357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 18:50:43.612265"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 18:50:43.612265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.619019"], ["nonce", #], ["updated_at", "2015-05-11 18:50:43.619019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.624289"], ["nonce", #], ["updated_at", "2015-05-11 18:50:43.624289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.626179"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:50:43.626179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:50:43.628204"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=68a68d2769873f2100cded1bc6bc4274 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.633125"], ["nonce", #], ["updated_at", "2015-05-11 18:50:43.633125"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.635422"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:50:43.635422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:50:43.636652"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=870bcc0d008fe374a9e547fa01620f9d Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.640286"], ["nonce", #], ["updated_at", "2015-05-11 18:50:43.640286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=9ddd64743802458f085073a3c57e1a53 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.646231"], ["nonce", #], ["updated_at", "2015-05-11 18:50:43.646231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.648080"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:50:43.648080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:50:43.649797"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=08ea0e186d885483ec218760529e1552 Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.661109"], ["nonce", #], ["updated_at", "2015-05-11 18:50:43.661109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.662992"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 18:50:43.662992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.1ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 18:50:43.664147"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.667850"], ["nonce", #], ["updated_at", "2015-05-11 18:50:43.667850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=79f1c34252b1bcf2046445abaa66aa8b Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.673236"], ["nonce", #], ["updated_at", "2015-05-11 18:50:43.673236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=a6b7e80787138f166ca8320da275936c Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.677019"], ["nonce", #], ["updated_at", "2015-05-11 18:50:43.677019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e6b6638a7c040ca6b8041bcea877b37f Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.682460"], ["nonce", "100"], ["updated_at", "2015-05-11 18:50:43.682460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.683819"], ["nonce", "100"], ["updated_at", "2015-05-11 18:50:43.683819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 18:50:43.684420"], ["nonce", "100"], ["updated_at", "2015-05-11 18:50:43.684420"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.9ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:52:49.055875"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 19:52:49.055875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:52:49.061932"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 19:52:49.061932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:52:49.064261"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 19:52:49.064261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.080123"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 19:52:49.080123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:52:49.086040"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 19:52:49.086040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:52:49.088734"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 19:52:49.088734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.120384"], ["nonce", #], ["updated_at", "2015-05-11 19:52:49.120384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.122702"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 19:52:49.122702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 19:52:49.124537"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=5e23c9b28c0260cd947af52a4c6d4edd Completed 302 Found in 9ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.128906"], ["nonce", #], ["updated_at", "2015-05-11 19:52:49.128906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.130898"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 19:52:49.130898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 19:52:49.132037"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2cd78b8d2f4ecbf8bde294700f54d484 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.139084"], ["nonce", #], ["updated_at", "2015-05-11 19:52:49.139084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.140886"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 19:52:49.140886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 19:52:49.142027"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=849f9867461b4a50ff4ea38086e6b5cc Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.145949"], ["nonce", #], ["updated_at", "2015-05-11 19:52:49.145949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.150131"], ["nonce", #], ["updated_at", "2015-05-11 19:52:49.150131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=fd9fe9fe5ae898388df7601438ae1e17 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.161318"], ["nonce", #], ["updated_at", "2015-05-11 19:52:49.161318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.163493"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 19:52:49.163493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 19:52:49.164746"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.169444"], ["nonce", #], ["updated_at", "2015-05-11 19:52:49.169444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=5fc550a3012e41e282f3f161f7ed01d2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.174057"], ["nonce", #], ["updated_at", "2015-05-11 19:52:49.174057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=1d76fd22c8d774a20225e272c44bc6f4 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.177438"], ["nonce", #], ["updated_at", "2015-05-11 19:52:49.177438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=678721ede0f4612154eaa95a37a6aecf Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.204321"], ["nonce", "100"], ["updated_at", "2015-05-11 19:52:49.204321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.205931"], ["nonce", "100"], ["updated_at", "2015-05-11 19:52:49.205931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:52:49.206607"], ["nonce", "100"], ["updated_at", "2015-05-11 19:52:49.206607"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.859019"], ["nonce", #], ["updated_at", "2015-05-11 19:55:53.859019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.873533"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 19:55:53.873533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 21) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 21 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 19:55:53.875688"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=0c702d5999a6bd8fe99584d93f0bdaee Completed 302 Found in 24ms (ActiveRecord: 4.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.880021"], ["nonce", #], ["updated_at", "2015-05-11 19:55:53.880021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.883663"], ["nonce", #], ["updated_at", "2015-05-11 19:55:53.883663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.885664"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 19:55:53.885664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 22) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 22 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 19:55:53.886880"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=dfb6b3a504f25052590b229aaee3a56c Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.890644"], ["nonce", #], ["updated_at", "2015-05-11 19:55:53.890644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=3d4f9a919e25494b2efd477ebd6cef83 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.893711"], ["nonce", #], ["updated_at", "2015-05-11 19:55:53.893711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.895547"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 19:55:53.895547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 23) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 23 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 19:55:53.897702"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=aae4d2e29e6e7383fc157c4de5605302 Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.902845"], ["nonce", #], ["updated_at", "2015-05-11 19:55:53.902845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c21462821f5bb76337a39020f91f44b9 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.906946"], ["nonce", #], ["updated_at", "2015-05-11 19:55:53.906946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.908886"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 19:55:53.908886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 24) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 24 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 19:55:53.910129"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.914286"], ["nonce", #], ["updated_at", "2015-05-11 19:55:53.914286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=f48e76c8e17feade473490c1814f9f3a Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.918678"], ["nonce", #], ["updated_at", "2015-05-11 19:55:53.918678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=21995527979c81a0a64baf14324e3588 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.973235"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 19:55:53.973235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:55:53.982063"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 19:55:53.982063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 26]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:55:53.984866"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 19:55:53.984866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 27]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:55:53.987284"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 19:55:53.987284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:55:53.991751"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 19:55:53.991751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 19:55:53.994172"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 19:55:53.994172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:53.999387"], ["nonce", "100"], ["updated_at", "2015-05-11 19:55:53.999387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:54.000260"], ["nonce", "100"], ["updated_at", "2015-05-11 19:55:54.000260"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 19:55:54.001882"], ["nonce", "100"], ["updated_at", "2015-05-11 19:55:54.001882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.365813"], ["nonce", #], ["updated_at", "2015-05-11 20:04:13.365813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=29e501f43ad0d5ed2edff763bdd190ec Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.372628"], ["nonce", #], ["updated_at", "2015-05-11 20:04:13.372628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.381181"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:04:13.381181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 31) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 31 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:04:13.383211"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c00ae26988d539c351d0989a8f374bde Completed 302 Found in 12ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.392722"], ["nonce", #], ["updated_at", "2015-05-11 20:04:13.392722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.396295"], ["nonce", #], ["updated_at", "2015-05-11 20:04:13.396295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.398107"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:04:13.398107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 32) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 32 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:04:13.399391"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=443a60fe200d0512f305383ff9ed0a98 Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.403522"], ["nonce", #], ["updated_at", "2015-05-11 20:04:13.403522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.405370"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:04:13.405370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 33) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 33 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:04:13.406532"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=d095fbf8902788797cdf6be55a3b8312 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.411962"], ["nonce", #], ["updated_at", "2015-05-11 20:04:13.411962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8e199d1da3941afec24333721a0f4dbc Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.416732"], ["nonce", #], ["updated_at", "2015-05-11 20:04:13.416732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=19fb4d855ba6da683aec2b209feb09ee Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.420477"], ["nonce", #], ["updated_at", "2015-05-11 20:04:13.420477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=f2ae7d161acbd8807e5ed266928943ea Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.423786"], ["nonce", #], ["updated_at", "2015-05-11 20:04:13.423786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.425561"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:04:13.425561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:04:13.427180"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.458636"], ["nonce", "100"], ["updated_at", "2015-05-11 20:04:13.458636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.459515"], ["nonce", "100"], ["updated_at", "2015-05-11 20:04:13.459515"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.460903"], ["nonce", "100"], ["updated_at", "2015-05-11 20:04:13.460903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:13.468513"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:04:13.468513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:13.471871"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:04:13.471871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:13.474318"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:04:13.474318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:13.477461"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 20:04:13.477461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 38]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:13.480016"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 20:04:13.480016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 39]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:13.492952"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 20:04:13.492952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.614705"], ["nonce", #], ["updated_at", "2015-05-11 20:04:16.614705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.617532"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:04:16.617532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 41) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 41 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:04:16.619478"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=1105cd501491c31d3572d68a69234781 Completed 302 Found in 10ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.628688"], ["nonce", #], ["updated_at", "2015-05-11 20:04:16.628688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.632529"], ["nonce", #], ["updated_at", "2015-05-11 20:04:16.632529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.634541"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:04:16.634541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:04:16.635841"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=4419a13789a4a17cc68a91678322dcc8 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.639309"], ["nonce", #], ["updated_at", "2015-05-11 20:04:16.639309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.641058"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:04:16.641058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:04:16.642247"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=38215862716690736248ba247b36b996 Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.646322"], ["nonce", #], ["updated_at", "2015-05-11 20:04:16.646322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c9bdc66688c587caaee2b8e08e43de2a Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.657240"], ["nonce", #], ["updated_at", "2015-05-11 20:04:16.657240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.659263"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:04:16.659263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:04:16.660525"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.664879"], ["nonce", #], ["updated_at", "2015-05-11 20:04:16.664879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=05d3ee6cd5625688d5fb36cfc2393e43 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.668863"], ["nonce", #], ["updated_at", "2015-05-11 20:04:16.668863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=0fe966dd1ff80497ac636fb038ad6952 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.672742"], ["nonce", #], ["updated_at", "2015-05-11 20:04:16.672742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=df40c578a46784ed0c400872e6289127 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.690892"], ["nonce", "100"], ["updated_at", "2015-05-11 20:04:16.690892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.692536"], ["nonce", "100"], ["updated_at", "2015-05-11 20:04:16.692536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.693318"], ["nonce", "100"], ["updated_at", "2015-05-11 20:04:16.693318"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:04:16.706704"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 20:04:16.706704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:16.716316"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 20:04:16.716316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 46]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:16.719139"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 20:04:16.719139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 47]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:16.723877"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:04:16.723877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:16.726101"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:04:16.726101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:04:16.728797"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:04:16.728797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.546810"], ["nonce", #], ["updated_at", "2015-05-11 20:09:28.546810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.561989"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:09:28.561989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 51) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 51 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:09:28.564224"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=f51eee0c15748477b8eaf831fd05d733 Completed 302 Found in 25ms (ActiveRecord: 4.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.568415"], ["nonce", #], ["updated_at", "2015-05-11 20:09:28.568415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=9ca76a7b03dcb67eb6b586cba8bfacfd Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.571847"], ["nonce", #], ["updated_at", "2015-05-11 20:09:28.571847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.573777"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:09:28.573777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 52) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 52 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:09:28.575029"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=4b1e92bb8367e7bc011d06d3d85a3836 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.578895"], ["nonce", #], ["updated_at", "2015-05-11 20:09:28.578895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.582408"], ["nonce", #], ["updated_at", "2015-05-11 20:09:28.582408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.584748"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:09:28.584748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 53) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 53 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:09:28.586790"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8b87266d6531d51e396eedcd4d2dcd7b Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.591589"], ["nonce", #], ["updated_at", "2015-05-11 20:09:28.591589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=f99aa86c8bc4ff2776edaff5de013ce8 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.595972"], ["nonce", #], ["updated_at", "2015-05-11 20:09:28.595972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=38dbb17cc39c1f92237dc2ec4c889f24 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.599358"], ["nonce", #], ["updated_at", "2015-05-11 20:09:28.599358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.601118"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:09:28.601118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 54) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 54 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:09:28.602333"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.606545"], ["nonce", #], ["updated_at", "2015-05-11 20:09:28.606545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c4c4b749000bcd5daacc7f60af545d0c Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:28.635484"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 20:09:28.635484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 55]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:28.638240"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 20:09:28.638240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 56]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.642965"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 20:09:28.642965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:28.657967"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:09:28.657967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:28.661064"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:09:28.661064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:28.664463"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:09:28.664463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.674516"], ["nonce", "100"], ["updated_at", "2015-05-11 20:09:28.674516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.675371"], ["nonce", "100"], ["updated_at", "2015-05-11 20:09:28.675371"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:28.676734"], ["nonce", "100"], ["updated_at", "2015-05-11 20:09:28.676734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:57.756276"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 20:09:57.756276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 61]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:57.762234"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 20:09:57.762234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 62]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:57.764956"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:09:57.764956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:57.768035"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:09:57.768035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:09:57.771101"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:09:57.771101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.775423"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 20:09:57.775423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.802069"], ["nonce", "100"], ["updated_at", "2015-05-11 20:09:57.802069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.804361"], ["nonce", "100"], ["updated_at", "2015-05-11 20:09:57.804361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.805082"], ["nonce", "100"], ["updated_at", "2015-05-11 20:09:57.805082"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.821151"], ["nonce", #], ["updated_at", "2015-05-11 20:09:57.821151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=60a04b6ac80d13591f4a2df1c880ccf5 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.831012"], ["nonce", #], ["updated_at", "2015-05-11 20:09:57.831012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.834812"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:09:57.834812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 67) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 67 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:09:57.836710"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=0108cdfd5873eead9aad97d4cdce5612 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.840719"], ["nonce", #], ["updated_at", "2015-05-11 20:09:57.840719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.842563"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:09:57.842563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 68) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 68 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:09:57.843748"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=ac1076f02570ee82fd48f3b3da1e836e Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.847291"], ["nonce", #], ["updated_at", "2015-05-11 20:09:57.847291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.851211"], ["nonce", #], ["updated_at", "2015-05-11 20:09:57.851211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.852967"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:09:57.852967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 69) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 69 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:09:57.854115"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=95acc7e78bb677a03afc630f422e3ca3 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.865154"], ["nonce", #], ["updated_at", "2015-05-11 20:09:57.865154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2965bb62fb5808492e7f3ec9ec1b6bc9 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.868994"], ["nonce", #], ["updated_at", "2015-05-11 20:09:57.868994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=db268edbcb703639c30f379ba1e69ab6 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.872375"], ["nonce", #], ["updated_at", "2015-05-11 20:09:57.872375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.875144"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:09:57.875144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 70) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 70 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:09:57.876431"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:09:57.880263"], ["nonce", #], ["updated_at", "2015-05-11 20:09:57.880263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e2d1b5e1d71da2cc708ad8334df860d9 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.692916"], ["nonce", #], ["updated_at", "2015-05-11 20:10:35.692916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.707925"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:10:35.707925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 71) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 71 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:10:35.710367"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=11056b6c51116e22a7d17c44712b3fb2 Completed 302 Found in 26ms (ActiveRecord: 4.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.714840"], ["nonce", #], ["updated_at", "2015-05-11 20:10:35.714840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.721971"], ["nonce", #], ["updated_at", "2015-05-11 20:10:35.721971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.723980"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:10:35.723980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 72) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 72 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:10:35.725248"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=49dfbffd958ea38d1e05ca3d75be2d7b Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.728895"], ["nonce", #], ["updated_at", "2015-05-11 20:10:35.728895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=f7e4c7f15e25ab0c0070709371a4d228 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.733059"], ["nonce", #], ["updated_at", "2015-05-11 20:10:35.733059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.735037"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:10:35.735037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 73) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 73 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:10:35.736319"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=d8a7efcd17b1bfa1bece9be24d9c3bfb Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.749727"], ["nonce", #], ["updated_at", "2015-05-11 20:10:35.749727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=99f9815a1c2b0e12d2cb0ca1b2ae8a92 Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.755281"], ["nonce", #], ["updated_at", "2015-05-11 20:10:35.755281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.757681"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:10:35.757681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 74) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 74 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:10:35.759358"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.764721"], ["nonce", #], ["updated_at", "2015-05-11 20:10:35.764721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=54584695a4e15c5fed7a9dd905ac021a Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.770849"], ["nonce", #], ["updated_at", "2015-05-11 20:10:35.770849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2a9c68a8d99bc1ffd37ee2a9da3fce8d Completed 302 Found in 3ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.779689"], ["nonce", "100"], ["updated_at", "2015-05-11 20:10:35.779689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.781620"], ["nonce", "100"], ["updated_at", "2015-05-11 20:10:35.781620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.782617"], ["nonce", "100"], ["updated_at", "2015-05-11 20:10:35.782617"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:35.802106"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:10:35.802106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:35.806406"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:10:35.806406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:35.808609"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:10:35.808609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:35.823169"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 20:10:35.823169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:35.828544"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 20:10:35.828544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 79]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:35.831143"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 20:10:35.831143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 80]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.516014"], ["nonce", "100"], ["updated_at", "2015-05-11 20:10:41.516014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.517349"], ["nonce", "100"], ["updated_at", "2015-05-11 20:10:41.517349"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.519051"], ["nonce", "100"], ["updated_at", "2015-05-11 20:10:41.519051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:41.523182"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:10:41.523182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:41.526496"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:10:41.526496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:41.528690"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-11 20:10:41.528690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:41.532220"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-11 20:10:41.532220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 84]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-11 20:10:41.534909"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-11 20:10:41.534909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 85]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.542908"], ["lti_user_id", "a"], ["updated_at", "2015-05-11 20:10:41.542908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.554028"], ["nonce", #], ["updated_at", "2015-05-11 20:10:41.554028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=f695e17e879be06ca794d2e08a994d7d Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.557361"], ["nonce", #], ["updated_at", "2015-05-11 20:10:41.557361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.561764"], ["nonce", #], ["updated_at", "2015-05-11 20:10:41.561764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.563683"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:10:41.563683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 87) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 87 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:10:41.565538"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=a44975803e977e383510e2075c476e81 Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.569665"], ["nonce", #], ["updated_at", "2015-05-11 20:10:41.569665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.571615"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:10:41.571615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 88) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 88 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:10:41.572738"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b7b37613d1209a09bd3352e1f31832eb Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.578653"], ["nonce", #], ["updated_at", "2015-05-11 20:10:41.578653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.580383"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:10:41.580383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 89) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 89 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:10:41.581514"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=dfc0b5558f4f24f3cb8d1928ef81468d Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.585780"], ["nonce", #], ["updated_at", "2015-05-11 20:10:41.585780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c60dbb6b23be5afba03bb193d62caffd Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.589552"], ["nonce", #], ["updated_at", "2015-05-11 20:10:41.589552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=82614b78161675a634a76056b2d94cd6 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.593142"], ["nonce", #], ["updated_at", "2015-05-11 20:10:41.593142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e53220b55799c2d2b50bc16c5f3aa588 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.596548"], ["nonce", #], ["updated_at", "2015-05-11 20:10:41.596548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-11 20:10:41.598341"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-11 20:10:41.598341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 90) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 90 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-11 20:10:41.599471"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.300985"], ["nonce", "100"], ["updated_at", "2015-05-12 14:46:40.300985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.303325"], ["nonce", "100"], ["updated_at", "2015-05-12 14:46:40.303325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.304064"], ["nonce", "100"], ["updated_at", "2015-05-12 14:46:40.304064"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-12 14:46:40.316282"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-12 14:46:40.316282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-12 14:46:40.319808"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-12 14:46:40.319808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-12 14:46:40.323220"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-12 14:46:40.323220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.335565"], ["lti_user_id", "a"], ["updated_at", "2015-05-12 14:46:40.335565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-12 14:46:40.341424"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-12 14:46:40.341424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-12 14:46:40.344934"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-12 14:46:40.344934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.353810"], ["nonce", #], ["updated_at", "2015-05-12 14:46:40.353810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.359329"], ["nonce", #], ["updated_at", "2015-05-12 14:46:40.359329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.361668"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-12 14:46:40.361668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-12 14:46:40.363719"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=7bb0b84b9958d25d0c586590391635b1 Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.368148"], ["nonce", #], ["updated_at", "2015-05-12 14:46:40.368148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.370008"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-12 14:46:40.370008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-12 14:46:40.371428"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=a0067568d682f819291cca1da68c72e4 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.375197"], ["nonce", #], ["updated_at", "2015-05-12 14:46:40.375197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b3c8aec4bddb50b9bb57d99386283acb Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.378586"], ["nonce", #], ["updated_at", "2015-05-12 14:46:40.378586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.380711"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-12 14:46:40.380711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-12 14:46:40.382048"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=93d177480c5988682c7732714c4cf3ff Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.396681"], ["nonce", #], ["updated_at", "2015-05-12 14:46:40.396681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=3c8f1a2829332e09dd145e3361cc00e8 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.400441"], ["nonce", #], ["updated_at", "2015-05-12 14:46:40.400441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=41e2b826ec58c13b2d83f911a29b398c Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.404868"], ["nonce", #], ["updated_at", "2015-05-12 14:46:40.404868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.408322"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-12 14:46:40.408322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-12 14:46:40.411464"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-12 14:46:40.415617"], ["nonce", #], ["updated_at", "2015-05-12 14:46:40.415617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=a590d2284573a96aa027ed86a87428d2 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 17:59:23.167548"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-13 17:59:23.167548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 17:59:23.172740"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-13 17:59:23.172740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.177983"], ["lti_user_id", "a"], ["updated_at", "2015-05-13 17:59:23.177983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 17:59:23.192221"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 17:59:23.192221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 17:59:23.196511"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 17:59:23.196511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 17:59:23.198862"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 17:59:23.198862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.237160"], ["nonce", "100"], ["updated_at", "2015-05-13 17:59:23.237160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.238795"], ["nonce", "100"], ["updated_at", "2015-05-13 17:59:23.238795"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.241109"], ["nonce", "100"], ["updated_at", "2015-05-13 17:59:23.241109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.245319"], ["nonce", #], ["updated_at", "2015-05-13 17:59:23.245319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.247746"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 17:59:23.247746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 17:59:23.249568"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e972e43aeacba5882cf7a2de3a4f7460 Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.258512"], ["nonce", #], ["updated_at", "2015-05-13 17:59:23.258512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.260395"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 17:59:23.260395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.1ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 17:59:23.261538"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=236faae9a697c02c8bc890fe0aa48051 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.264952"], ["nonce", #], ["updated_at", "2015-05-13 17:59:23.264952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.268575"], ["nonce", #], ["updated_at", "2015-05-13 17:59:23.268575"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=716776b310dd214b4b51e0710b1eb39f Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.273260"], ["nonce", #], ["updated_at", "2015-05-13 17:59:23.273260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.275198"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 17:59:23.275198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 17:59:23.276456"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=26630230c8f8ef494741bba3c7c7f447 Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.280505"], ["nonce", #], ["updated_at", "2015-05-13 17:59:23.280505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=dd018e51b1988afc6a5ae5978629a4af Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.284019"], ["nonce", #], ["updated_at", "2015-05-13 17:59:23.284019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.285750"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 17:59:23.285750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 17:59:23.286890"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.292108"], ["nonce", #], ["updated_at", "2015-05-13 17:59:23.292108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8401a7a692817a5df56688e14ba8d870 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 17:59:23.296339"], ["nonce", #], ["updated_at", "2015-05-13 17:59:23.296339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=9460163212840948380f1853b8668bbf Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:04:42.995678"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-13 18:04:42.995678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:04:43.001756"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-13 18:04:43.001756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.008743"], ["lti_user_id", "a"], ["updated_at", "2015-05-13 18:04:43.008743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:04:43.025315"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:04:43.025315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:04:43.029748"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:04:43.029748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:04:43.032342"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:04:43.032342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.039510"], ["nonce", #], ["updated_at", "2015-05-13 18:04:43.039510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.042311"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:04:43.042311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:04:43.044205"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=f7807a93d7dbfccbb453f1aa32335620 Completed 302 Found in 10ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.053910"], ["nonce", #], ["updated_at", "2015-05-13 18:04:43.053910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.057739"], ["nonce", #], ["updated_at", "2015-05-13 18:04:43.057739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.059606"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:04:43.059606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:04:43.060921"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=bc4553cf2f815bcc8d1b034be6200412 Completed 302 Found in 5ms (ActiveRecord: 1.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.064621"], ["nonce", #], ["updated_at", "2015-05-13 18:04:43.064621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=aa4ac672af08e447908589123fd95f70 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.069099"], ["nonce", #], ["updated_at", "2015-05-13 18:04:43.069099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.071218"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:04:43.071218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:04:43.072563"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=59c0d19abae21b06844efdd0152d92c3 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.076600"], ["nonce", #], ["updated_at", "2015-05-13 18:04:43.076600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=680d94469c0528c74ddeddd3eb359673 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.079998"], ["nonce", #], ["updated_at", "2015-05-13 18:04:43.079998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.081882"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:04:43.081882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:04:43.083143"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.088587"], ["nonce", #], ["updated_at", "2015-05-13 18:04:43.088587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=32feb1266469346457cdd21ac6e648bd Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.093249"], ["nonce", #], ["updated_at", "2015-05-13 18:04:43.093249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b1bef7aca81a8e53b30da9d0bec1eb7d Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.133603"], ["nonce", "100"], ["updated_at", "2015-05-13 18:04:43.133603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.134508"], ["nonce", "100"], ["updated_at", "2015-05-13 18:04:43.134508"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:04:43.136037"], ["nonce", "100"], ["updated_at", "2015-05-13 18:04:43.136037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.525170"], ["nonce", #], ["updated_at", "2015-05-13 18:06:31.525170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.537604"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:06:31.537604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:06:31.539586"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=a863182431dc8d9b9e57496c401da8b2 Completed 302 Found in 22ms (ActiveRecord: 4.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.544318"], ["nonce", #], ["updated_at", "2015-05-13 18:06:31.544318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.552059"], ["nonce", #], ["updated_at", "2015-05-13 18:06:31.552059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=43959c0f94616be22dc9ad5fdcf5573d Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.558681"], ["nonce", #], ["updated_at", "2015-05-13 18:06:31.558681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.560982"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:06:31.560982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:06:31.563091"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=38d2be8f739318a191c21c0d6f98815b Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.568079"], ["nonce", #], ["updated_at", "2015-05-13 18:06:31.568079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.570337"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:06:31.570337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:06:31.571472"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=3e2045f49808a4e18f0f3d4dc03aa33b Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.576041"], ["nonce", #], ["updated_at", "2015-05-13 18:06:31.576041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2fb4bd4627711f1f46ef9fd293a1e7a4 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.580840"], ["nonce", #], ["updated_at", "2015-05-13 18:06:31.580840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=5816bd2befba04bfb5a32e383b5631b5 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.585318"], ["nonce", #], ["updated_at", "2015-05-13 18:06:31.585318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8117be08efbb0d41e936b1eae298b889 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.590933"], ["nonce", #], ["updated_at", "2015-05-13 18:06:31.590933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.592782"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:06:31.592782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:06:31.593963"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.640819"], ["nonce", "100"], ["updated_at", "2015-05-13 18:06:31.640819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.641786"], ["nonce", "100"], ["updated_at", "2015-05-13 18:06:31.641786"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.643583"], ["nonce", "100"], ["updated_at", "2015-05-13 18:06:31.643583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:06:31.647869"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:06:31.647869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:06:31.651296"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:06:31.651296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:06:31.653825"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:06:31.653825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:06:31.656949"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-13 18:06:31.656949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 18]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:06:31.659665"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-13 18:06:31.659665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 19]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:06:31.669961"], ["lti_user_id", "a"], ["updated_at", "2015-05-13 18:06:31.669961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:28:12.106130"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:28:12.106130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:28:12.112405"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:28:12.112405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:28:12.115860"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:28:12.115860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:28:12.119763"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-13 18:28:12.119763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:28:12.123480"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-13 18:28:12.123480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.9ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.137060"], ["lti_user_id", "a"], ["updated_at", "2015-05-13 18:28:12.137060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.179632"], ["nonce", #], ["updated_at", "2015-05-13 18:28:12.179632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.182365"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:28:12.182365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:28:12.184039"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=5092879000cdcbe72175d6538ec2bdeb Completed 302 Found in 12ms (ActiveRecord: 3.9ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.188327"], ["nonce", #], ["updated_at", "2015-05-13 18:28:12.188327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=813dcb9a354ccd0e6f0e3b37022afc93 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.191708"], ["nonce", #], ["updated_at", "2015-05-13 18:28:12.191708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.194895"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:28:12.194895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:28:12.196333"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=3ca0305c8d6ef25390036cdc6a57c84d Completed 302 Found in 6ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.204415"], ["nonce", #], ["updated_at", "2015-05-13 18:28:12.204415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.206944"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:28:12.206944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:28:12.208595"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=6afa40db6e4dffac4c9d35bdb7ce2685 Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.213182"], ["nonce", #], ["updated_at", "2015-05-13 18:28:12.213182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.217741"], ["nonce", #], ["updated_at", "2015-05-13 18:28:12.217741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=078021b7d7bbeb60f1c6373b51216869 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.222134"], ["nonce", #], ["updated_at", "2015-05-13 18:28:12.222134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8616d7ae6ec983d3c68bf592283a32b1 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.226001"], ["nonce", #], ["updated_at", "2015-05-13 18:28:12.226001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=4113129b1d3bfa03689d7b2ca4cab4dd Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.231552"], ["nonce", #], ["updated_at", "2015-05-13 18:28:12.231552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.233797"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:28:12.233797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:28:12.235049"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.3ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.269242"], ["nonce", "100"], ["updated_at", "2015-05-13 18:28:12.269242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.270235"], ["nonce", "100"], ["updated_at", "2015-05-13 18:28:12.270235"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:28:12.271930"], ["nonce", "100"], ["updated_at", "2015-05-13 18:28:12.271930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.549071"], ["nonce", #], ["updated_at", "2015-05-13 18:47:54.549071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.568156"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:47:54.568156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:47:54.571094"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=05d5858b4bdbf610b0db5d6f45eb1f85 Completed 302 Found in 30ms (ActiveRecord: 5.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.582992"], ["nonce", #], ["updated_at", "2015-05-13 18:47:54.582992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.585073"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:47:54.585073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:47:54.586291"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=17637bfd3269658a93228afd4cd93e60 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.589827"], ["nonce", #], ["updated_at", "2015-05-13 18:47:54.589827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.591720"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:47:54.591720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:47:54.593218"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=cd78dee8dd296247f921186639f000b1 Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.598142"], ["nonce", #], ["updated_at", "2015-05-13 18:47:54.598142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.602192"], ["nonce", #], ["updated_at", "2015-05-13 18:47:54.602192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=eb2d005dc6a5ff50d2eda3483ef1cf39 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.614870"], ["nonce", #], ["updated_at", "2015-05-13 18:47:54.614870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=0301c797752d52271b78dd3bc41668c5 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.619923"], ["nonce", #], ["updated_at", "2015-05-13 18:47:54.619923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=706e83a9dce7075c3206048873a36cd4 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.623419"], ["nonce", #], ["updated_at", "2015-05-13 18:47:54.623419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.625258"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-13 18:47:54.625258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-13 18:47:54.626579"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.630970"], ["nonce", #], ["updated_at", "2015-05-13 18:47:54.630970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8010525928ca00032c811cf171081ab5 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:47:54.654846"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:47:54.654846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:47:54.658609"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:47:54.658609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:47:54.661873"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-13 18:47:54.661873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.675640"], ["lti_user_id", "a"], ["updated_at", "2015-05-13 18:47:54.675640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:47:54.681855"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-13 18:47:54.681855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-13 18:47:54.684821"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-13 18:47:54.684821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.694468"], ["nonce", "100"], ["updated_at", "2015-05-13 18:47:54.694468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.695940"], ["nonce", "100"], ["updated_at", "2015-05-13 18:47:54.695940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-13 18:47:54.696731"], ["nonce", "100"], ["updated_at", "2015-05-13 18:47:54.696731"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.8ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (1.4ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.4ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (1.1ms) DELETE FROM "dce_lti_nonces";  (0.8ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.6ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.834238"], ["lti_user_id", "a"], ["updated_at", "2015-05-22 17:38:03.834238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:03.840671"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:38:03.840671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:03.845409"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:38:03.845409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:03.848197"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:38:03.848197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:03.850603"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-22 17:38:03.850603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:03.854592"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-22 17:38:03.854592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 16]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.871482"], ["nonce", "100"], ["updated_at", "2015-05-22 17:38:03.871482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.874286"], ["nonce", "100"], ["updated_at", "2015-05-22 17:38:03.874286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.875043"], ["nonce", "100"], ["updated_at", "2015-05-22 17:38:03.875043"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.886172"], ["nonce", #], ["updated_at", "2015-05-22 17:38:03.886172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.891579"], ["nonce", #], ["updated_at", "2015-05-22 17:38:03.891579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.893738"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:38:03.893738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:38:03.895519"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=3c9f0749d0ad75642306122385a0547a Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.899666"], ["nonce", #], ["updated_at", "2015-05-22 17:38:03.899666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.902562"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:38:03.902562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:38:03.904345"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=22075d7ad6caf0eebf2f2b2f4554b36e Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.910987"], ["nonce", #], ["updated_at", "2015-05-22 17:38:03.910987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.913667"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:38:03.913667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:38:03.915236"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=aeb1a21374aaa7b902445a0a19f77c8f Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.919266"], ["nonce", #], ["updated_at", "2015-05-22 17:38:03.919266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8b90878eb293c070565d896337c871e3 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.932192"], ["nonce", #], ["updated_at", "2015-05-22 17:38:03.932192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=ff66f91fbd3c7db9bcb5fd72ba6040bf Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.935716"], ["nonce", #], ["updated_at", "2015-05-22 17:38:03.935716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.937673"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:38:03.937673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:38:03.939136"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.943563"], ["nonce", #], ["updated_at", "2015-05-22 17:38:03.943563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=8aa23d502a7466eddbacec42fbb520da Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:03.947382"], ["nonce", #], ["updated_at", "2015-05-22 17:38:03.947382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=9d29d4dac5fd77525bb11e88b4232099 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:25.893178"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-22 17:38:25.893178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 21]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:25.896581"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-22 17:38:25.896581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 22]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:25.900009"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:38:25.900009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:25.903340"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:38:25.903340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:38:25.906011"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:38:25.906011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.912262"], ["lti_user_id", "a"], ["updated_at", "2015-05-22 17:38:25.912262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.930155"], ["nonce", #], ["updated_at", "2015-05-22 17:38:25.930155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.938530"], ["nonce", #], ["updated_at", "2015-05-22 17:38:25.938530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.940461"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:38:25.940461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:38:25.942216"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=60eb5d5dbdd60cca2fa2390405b038c8 Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.946926"], ["nonce", #], ["updated_at", "2015-05-22 17:38:25.946926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.948728"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:38:25.948728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.1ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:38:25.949805"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=063e1481f2889e6c74ddcabafdb2da64 Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.953415"], ["nonce", #], ["updated_at", "2015-05-22 17:38:25.953415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=0fb9eb025221dca415f9ecbaa5ba5b12 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.956695"], ["nonce", #], ["updated_at", "2015-05-22 17:38:25.956695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.958459"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:38:25.958459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:38:25.960644"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=114538f4a7f61a051df5c2ff92408459 Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.965202"], ["nonce", #], ["updated_at", "2015-05-22 17:38:25.965202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=672833dd06a5c16d812d644ad0aef2fd Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.968948"], ["nonce", #], ["updated_at", "2015-05-22 17:38:25.968948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=23f60c50797724f5409537624bbda512 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.973519"], ["nonce", #], ["updated_at", "2015-05-22 17:38:25.973519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=78b7ee794457eef82b799866192e083f Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.976919"], ["nonce", #], ["updated_at", "2015-05-22 17:38:25.976919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.978718"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:38:25.978718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:38:25.979945"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.996300"], ["nonce", "100"], ["updated_at", "2015-05-22 17:38:25.996300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.997190"], ["nonce", "100"], ["updated_at", "2015-05-22 17:38:25.997190"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:38:25.998759"], ["nonce", "100"], ["updated_at", "2015-05-22 17:38:25.998759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (1.6ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.359043"], ["nonce", #], ["updated_at", "2015-05-22 17:40:03.359043"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.363528"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:40:03.363528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 31) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 31 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:40:03.365564"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=34742d0d881ffbb0824c0f13624979db Completed 302 Found in 11ms (ActiveRecord: 3.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.373912"], ["nonce", #], ["updated_at", "2015-05-22 17:40:03.373912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=52e187e807068f04be945a2bcb0a9fbf Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.377241"], ["nonce", #], ["updated_at", "2015-05-22 17:40:03.377241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.380775"], ["nonce", #], ["updated_at", "2015-05-22 17:40:03.380775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.382747"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:40:03.382747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 32) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 32 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:40:03.384180"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=fd3335ac29e09b2fc6e6254f7291c19d Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.388408"], ["nonce", #], ["updated_at", "2015-05-22 17:40:03.388408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.390509"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:40:03.390509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 33) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 33 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:40:03.391880"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e1b5ceea8566bf3f5712589a8a4a670a Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.396533"], ["nonce", #], ["updated_at", "2015-05-22 17:40:03.396533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=82460c6ca586f747baa977f852f3acb7 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.400525"], ["nonce", #], ["updated_at", "2015-05-22 17:40:03.400525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e506eedf9c18300e034213b24d0ba115 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.404878"], ["nonce", #], ["updated_at", "2015-05-22 17:40:03.404878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=24decb676ef7ab2fee716ac56c6f716a Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.409185"], ["nonce", #], ["updated_at", "2015-05-22 17:40:03.409185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.410980"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:40:03.410980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:40:03.412324"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.427951"], ["nonce", "100"], ["updated_at", "2015-05-22 17:40:03.427951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.428887"], ["nonce", "100"], ["updated_at", "2015-05-22 17:40:03.428887"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.430480"], ["nonce", "100"], ["updated_at", "2015-05-22 17:40:03.430480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:40:03.435578"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:40:03.435578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:40:03.438764"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:40:03.438764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:40:03.441342"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:40:03.441342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:40:03.445604"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-22 17:40:03.445604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 38]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:40:03.448712"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-22 17:40:03.448712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 39]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:40:03.458744"], ["lti_user_id", "a"], ["updated_at", "2015-05-22 17:40:03.458744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:57.994526"], ["nonce", #], ["updated_at", "2015-05-22 17:41:57.994526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:57.997453"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:41:57.997453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:41:57.999553"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=99d6542421b38879be738f8093eab9c9 Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.008154"], ["nonce", #], ["updated_at", "2015-05-22 17:41:58.008154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.010550"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:41:58.010550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:41:58.012072"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=1b8b88221d0bc221eb312757e9d1fb79 Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.015977"], ["nonce", #], ["updated_at", "2015-05-22 17:41:58.015977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.019673"], ["nonce", #], ["updated_at", "2015-05-22 17:41:58.019673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.021542"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:41:58.021542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:41:58.022917"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c51a6e727ff94bda8556a8be879c3553 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.028132"], ["nonce", #], ["updated_at", "2015-05-22 17:41:58.028132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=daa974dd2939178a3878e516903f806b Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.040112"], ["nonce", #], ["updated_at", "2015-05-22 17:41:58.040112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=24b5adedfa01d14d9ac0b3be251813bf Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.045119"], ["nonce", #], ["updated_at", "2015-05-22 17:41:58.045119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=0f1543fac40d6c6183ecf6be6cb4ab0d Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.049001"], ["nonce", #], ["updated_at", "2015-05-22 17:41:58.049001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.050903"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:41:58.050903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:41:58.052230"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.056185"], ["nonce", #], ["updated_at", "2015-05-22 17:41:58.056185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=338ab08a16bf08aa3116bc49761f5b28 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.094302"], ["lti_user_id", "a"], ["updated_at", "2015-05-22 17:41:58.094302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:41:58.100876"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:41:58.100876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:41:58.104558"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:41:58.104558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:41:58.107991"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:41:58.107991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:41:58.110298"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-22 17:41:58.110298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:41:58.112961"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-22 17:41:58.112961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 10]]  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.118740"], ["nonce", "100"], ["updated_at", "2015-05-22 17:41:58.118740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.120733"], ["nonce", "100"], ["updated_at", "2015-05-22 17:41:58.120733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:41:58.121544"], ["nonce", "100"], ["updated_at", "2015-05-22 17:41:58.121544"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.258163"], ["nonce", "100"], ["updated_at", "2015-05-22 17:42:49.258163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.260764"], ["nonce", "100"], ["updated_at", "2015-05-22 17:42:49.260764"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.263043"], ["nonce", "100"], ["updated_at", "2015-05-22 17:42:49.263043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.314371"], ["lti_user_id", "a"], ["updated_at", "2015-05-22 17:42:49.314371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:42:49.324594"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-22 17:42:49.324594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:42:49.328451"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-22 17:42:49.328451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 13]]  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:42:49.331352"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:42:49.331352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:42:49.334373"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:42:49.334373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 17:42:49.337545"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 17:42:49.337545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.347375"], ["nonce", #], ["updated_at", "2015-05-22 17:42:49.347375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=5dc9838382e967722234a7aaaa1954a4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.350987"], ["nonce", #], ["updated_at", "2015-05-22 17:42:49.350987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.352945"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:42:49.352945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:42:49.354720"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=1804a01a695dc05d678d49e595e5cd84 Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.363257"], ["nonce", #], ["updated_at", "2015-05-22 17:42:49.363257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.365621"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:42:49.365621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:42:49.366959"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c8e735b73826a9ff85f244de922ee943 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.370640"], ["nonce", #], ["updated_at", "2015-05-22 17:42:49.370640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.374311"], ["nonce", #], ["updated_at", "2015-05-22 17:42:49.374311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.376229"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:42:49.376229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:42:49.377582"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=174e6f48b9e64c1e9b4608383f7492cb Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.382191"], ["nonce", #], ["updated_at", "2015-05-22 17:42:49.382191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=11ed16ceefcf81424fc280ceee2ff3b0 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.386728"], ["nonce", #], ["updated_at", "2015-05-22 17:42:49.386728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b1ea67d510d9d6de3e520e42a3ed6d44 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.390918"], ["nonce", #], ["updated_at", "2015-05-22 17:42:49.390918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.392950"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 17:42:49.392950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 17:42:49.394264"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 17:42:49.398906"], ["nonce", #], ["updated_at", "2015-05-22 17:42:49.398906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e0c78b7d5e4407fd8feabb7ab05d04f9 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 13:45:33 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 13:45:33 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 89ms (Views: 88.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.3ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 13:45:47 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 13:45:47 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.8ms) Completed 200 OK in 84ms (Views: 83.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 13:48:43 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.2ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 13:48:43 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 85ms (Views: 85.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 13:49:05 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 13:49:05 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 89ms (Views: 89.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 13:49:19 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 13:49:19 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 82ms (Views: 81.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 13:49:32 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 13:49:32 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 84ms (Views: 84.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 13:50:13 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 13:50:13 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.6ms) Completed 200 OK in 83ms (Views: 82.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 13:51:00 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 13:51:00 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.8ms) Completed 200 OK in 82ms (Views: 81.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 13:51:30 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 13:51:30 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.8ms) Completed 200 OK in 87ms (Views: 86.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 14:05:58 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 14:05:58 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 84ms (Views: 83.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.3ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 14:06:07 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 12ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 14:06:07 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.8ms) Completed 200 OK in 83ms (Views: 82.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 14:06:12 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 14:06:12 -0400 Processing by DceLti::SessionsController#invalid as HTML Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms) Completed 200 OK in 86ms (Views: 85.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.3ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:12.325400"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:06:12.325400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.3ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:12.332004"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:06:12.332004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:12.335250"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:06:12.335250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.352946"], ["lti_user_id", "a"], ["updated_at", "2015-05-22 18:06:12.352946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:12.360635"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-22 18:06:12.360635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 25]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:12.365859"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-22 18:06:12.365859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 26]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.374523"], ["nonce", #], ["updated_at", "2015-05-22 18:06:12.374523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.380945"], ["nonce", #], ["updated_at", "2015-05-22 18:06:12.380945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.384788"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:06:12.384788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:06:12.387562"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=371ac9ceada4916ad60921877bcef56c Completed 302 Found in 10ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.393711"], ["nonce", #], ["updated_at", "2015-05-22 18:06:12.393711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b7a2793481dd338ca3c3128dedf18a41 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.397988"], ["nonce", #], ["updated_at", "2015-05-22 18:06:12.397988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.400200"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:06:12.400200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1 SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:06:12.401927"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=e0e81080302b5d7c8622983bb7c79fd3 Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.407176"], ["nonce", #], ["updated_at", "2015-05-22 18:06:12.407176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.411577"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:06:12.411577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:06:12.413802"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=9c5bc77266523be9794052412968d79e Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.440265"], ["nonce", #], ["updated_at", "2015-05-22 18:06:12.440265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=249d8d3fb3fd1c124bc8f4c7b4ac8d78 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.445072"], ["nonce", #], ["updated_at", "2015-05-22 18:06:12.445072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.448028"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:06:12.448028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:06:12.449874"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 8ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.456621"], ["nonce", #], ["updated_at", "2015-05-22 18:06:12.456621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=99444a735b17b5a5a5970799835c394f Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.461600"], ["nonce", #], ["updated_at", "2015-05-22 18:06:12.461600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=6dfad10dc5c9f75b0a92c0f1684d71d8 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.483704"], ["nonce", "100"], ["updated_at", "2015-05-22 18:06:12.483704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.486270"], ["nonce", "100"], ["updated_at", "2015-05-22 18:06:12.486270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:12.487474"], ["nonce", "100"], ["updated_at", "2015-05-22 18:06:12.487474"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.390067"], ["nonce", #], ["updated_at", "2015-05-22 18:06:40.390067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=6bbc57443a4de9dc993d4271e5824fb9 Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.396199"], ["nonce", #], ["updated_at", "2015-05-22 18:06:40.396199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.405821"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:06:40.405821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 31) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 31 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:06:40.408110"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=745b7763fa2adcffeb480c6c0c354367 Completed 302 Found in 14ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.413087"], ["nonce", #], ["updated_at", "2015-05-22 18:06:40.413087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.415436"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:06:40.415436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 32) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 32 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:06:40.416667"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=14419db4e137edb660e36fa718a51fb8 Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.420434"], ["nonce", #], ["updated_at", "2015-05-22 18:06:40.420434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.422193"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:06:40.422193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 33) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 33 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:06:40.423338"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=c838dc35dfedb21bd7cb32ac720c39eb Completed 302 Found in 4ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.427183"], ["nonce", #], ["updated_at", "2015-05-22 18:06:40.427183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.440856"], ["nonce", #], ["updated_at", "2015-05-22 18:06:40.440856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=30e68f12037387e27884c16f33679907 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.444513"], ["nonce", #], ["updated_at", "2015-05-22 18:06:40.444513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=d983e373d979394c3fa9813f45e144b0 Completed 302 Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.448189"], ["nonce", #], ["updated_at", "2015-05-22 18:06:40.448189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.450688"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:06:40.450688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 34) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 34 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:06:40.452170"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.456990"], ["nonce", #], ["updated_at", "2015-05-22 18:06:40.456990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b937305b4b6fa0edb46f44138ad87de6 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 14:06:40 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 14:06:40 -0400 Processing by DceLti::SessionsController#invalid as HTML Completed 200 OK in 91ms (Views: 90.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.582789"], ["nonce", "100"], ["updated_at", "2015-05-22 18:06:40.582789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.584595"], ["nonce", "100"], ["updated_at", "2015-05-22 18:06:40.584595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.585360"], ["nonce", "100"], ["updated_at", "2015-05-22 18:06:40.585360"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:40.598740"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-22 18:06:40.598740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 35]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:40.603485"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-22 18:06:40.603485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 36]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:40.607692"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:06:40.607692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:40.613188"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:06:40.613188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:06:40.617733"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:06:40.617733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:06:40.625011"], ["lti_user_id", "a"], ["updated_at", "2015-05-22 18:06:40.625011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.2ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1 SQL (0.4ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:08:35.559926"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:08:35.559926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:08:35.566999"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:08:35.566999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:08:35.570603"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:08:35.570603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.589187"], ["lti_user_id", "a"], ["updated_at", "2015-05-22 18:08:35.589187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:08:35.595446"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-22 18:08:35.595446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:08:35.598280"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-22 18:08:35.598280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 14:08:35 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 14:08:35 -0400 Processing by DceLti::SessionsController#invalid as HTML Completed 200 OK in 88ms (Views: 87.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.743124"], ["nonce", "100"], ["updated_at", "2015-05-22 18:08:35.743124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.745910"], ["nonce", "100"], ["updated_at", "2015-05-22 18:08:35.745910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.746817"], ["nonce", "100"], ["updated_at", "2015-05-22 18:08:35.746817"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.752235"], ["nonce", #], ["updated_at", "2015-05-22 18:08:35.752235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.754834"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:08:35.754834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:08:35.756831"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=fa864c9196ab9987fa57f28200aa68d9 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.761419"], ["nonce", #], ["updated_at", "2015-05-22 18:08:35.761419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.764636"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:08:35.764636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:08:35.766266"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b1dba82f00fd4cc0e6f446258e576796 Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.771880"], ["nonce", #], ["updated_at", "2015-05-22 18:08:35.771880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.774709"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:08:35.774709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:08:35.776259"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=1f4774ec9571c5c096fbd902a6d4176a Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.792326"], ["nonce", #], ["updated_at", "2015-05-22 18:08:35.792326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.797460"], ["nonce", #], ["updated_at", "2015-05-22 18:08:35.797460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=3d4c9f76ce570d7ec079286d9ef4623b Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.812992"], ["nonce", #], ["updated_at", "2015-05-22 18:08:35.812992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=2624e8d40648ff5bdb755a013a634fea Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.818004"], ["nonce", #], ["updated_at", "2015-05-22 18:08:35.818004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=480ef9d233f87c2b9420c87cce32e8ec Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.823222"], ["nonce", #], ["updated_at", "2015-05-22 18:08:35.823222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.825521"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:08:35.825521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:08:35.827120"], ["user_image", #]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:08:35.831847"], ["nonce", #], ["updated_at", "2015-05-22 18:08:35.831847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=320667804ba8ca081db647cd0199ae05 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'  (0.2ms) DELETE FROM "dce_lti_nonces";  (0.1ms) DELETE FROM "dce_lti_users";  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:51.989244"], ["nonce", "100"], ["updated_at", "2015-05-22 18:13:51.989244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:51.992428"], ["nonce", "100"], ["updated_at", "2015-05-22 18:13:51.992428"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce" DETAIL: Key (nonce)=(100) already exists. : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Creating nonce failed: "100"  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:51.994585"], ["nonce", "100"], ["updated_at", "2015-05-22 18:13:51.994585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::ConfigsController#index as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Started GET "/" for 127.0.0.1 at 2015-05-22 14:13:52 -0400 Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://www.example.com/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-22 14:13:52 -0400 Processing by DceLti::SessionsController#invalid as HTML Completed 200 OK in 84ms (Views: 84.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by PostsController#index as HTML DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1 Redirected to http://test.host/dce_lti/sessions/invalid Filter chain halted as :authenticate_via_lti rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"a key"}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.156628"], ["nonce", #], ["updated_at", "2015-05-22 18:13:52.156628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.159041"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:13:52.159041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:13:52.161152"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=aefe1050d611fe252ae150c0c3d78d93 Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"oauth_consumer_key"=>"consumer_key"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.165526"], ["nonce", #], ["updated_at", "2015-05-22 18:13:52.165526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.167536"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:13:52.167536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:13:52.169105"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=b6a3523e5ef172984c748e43d9dc8afd Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.174536"], ["nonce", #], ["updated_at", "2015-05-22 18:13:52.174536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=275d1fab30c3ff07c0d2b0fa8289c5ee Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.178235"], ["nonce", #], ["updated_at", "2015-05-22 18:13:52.178235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.180161"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:13:52.180161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:13:52.181509"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=33b992b385e0b49af96364a69375afab Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.193245"], ["nonce", #], ["updated_at", "2015-05-22 18:13:52.193245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"asdfasdfasdfasfd"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.200276"], ["nonce", #], ["updated_at", "2015-05-22 18:13:52.200276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=a0881ea1c2aab92393da2e2ab9bef5d6 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.206071"], ["nonce", #], ["updated_at", "2015-05-22 18:13:52.206071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=89fe31bd6a32c56554b085f99bafb4ec Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Parameters: {"user_id"=>"oauth_id"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.211767"], ["nonce", #], ["updated_at", "2015-05-22 18:13:52.211767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/?_dummy_session=d64d1616306220f802ddcd0369987bcc Completed 302 Found in 9ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.223657"], ["nonce", #], ["updated_at", "2015-05-22 18:13:52.223657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.226016"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-22 18:13:52.226016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1 SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #], ["lis_person_name_family", #], ["lis_person_name_full", #], ["lis_person_name_given", #], ["lis_person_sourcedid", #], ["updated_at", "2015-05-22 18:13:52.227735"], ["user_image", #]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/sessions/create Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN Processing by DceLti::SessionsController#create as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:13:52.244959"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:13:52.244959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:13:52.249380"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:13:52.249380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:13:52.252308"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-22 18:13:52.252308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:13:52.256278"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-22 18:13:52.256278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 8]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1 SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-22 18:13:52.261155"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-22 18:13:52.261155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.0ms) BEGIN DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-22 18:13:52.272296"], ["lti_user_id", "a"], ["updated_at", "2015-05-22 18:13:52.272296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1 DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1  (0.1ms) ROLLBACK