witch_doctor 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/Rakefile +1 -0
- data/app/controllers/witch_doctor/virus_scans_controller.rb +13 -2
- data/app/models/virus_scan.rb +0 -3
- data/app/permiterters/virus_scan_permitter.rb +7 -0
- data/lib/witch_doctor/antivirus +0 -0
- data/lib/witch_doctor/antivirus_concern.rb +3 -1
- data/lib/witch_doctor/version.rb +1 -1
- data/spec/controllers/virus_scans_controller_spec.rb +4 -4
- data/spec/dummy/README.rdoc +15 -248
- data/spec/dummy/Rakefile +1 -2
- data/spec/dummy/app/assets/javascripts/application.js +3 -5
- data/spec/dummy/app/assets/stylesheets/application.css +5 -3
- data/spec/dummy/app/controllers/application_controller.rb +3 -1
- data/spec/dummy/app/views/layouts/application.html.erb +2 -2
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +7 -37
- data/spec/dummy/config/boot.rb +4 -9
- data/spec/dummy/config/database.yml +8 -8
- data/spec/dummy/config/environment.rb +3 -3
- data/spec/dummy/config/environments/development.rb +18 -18
- data/spec/dummy/config/environments/production.rb +40 -29
- data/spec/dummy/config/environments/test.rb +16 -14
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +6 -5
- data/spec/dummy/config/initializers/mime_types.rb +0 -1
- data/spec/dummy/config/initializers/session_store.rb +1 -6
- data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/spec/dummy/config/locales/en.yml +20 -2
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +8 -8
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +277 -0
- data/spec/dummy/log/test.log +1438 -0
- data/spec/dummy/public/404.html +54 -13
- data/spec/dummy/public/422.html +54 -13
- data/spec/dummy/public/500.html +53 -12
- data/spec/models/virus_scan_spec.rb +1 -1
- data/spec/permitters/virus_scan_permitter_spec.rb +34 -0
- metadata +37 -27
- data/spec/dummy/script/rails +0 -6
@@ -0,0 +1,1438 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
4
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
5
|
+
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
6
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
9
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
11
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
12
|
+
Parameters: {"token"=>"999", "id"=>"1"}
|
13
|
+
Completed 403 Forbidden in 0.6ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
14
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
15
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
16
|
+
[1m[36m (13.7ms)[0m [1mDELETE FROM "documents";[0m
|
17
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
18
|
+
[1m[36m (17.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
19
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
20
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
21
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
23
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
24
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
25
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
26
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
28
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
29
|
+
Parameters: {"id"=>"1"}
|
30
|
+
Completed 401 Unauthorized in 0.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
31
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
32
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33
|
+
[1m[36m (13.1ms)[0m [1mDELETE FROM "documents";[0m
|
34
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
35
|
+
[1m[36m (30.6ms)[0m [1mDELETE FROM "virus_scans";[0m
|
36
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
37
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
38
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
39
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
40
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
41
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
42
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
43
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
44
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
45
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
46
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
47
|
+
[1m[36mVirusScan Load (0.2ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1[0m [["id", "1"]]
|
48
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
49
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:15:50.302175', "updated_at" = '2015-02-12 12:15:50.303103' WHERE "virus_scans"."id" = 1[0m
|
50
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
51
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
52
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
|
53
|
+
Completed 200 OK in 10.9ms (Views: 4.7ms | ActiveRecord: 0.5ms)
|
54
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
55
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
|
56
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57
|
+
[1m[35m (27.8ms)[0m DELETE FROM "documents";
|
58
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
59
|
+
[1m[35m (30.2ms)[0m DELETE FROM "virus_scans";
|
60
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
61
|
+
[1m[35m (0.1ms)[0m begin transaction
|
62
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
63
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
64
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
66
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
67
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
68
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
69
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
70
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Wazaaap"}, "id"=>"1"}
|
71
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
|
72
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
73
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
74
|
+
Completed 400 Bad Request in 6.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
75
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
76
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
77
|
+
[1m[36m (21.6ms)[0m [1mDELETE FROM "documents";[0m
|
78
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
79
|
+
[1m[36m (22.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
80
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
81
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
84
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
85
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
86
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
87
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
88
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
89
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
90
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean", "mount_point"=>"abc"}, "id"=>"1"}
|
91
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1[0m [["id", "1"]]
|
92
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
93
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
94
|
+
Completed 406 Not Acceptable in 1.2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
95
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
96
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
97
|
+
[1m[35m (15.5ms)[0m DELETE FROM "documents";
|
98
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
99
|
+
[1m[35m (12.6ms)[0m DELETE FROM "virus_scans";
|
100
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
101
|
+
[1m[35m (0.0ms)[0m begin transaction
|
102
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
103
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
104
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
105
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
106
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
107
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
108
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
109
|
+
Processing by WitchDoctor::VirusScansController#update as HTML
|
110
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
111
|
+
Completed 406 Not Acceptable in 0.7ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
112
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
113
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
114
|
+
[1m[35m (27.9ms)[0m DELETE FROM "documents";
|
115
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
116
|
+
[1m[35m (36.5ms)[0m DELETE FROM "virus_scans";
|
117
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
118
|
+
[1m[35m (0.0ms)[0m begin transaction
|
119
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
120
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
121
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
122
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
123
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
124
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
125
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
126
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
127
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
128
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
129
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
130
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
131
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
132
|
+
Parameters: {"token"=>999}
|
133
|
+
Completed 403 Forbidden in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
134
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
135
|
+
[1m[35m (26.4ms)[0m DELETE FROM "documents";
|
136
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
137
|
+
[1m[35m (26.1ms)[0m DELETE FROM "virus_scans";
|
138
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
142
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
143
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
144
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
145
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
146
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
147
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
148
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
149
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
150
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
151
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
152
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
153
|
+
Completed 401 Unauthorized in 0.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
154
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
155
|
+
[1m[35m (13.6ms)[0m DELETE FROM "documents";
|
156
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
157
|
+
[1m[35m (15.5ms)[0m DELETE FROM "virus_scans";
|
158
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
159
|
+
[1m[35m (0.1ms)[0m begin transaction
|
160
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
161
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
162
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
163
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
164
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
165
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
166
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
167
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
168
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
169
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
170
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
171
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
172
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
173
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
174
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
175
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
176
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
177
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
178
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
179
|
+
Parameters: {"token"=>"1234"}
|
180
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2[0m
|
181
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
|
182
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1[0m
|
183
|
+
Completed 200 OK in 8.7ms (Views: 1.8ms | ActiveRecord: 0.2ms)
|
184
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
185
|
+
[1m[36m (13.6ms)[0m [1mDELETE FROM "documents";[0m
|
186
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
187
|
+
[1m[36m (13.5ms)[0m [1mDELETE FROM "virus_scans";[0m
|
188
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
189
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
190
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
191
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
192
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
193
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
194
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
195
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
196
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
197
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
198
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
199
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
200
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
202
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
203
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
204
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
205
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
207
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
209
|
+
Parameters: {"token"=>"1234"}
|
210
|
+
Completed 406 Not Acceptable in 0.4ms (ActiveRecord: 0.0ms)
|
211
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
212
|
+
[1m[36m (14.0ms)[0m [1mDELETE FROM "documents";[0m
|
213
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
214
|
+
[1m[36m (13.2ms)[0m [1mDELETE FROM "virus_scans";[0m
|
215
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
216
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
217
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
218
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
219
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
220
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
221
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
222
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
223
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
224
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
225
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
226
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
227
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
228
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
231
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
232
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
233
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
235
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
236
|
+
Parameters: {"token"=>"1234"}
|
237
|
+
Completed 406 Not Acceptable in 0.4ms (ActiveRecord: 0.0ms)
|
238
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
239
|
+
[1m[36m (14.2ms)[0m [1mDELETE FROM "documents";[0m
|
240
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
241
|
+
[1m[36m (13.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
242
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
243
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
244
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
245
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
246
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
247
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
248
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
249
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
252
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
254
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
255
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
256
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
257
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
258
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
260
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
|
261
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
262
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
263
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2
|
264
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1[0m
|
265
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1
|
266
|
+
Completed 200 OK in 2.5ms (Views: 1.6ms | ActiveRecord: 0.2ms)
|
267
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
268
|
+
[1m[35m (15.3ms)[0m DELETE FROM "documents";
|
269
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
270
|
+
[1m[35m (23.3ms)[0m DELETE FROM "virus_scans";
|
271
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
272
|
+
[1m[35m (0.1ms)[0m begin transaction
|
273
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
274
|
+
[1m[35m (27.9ms)[0m DELETE FROM "documents";
|
275
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
276
|
+
[1m[35m (10.7ms)[0m DELETE FROM "virus_scans";
|
277
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
278
|
+
[1m[35m (0.1ms)[0m begin transaction
|
279
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
280
|
+
[1m[35m (13.6ms)[0m DELETE FROM "documents";
|
281
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
282
|
+
[1m[35m (13.2ms)[0m DELETE FROM "virus_scans";
|
283
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
284
|
+
[1m[35m (0.1ms)[0m begin transaction
|
285
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
286
|
+
[1m[35m (13.1ms)[0m DELETE FROM "documents";
|
287
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
288
|
+
[1m[35m (13.1ms)[0m DELETE FROM "virus_scans";
|
289
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
290
|
+
[1m[35m (0.1ms)[0m begin transaction
|
291
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
292
|
+
[1m[35m (24.4ms)[0m DELETE FROM "documents";
|
293
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
294
|
+
[1m[35m (23.5ms)[0m DELETE FROM "virus_scans";
|
295
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
296
|
+
[1m[35m (0.1ms)[0m begin transaction
|
297
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
298
|
+
[1m[35m (26.8ms)[0m DELETE FROM "documents";
|
299
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
300
|
+
[1m[35m (25.0ms)[0m DELETE FROM "virus_scans";
|
301
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
303
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
304
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
305
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
306
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
307
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
308
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
309
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
310
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
311
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
312
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
313
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
314
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
315
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
316
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
317
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL[0m
|
318
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
|
319
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
320
|
+
[1m[35m (31.0ms)[0m DELETE FROM "documents";
|
321
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
322
|
+
[1m[35m (24.3ms)[0m DELETE FROM "virus_scans";
|
323
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
324
|
+
[1m[35m (0.1ms)[0m begin transaction
|
325
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
326
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
327
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
328
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
330
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
331
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
332
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
333
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
334
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
335
|
+
[1m[36m (16.5ms)[0m [1mDELETE FROM "documents";[0m
|
336
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
337
|
+
[1m[36m (16.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
338
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
340
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
341
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
342
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
343
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
345
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
346
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
347
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
348
|
+
[1m[35m (0.1ms)[0m UPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:15:51.272410', "updated_at" = '2015-02-12 12:15:51.272508' WHERE "virus_scans"."id" = 2
|
349
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
350
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
351
|
+
[1m[36m (15.9ms)[0m [1mDELETE FROM "documents";[0m
|
352
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
353
|
+
[1m[36m (13.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
354
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
355
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
356
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
357
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
358
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
|
359
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
360
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
361
|
+
[1m[36m (14.1ms)[0m [1mDELETE FROM "documents";[0m
|
362
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
363
|
+
[1m[36m (14.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
364
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
366
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
367
|
+
[1m[36m (13.9ms)[0m [1mDELETE FROM "documents";[0m
|
368
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
369
|
+
[1m[36m (13.3ms)[0m [1mDELETE FROM "virus_scans";[0m
|
370
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
371
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
372
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
373
|
+
[1m[36m (21.1ms)[0m [1mDELETE FROM "documents";[0m
|
374
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
375
|
+
[1m[36m (26.3ms)[0m [1mDELETE FROM "virus_scans";[0m
|
376
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
377
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
378
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
379
|
+
[1m[36m (25.0ms)[0m [1mDELETE FROM "documents";[0m
|
380
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
381
|
+
[1m[36m (16.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
382
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
383
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
384
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
385
|
+
[1m[36m (14.2ms)[0m [1mDELETE FROM "documents";[0m
|
386
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
387
|
+
[1m[36m (13.6ms)[0m [1mDELETE FROM "virus_scans";[0m
|
388
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
389
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
390
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
391
|
+
[1m[36m (14.8ms)[0m [1mDELETE FROM "documents";[0m
|
392
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
393
|
+
[1m[36m (15.4ms)[0m [1mDELETE FROM "virus_scans";[0m
|
394
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
395
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
396
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
397
|
+
[1m[36m (13.2ms)[0m [1mDELETE FROM "documents";[0m
|
398
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
399
|
+
[1m[36m (13.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
400
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
401
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
402
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
403
|
+
[1m[36m (13.1ms)[0m [1mDELETE FROM "documents";[0m
|
404
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
405
|
+
[1m[36m (13.5ms)[0m [1mDELETE FROM "virus_scans";[0m
|
406
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
407
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
408
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
409
|
+
[1m[36m (24.4ms)[0m [1mDELETE FROM "documents";[0m
|
410
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
411
|
+
[1m[36m (30.2ms)[0m [1mDELETE FROM "virus_scans";[0m
|
412
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
413
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
414
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
415
|
+
[1m[36m (25.1ms)[0m [1mDELETE FROM "documents";[0m
|
416
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
417
|
+
[1m[36m (15.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
418
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
419
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
420
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
421
|
+
[1m[36m (13.9ms)[0m [1mDELETE FROM "documents";[0m
|
422
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
423
|
+
[1m[36m (13.7ms)[0m [1mDELETE FROM "virus_scans";[0m
|
424
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
425
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
426
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
427
|
+
[1m[36m (14.1ms)[0m [1mDELETE FROM "documents";[0m
|
428
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
429
|
+
[1m[36m (13.7ms)[0m [1mDELETE FROM "virus_scans";[0m
|
430
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
431
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
432
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
433
|
+
[1m[36m (19.3ms)[0m [1mDELETE FROM "documents";[0m
|
434
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
435
|
+
[1m[36m (24.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
436
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
437
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
438
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
439
|
+
[1m[36m (28.7ms)[0m [1mDELETE FROM "documents";[0m
|
440
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
441
|
+
[1m[36m (13.6ms)[0m [1mDELETE FROM "virus_scans";[0m
|
442
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
443
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
444
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
445
|
+
[1m[36m (20.5ms)[0m [1mDELETE FROM "documents";[0m
|
446
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
447
|
+
[1m[36m (21.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
448
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
449
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
450
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
451
|
+
[1m[36m (27.9ms)[0m [1mDELETE FROM "documents";[0m
|
452
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
453
|
+
[1m[36m (14.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
454
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
455
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
456
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
457
|
+
[1m[36m (14.0ms)[0m [1mDELETE FROM "documents";[0m
|
458
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
459
|
+
[1m[36m (18.2ms)[0m [1mDELETE FROM "virus_scans";[0m
|
460
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
461
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
462
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
463
|
+
[1m[36m (24.6ms)[0m [1mDELETE FROM "documents";[0m
|
464
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
465
|
+
[1m[36m (27.4ms)[0m [1mDELETE FROM "virus_scans";[0m
|
466
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
467
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
468
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
469
|
+
[1m[36m (31.7ms)[0m [1mDELETE FROM "documents";[0m
|
470
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
471
|
+
[1m[36m (27.4ms)[0m [1mDELETE FROM "virus_scans";[0m
|
472
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
473
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
474
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
475
|
+
[1m[36m (25.6ms)[0m [1mDELETE FROM "documents";[0m
|
476
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
477
|
+
[1m[36m (28.7ms)[0m [1mDELETE FROM "virus_scans";[0m
|
478
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
479
|
+
Connecting to database specified by database.yml
|
480
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
481
|
+
Migrating to CreateDocument (20150209121125)
|
482
|
+
Migrating to CreateWitchDoctorVirusScans (20150209121818)
|
483
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
484
|
+
[1m[36m (0.0ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
485
|
+
Connecting to database specified by database.yml
|
486
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
487
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
488
|
+
[1m[36mSQL (3.7ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
489
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
490
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
491
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
492
|
+
[1m[36m (14.1ms)[0m [1mDELETE FROM "documents";[0m
|
493
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
494
|
+
[1m[36m (13.6ms)[0m [1mDELETE FROM "virus_scans";[0m
|
495
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
496
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
497
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
498
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
499
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
500
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
501
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
502
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
503
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
504
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
505
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
506
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
507
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
508
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
509
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
510
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
511
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
|
512
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL[0m
|
513
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
514
|
+
[1m[36m (13.7ms)[0m [1mDELETE FROM "documents";[0m
|
515
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
516
|
+
[1m[36m (14.3ms)[0m [1mDELETE FROM "virus_scans";[0m
|
517
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
518
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
519
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
520
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
521
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
522
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
523
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
524
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
525
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
526
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
527
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
528
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
529
|
+
[1m[35m (13.3ms)[0m DELETE FROM "documents";
|
530
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
531
|
+
[1m[35m (13.9ms)[0m DELETE FROM "virus_scans";
|
532
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
533
|
+
[1m[35m (0.0ms)[0m begin transaction
|
534
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
535
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
536
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
537
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
538
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
539
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
|
540
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
541
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
542
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:18:01.398634', "updated_at" = '2015-02-12 12:18:01.398840' WHERE "virus_scans"."id" = 2[0m
|
543
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
544
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
545
|
+
[1m[35m (16.0ms)[0m DELETE FROM "documents";
|
546
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
547
|
+
[1m[35m (13.6ms)[0m DELETE FROM "virus_scans";
|
548
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
549
|
+
[1m[35m (0.1ms)[0m begin transaction
|
550
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
551
|
+
[1m[35m (13.9ms)[0m DELETE FROM "documents";
|
552
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
553
|
+
[1m[35m (31.8ms)[0m DELETE FROM "virus_scans";
|
554
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
555
|
+
[1m[35m (0.1ms)[0m begin transaction
|
556
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
557
|
+
[1m[35m (30.2ms)[0m DELETE FROM "documents";
|
558
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
559
|
+
[1m[35m (22.9ms)[0m DELETE FROM "virus_scans";
|
560
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
561
|
+
[1m[35m (0.1ms)[0m begin transaction
|
562
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
563
|
+
[1m[35m (19.0ms)[0m DELETE FROM "documents";
|
564
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
565
|
+
[1m[35m (13.3ms)[0m DELETE FROM "virus_scans";
|
566
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
567
|
+
[1m[35m (0.0ms)[0m begin transaction
|
568
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
569
|
+
[1m[35m (13.4ms)[0m DELETE FROM "documents";
|
570
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
571
|
+
[1m[35m (12.8ms)[0m DELETE FROM "virus_scans";
|
572
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
573
|
+
[1m[35m (0.2ms)[0m begin transaction
|
574
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
575
|
+
[1m[35m (23.9ms)[0m DELETE FROM "documents";
|
576
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
577
|
+
[1m[35m (20.3ms)[0m DELETE FROM "virus_scans";
|
578
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
579
|
+
[1m[35m (0.1ms)[0m begin transaction
|
580
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
581
|
+
[1m[35m (24.3ms)[0m DELETE FROM "documents";
|
582
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
583
|
+
[1m[35m (20.4ms)[0m DELETE FROM "virus_scans";
|
584
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
585
|
+
[1m[35m (0.1ms)[0m begin transaction
|
586
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
587
|
+
[1m[35m (25.1ms)[0m DELETE FROM "documents";
|
588
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
589
|
+
[1m[35m (20.7ms)[0m DELETE FROM "virus_scans";
|
590
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
591
|
+
[1m[35m (0.1ms)[0m begin transaction
|
592
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
593
|
+
[1m[35m (13.5ms)[0m DELETE FROM "documents";
|
594
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
595
|
+
[1m[35m (21.2ms)[0m DELETE FROM "virus_scans";
|
596
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
597
|
+
[1m[35m (0.1ms)[0m begin transaction
|
598
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
599
|
+
[1m[35m (27.4ms)[0m DELETE FROM "documents";
|
600
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
601
|
+
[1m[35m (28.7ms)[0m DELETE FROM "virus_scans";
|
602
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
603
|
+
[1m[35m (0.1ms)[0m begin transaction
|
604
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
605
|
+
[1m[35m (29.2ms)[0m DELETE FROM "documents";
|
606
|
+
[1m[36m (0.5ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
607
|
+
[1m[35m (20.6ms)[0m DELETE FROM "virus_scans";
|
608
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
609
|
+
[1m[35m (0.1ms)[0m begin transaction
|
610
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
611
|
+
[1m[35m (13.2ms)[0m DELETE FROM "documents";
|
612
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
613
|
+
[1m[35m (12.9ms)[0m DELETE FROM "virus_scans";
|
614
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
615
|
+
[1m[35m (0.1ms)[0m begin transaction
|
616
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
617
|
+
[1m[35m (21.9ms)[0m DELETE FROM "documents";
|
618
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
619
|
+
[1m[35m (19.0ms)[0m DELETE FROM "virus_scans";
|
620
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
621
|
+
[1m[35m (0.1ms)[0m begin transaction
|
622
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
623
|
+
[1m[35m (18.5ms)[0m DELETE FROM "documents";
|
624
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
625
|
+
[1m[35m (31.2ms)[0m DELETE FROM "virus_scans";
|
626
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
627
|
+
[1m[35m (0.1ms)[0m begin transaction
|
628
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
629
|
+
[1m[35m (30.4ms)[0m DELETE FROM "documents";
|
630
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
631
|
+
[1m[35m (25.4ms)[0m DELETE FROM "virus_scans";
|
632
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
633
|
+
[1m[35m (0.1ms)[0m begin transaction
|
634
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
635
|
+
[1m[35m (19.8ms)[0m DELETE FROM "documents";
|
636
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
637
|
+
[1m[35m (16.1ms)[0m DELETE FROM "virus_scans";
|
638
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
639
|
+
[1m[35m (0.0ms)[0m begin transaction
|
640
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
641
|
+
[1m[35m (13.6ms)[0m DELETE FROM "documents";
|
642
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
643
|
+
[1m[35m (15.0ms)[0m DELETE FROM "virus_scans";
|
644
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
645
|
+
[1m[35m (0.1ms)[0m begin transaction
|
646
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
647
|
+
[1m[35m (13.7ms)[0m DELETE FROM "documents";
|
648
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
649
|
+
[1m[35m (14.1ms)[0m DELETE FROM "virus_scans";
|
650
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
651
|
+
[1m[35m (0.1ms)[0m begin transaction
|
652
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
653
|
+
[1m[35m (13.7ms)[0m DELETE FROM "documents";
|
654
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
655
|
+
[1m[35m (13.8ms)[0m DELETE FROM "virus_scans";
|
656
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
657
|
+
[1m[35m (0.1ms)[0m begin transaction
|
658
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
659
|
+
[1m[35m (18.1ms)[0m DELETE FROM "documents";
|
660
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
661
|
+
[1m[35m (16.3ms)[0m DELETE FROM "virus_scans";
|
662
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
663
|
+
[1m[35m (0.1ms)[0m begin transaction
|
664
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
665
|
+
[1m[35m (28.3ms)[0m DELETE FROM "documents";
|
666
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
667
|
+
[1m[35m (14.2ms)[0m DELETE FROM "virus_scans";
|
668
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
669
|
+
[1m[35m (0.1ms)[0m begin transaction
|
670
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
671
|
+
[1m[35m (13.5ms)[0m DELETE FROM "documents";
|
672
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
673
|
+
[1m[35m (13.3ms)[0m DELETE FROM "virus_scans";
|
674
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
675
|
+
[1m[35m (0.1ms)[0m begin transaction
|
676
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
677
|
+
[1m[35m (13.4ms)[0m DELETE FROM "documents";
|
678
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
679
|
+
[1m[35m (20.3ms)[0m DELETE FROM "virus_scans";
|
680
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
681
|
+
[1m[35m (0.0ms)[0m begin transaction
|
682
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
683
|
+
[1m[35m (20.9ms)[0m DELETE FROM "documents";
|
684
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
685
|
+
[1m[35m (22.8ms)[0m DELETE FROM "virus_scans";
|
686
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
687
|
+
[1m[35m (0.1ms)[0m begin transaction
|
688
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
689
|
+
[1m[35m (14.3ms)[0m DELETE FROM "documents";
|
690
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
691
|
+
[1m[35m (15.2ms)[0m DELETE FROM "virus_scans";
|
692
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
693
|
+
[1m[35m (0.1ms)[0m begin transaction
|
694
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
695
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
696
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
697
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
698
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
699
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
700
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
701
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
702
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
703
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
|
704
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
705
|
+
[1m[35m (0.1ms)[0m UPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:18:02.533925', "updated_at" = '2015-02-12 12:18:02.534072' WHERE "virus_scans"."id" = 1
|
706
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
707
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
708
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1[0m
|
709
|
+
Completed 200 OK in 4.7ms (Views: 1.2ms | ActiveRecord: 0.4ms)
|
710
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
711
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1[0m
|
712
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
713
|
+
[1m[36m (26.6ms)[0m [1mDELETE FROM "documents";[0m
|
714
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
715
|
+
[1m[36m (27.5ms)[0m [1mDELETE FROM "virus_scans";[0m
|
716
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
717
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
718
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
719
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
720
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
721
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
722
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
723
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
724
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
725
|
+
Processing by WitchDoctor::VirusScansController#update as HTML
|
726
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
727
|
+
Completed 406 Not Acceptable in 0.3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
728
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
729
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
730
|
+
[1m[36m (29.8ms)[0m [1mDELETE FROM "documents";[0m
|
731
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
732
|
+
[1m[36m (29.5ms)[0m [1mDELETE FROM "virus_scans";[0m
|
733
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
734
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
735
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
736
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
737
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
738
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
739
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
740
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
741
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
742
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
743
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Wazaaap"}, "id"=>"1"}
|
744
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1[0m [["id", "1"]]
|
745
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
746
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
747
|
+
Completed 400 Bad Request in 5.5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
748
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
749
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
750
|
+
[1m[35m (28.2ms)[0m DELETE FROM "documents";
|
751
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
752
|
+
[1m[35m (23.0ms)[0m DELETE FROM "virus_scans";
|
753
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
754
|
+
[1m[35m (0.1ms)[0m begin transaction
|
755
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
756
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
757
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
758
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
759
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
760
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
761
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
762
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
763
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean", "mount_point"=>"abc"}, "id"=>"1"}
|
764
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
|
765
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
766
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
767
|
+
Completed 406 Not Acceptable in 1.2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
768
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
769
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
770
|
+
[1m[36m (25.8ms)[0m [1mDELETE FROM "documents";[0m
|
771
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
772
|
+
[1m[36m (25.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
773
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
774
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
775
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
776
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
777
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
778
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
779
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
780
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
781
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
782
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
783
|
+
Parameters: {"token"=>"999", "id"=>"1"}
|
784
|
+
Completed 403 Forbidden in 0.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
785
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
786
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
787
|
+
[1m[36m (13.0ms)[0m [1mDELETE FROM "documents";[0m
|
788
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
789
|
+
[1m[36m (13.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
790
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
792
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
793
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
794
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
795
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
796
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
797
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
798
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
799
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
800
|
+
Parameters: {"id"=>"1"}
|
801
|
+
Completed 401 Unauthorized in 0.2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
802
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
803
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
804
|
+
[1m[36m (13.4ms)[0m [1mDELETE FROM "documents";[0m
|
805
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
806
|
+
[1m[36m (14.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
807
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
808
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
809
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
810
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
811
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
812
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
813
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
814
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
815
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
816
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
817
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
818
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
819
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
820
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
821
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
822
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
823
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
824
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
825
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
826
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
827
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
828
|
+
Parameters: {"token"=>"1234"}
|
829
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2
|
830
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1[0m
|
831
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1
|
832
|
+
Completed 200 OK in 6.6ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
833
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
834
|
+
[1m[35m (12.8ms)[0m DELETE FROM "documents";
|
835
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
836
|
+
[1m[35m (13.5ms)[0m DELETE FROM "virus_scans";
|
837
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
838
|
+
[1m[35m (0.0ms)[0m begin transaction
|
839
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
840
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
841
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
842
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
843
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
844
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
845
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
846
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
847
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
848
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
849
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
850
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
851
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
852
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
853
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
854
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
855
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
|
856
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
857
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
858
|
+
Parameters: {"token"=>"1234"}
|
859
|
+
Completed 406 Not Acceptable in 0.5ms (ActiveRecord: 0.0ms)
|
860
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
861
|
+
[1m[35m (15.2ms)[0m DELETE FROM "documents";
|
862
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
863
|
+
[1m[35m (20.4ms)[0m DELETE FROM "virus_scans";
|
864
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
865
|
+
[1m[35m (0.1ms)[0m begin transaction
|
866
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
867
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
868
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
869
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
870
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
871
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
872
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
873
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
874
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
875
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
876
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
877
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
878
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
879
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
880
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
881
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
882
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
883
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
884
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
885
|
+
Parameters: {"token"=>"1234"}
|
886
|
+
Completed 406 Not Acceptable in 0.4ms (ActiveRecord: 0.0ms)
|
887
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
888
|
+
[1m[35m (28.6ms)[0m DELETE FROM "documents";
|
889
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
890
|
+
[1m[35m (25.4ms)[0m DELETE FROM "virus_scans";
|
891
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
892
|
+
[1m[35m (0.1ms)[0m begin transaction
|
893
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
894
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
895
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
896
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
897
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
898
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
899
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
900
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
901
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
902
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
903
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
904
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
905
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
906
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
907
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
908
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
909
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
910
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
911
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
912
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2[0m
|
913
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
|
914
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1[0m
|
915
|
+
Completed 200 OK in 2.5ms (Views: 1.6ms | ActiveRecord: 0.2ms)
|
916
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
917
|
+
[1m[36m (22.5ms)[0m [1mDELETE FROM "documents";[0m
|
918
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
919
|
+
[1m[36m (20.5ms)[0m [1mDELETE FROM "virus_scans";[0m
|
920
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
921
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
922
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
923
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
924
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
925
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
926
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
927
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
928
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
929
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
930
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
931
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
932
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
933
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
934
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
935
|
+
Parameters: {"token"=>999}
|
936
|
+
Completed 403 Forbidden in 0.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
937
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
938
|
+
[1m[36m (12.9ms)[0m [1mDELETE FROM "documents";[0m
|
939
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
940
|
+
[1m[36m (15.3ms)[0m [1mDELETE FROM "virus_scans";[0m
|
941
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
942
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
943
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
944
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
945
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
946
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
947
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
948
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
949
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
950
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
951
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
952
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
953
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
|
954
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
955
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
956
|
+
Completed 401 Unauthorized in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
957
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
958
|
+
[1m[36m (14.1ms)[0m [1mDELETE FROM "documents";[0m
|
959
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
960
|
+
[1m[36m (13.8ms)[0m [1mDELETE FROM "virus_scans";[0m
|
961
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
962
|
+
Connecting to database specified by database.yml
|
963
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
964
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
965
|
+
[1m[36m (17.6ms)[0m [1mDELETE FROM "documents";[0m
|
966
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
967
|
+
[1m[36m (29.5ms)[0m [1mDELETE FROM "virus_scans";[0m
|
968
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
969
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
970
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
971
|
+
[1m[36m (23.0ms)[0m [1mDELETE FROM "documents";[0m
|
972
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
973
|
+
[1m[36m (27.4ms)[0m [1mDELETE FROM "virus_scans";[0m
|
974
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
975
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
976
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
977
|
+
[1m[36m (26.0ms)[0m [1mDELETE FROM "documents";[0m
|
978
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
979
|
+
[1m[36m (31.4ms)[0m [1mDELETE FROM "virus_scans";[0m
|
980
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
981
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
982
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
983
|
+
[1m[36m (24.0ms)[0m [1mDELETE FROM "documents";[0m
|
984
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
985
|
+
[1m[36m (12.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
986
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
987
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
988
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
989
|
+
[1m[36m (13.4ms)[0m [1mDELETE FROM "documents";[0m
|
990
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
991
|
+
[1m[36m (13.3ms)[0m [1mDELETE FROM "virus_scans";[0m
|
992
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
993
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
994
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
995
|
+
[1m[36m (12.8ms)[0m [1mDELETE FROM "documents";[0m
|
996
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
997
|
+
[1m[36m (13.3ms)[0m [1mDELETE FROM "virus_scans";[0m
|
998
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
999
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1000
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1001
|
+
[1m[36m (26.3ms)[0m [1mDELETE FROM "documents";[0m
|
1002
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1003
|
+
[1m[36m (23.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1004
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1005
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1006
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1007
|
+
[1m[36m (23.1ms)[0m [1mDELETE FROM "documents";[0m
|
1008
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1009
|
+
[1m[36m (29.6ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1010
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1011
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1012
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1013
|
+
[1m[36m (22.8ms)[0m [1mDELETE FROM "documents";[0m
|
1014
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1015
|
+
[1m[36m (14.2ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1016
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1017
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1018
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1019
|
+
[1m[36m (14.1ms)[0m [1mDELETE FROM "documents";[0m
|
1020
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1021
|
+
[1m[36m (13.4ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1022
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1023
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1024
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1025
|
+
[1m[36m (12.9ms)[0m [1mDELETE FROM "documents";[0m
|
1026
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1027
|
+
[1m[36m (14.4ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1028
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1029
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1030
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1031
|
+
[1m[36m (13.6ms)[0m [1mDELETE FROM "documents";[0m
|
1032
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1033
|
+
[1m[36m (17.6ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1034
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1035
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1036
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1037
|
+
[1m[36m (16.6ms)[0m [1mDELETE FROM "documents";[0m
|
1038
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1039
|
+
[1m[36m (15.4ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1040
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1041
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1042
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1043
|
+
[1m[36m (19.1ms)[0m [1mDELETE FROM "documents";[0m
|
1044
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1045
|
+
[1m[36m (24.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1046
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1047
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1048
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1049
|
+
[1m[36m (29.1ms)[0m [1mDELETE FROM "documents";[0m
|
1050
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1051
|
+
[1m[36m (28.7ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1052
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1053
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1054
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1055
|
+
[1m[36m (28.5ms)[0m [1mDELETE FROM "documents";[0m
|
1056
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1057
|
+
[1m[36m (24.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1058
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1059
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1060
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1061
|
+
[1m[36m (25.0ms)[0m [1mDELETE FROM "documents";[0m
|
1062
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1063
|
+
[1m[36m (16.6ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1064
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1065
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1066
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1067
|
+
[1m[36m (13.2ms)[0m [1mDELETE FROM "documents";[0m
|
1068
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1069
|
+
[1m[36m (13.2ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1070
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1071
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1072
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1073
|
+
[1m[36m (13.3ms)[0m [1mDELETE FROM "documents";[0m
|
1074
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1075
|
+
[1m[36m (12.8ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1076
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1077
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1078
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1079
|
+
[1m[36m (12.6ms)[0m [1mDELETE FROM "documents";[0m
|
1080
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1081
|
+
[1m[36m (13.2ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1082
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1083
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1084
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1085
|
+
[1m[36m (12.7ms)[0m [1mDELETE FROM "documents";[0m
|
1086
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1087
|
+
[1m[36m (13.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1088
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1089
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1090
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1091
|
+
[1m[36m (26.6ms)[0m [1mDELETE FROM "documents";[0m
|
1092
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1093
|
+
[1m[36m (29.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1094
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1095
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1096
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1097
|
+
[1m[36m (27.7ms)[0m [1mDELETE FROM "documents";[0m
|
1098
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1099
|
+
[1m[36m (27.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1100
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1101
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1102
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1103
|
+
[1m[36m (14.3ms)[0m [1mDELETE FROM "documents";[0m
|
1104
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1105
|
+
[1m[36m (22.3ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1106
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1108
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1109
|
+
[1m[36mSQL (3.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1110
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1111
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1112
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1113
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1114
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1115
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1116
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1117
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1119
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1120
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1121
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1122
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
|
1123
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL[0m
|
1124
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1125
|
+
[1m[36m (13.6ms)[0m [1mDELETE FROM "documents";[0m
|
1126
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1127
|
+
[1m[36m (14.7ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1128
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1129
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1130
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1131
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1132
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1133
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1134
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1135
|
+
[1m[36m (12.5ms)[0m [1mDELETE FROM "documents";[0m
|
1136
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1137
|
+
[1m[36m (12.9ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1138
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1140
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1141
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1142
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1143
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1144
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1145
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1146
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1147
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1148
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1149
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1150
|
+
[1m[35m (15.2ms)[0m DELETE FROM "documents";
|
1151
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1152
|
+
[1m[35m (13.8ms)[0m DELETE FROM "virus_scans";
|
1153
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1156
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1157
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1158
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1159
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1160
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1161
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1162
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1163
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:19:15.208350', "updated_at" = '2015-02-12 12:19:15.208713' WHERE "virus_scans"."id" = 2[0m
|
1164
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1165
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1166
|
+
[1m[35m (13.5ms)[0m DELETE FROM "documents";
|
1167
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1168
|
+
[1m[35m (12.9ms)[0m DELETE FROM "virus_scans";
|
1169
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1170
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1171
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1172
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1173
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1174
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1175
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1176
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1177
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
1178
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
1179
|
+
Parameters: {"token"=>"999", "id"=>"1"}
|
1180
|
+
Completed 403 Forbidden in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
1181
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
1182
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1183
|
+
[1m[35m (14.8ms)[0m DELETE FROM "documents";
|
1184
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1185
|
+
[1m[35m (14.6ms)[0m DELETE FROM "virus_scans";
|
1186
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1187
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1188
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1189
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1190
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1191
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1192
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1193
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1194
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
1195
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
1196
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
1197
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
|
1198
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1199
|
+
[1m[35m (0.1ms)[0m UPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:19:15.312596', "updated_at" = '2015-02-12 12:19:15.312731' WHERE "virus_scans"."id" = 1
|
1200
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1201
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
1202
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1[0m
|
1203
|
+
Completed 200 OK in 3.5ms (Views: 1.1ms | ActiveRecord: 0.3ms)
|
1204
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
1205
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1[0m
|
1206
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1207
|
+
[1m[36m (24.1ms)[0m [1mDELETE FROM "documents";[0m
|
1208
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1209
|
+
[1m[36m (23.3ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1210
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1211
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1212
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1213
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1214
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1215
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1216
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1217
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1218
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
1219
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
1220
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Wazaaap"}, "id"=>"1"}
|
1221
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1[0m [["id", "1"]]
|
1222
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1223
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1224
|
+
Completed 400 Bad Request in 5.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
1225
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
1226
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1227
|
+
[1m[35m (29.7ms)[0m DELETE FROM "documents";
|
1228
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1229
|
+
[1m[35m (26.0ms)[0m DELETE FROM "virus_scans";
|
1230
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1231
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1232
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1233
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1235
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1236
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1237
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1238
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
1239
|
+
Processing by WitchDoctor::VirusScansController#update as HTML
|
1240
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
1241
|
+
Completed 406 Not Acceptable in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
1242
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
1243
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1244
|
+
[1m[35m (25.7ms)[0m DELETE FROM "documents";
|
1245
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1246
|
+
[1m[35m (15.6ms)[0m DELETE FROM "virus_scans";
|
1247
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1248
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1249
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1250
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1251
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1253
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1254
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1255
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
1256
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
1257
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean", "mount_point"=>"abc"}, "id"=>"1"}
|
1258
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
|
1259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1260
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1261
|
+
Completed 406 Not Acceptable in 1.2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
1262
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
1263
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1264
|
+
[1m[36m (13.1ms)[0m [1mDELETE FROM "documents";[0m
|
1265
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1266
|
+
[1m[36m (22.6ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1267
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1269
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1270
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1271
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1272
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1273
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1274
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1275
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
1276
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
1277
|
+
Parameters: {"id"=>"1"}
|
1278
|
+
Completed 401 Unauthorized in 0.3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
1279
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
1280
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1281
|
+
[1m[36m (27.9ms)[0m [1mDELETE FROM "documents";[0m
|
1282
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1283
|
+
[1m[36m (24.5ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1284
|
+
[1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1285
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1286
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1287
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1288
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1289
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1290
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1291
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1292
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1293
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1294
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1295
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1296
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1297
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1298
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
1299
|
+
Parameters: {"token"=>999}
|
1300
|
+
Completed 403 Forbidden in 0.4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
1301
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1302
|
+
[1m[36m (21.3ms)[0m [1mDELETE FROM "documents";[0m
|
1303
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1304
|
+
[1m[36m (24.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1305
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1306
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1307
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1308
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1309
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1310
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1311
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1312
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1313
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1314
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1315
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1316
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1317
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1318
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1319
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1320
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1321
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1322
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1323
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1324
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1325
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
1326
|
+
Parameters: {"token"=>"1234"}
|
1327
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2
|
1328
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1[0m
|
1329
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1
|
1330
|
+
Completed 200 OK in 7.5ms (Views: 2.3ms | ActiveRecord: 0.3ms)
|
1331
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1332
|
+
[1m[35m (12.6ms)[0m DELETE FROM "documents";
|
1333
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1334
|
+
[1m[35m (14.2ms)[0m DELETE FROM "virus_scans";
|
1335
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1336
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1337
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1338
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1339
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1340
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1341
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1342
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1343
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1344
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1345
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1346
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1347
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1348
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1349
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1350
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1351
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1352
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1353
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1354
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1355
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
1356
|
+
Parameters: {"token"=>"1234"}
|
1357
|
+
Completed 406 Not Acceptable in 0.6ms (ActiveRecord: 0.0ms)
|
1358
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1359
|
+
[1m[35m (15.3ms)[0m DELETE FROM "documents";
|
1360
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1361
|
+
[1m[35m (14.3ms)[0m DELETE FROM "virus_scans";
|
1362
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1363
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1364
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1365
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1366
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1367
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1368
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1369
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1371
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1372
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1374
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1377
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1379
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1380
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1381
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1382
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
1383
|
+
Parameters: {"token"=>"1234"}
|
1384
|
+
Completed 406 Not Acceptable in 0.4ms (ActiveRecord: 0.0ms)
|
1385
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1386
|
+
[1m[35m (12.0ms)[0m DELETE FROM "documents";
|
1387
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1388
|
+
[1m[35m (12.3ms)[0m DELETE FROM "virus_scans";
|
1389
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1390
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1391
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1392
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1393
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1394
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1395
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1396
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1397
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1398
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1399
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1400
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1401
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1402
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1403
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1404
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1405
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1406
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1407
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1408
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1409
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
1410
|
+
[1m[36mVirusScan Load (0.2ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2[0m
|
1411
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
|
1412
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1[0m
|
1413
|
+
Completed 200 OK in 3.4ms (Views: 2.4ms | ActiveRecord: 0.3ms)
|
1414
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1415
|
+
[1m[36m (17.1ms)[0m [1mDELETE FROM "documents";[0m
|
1416
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1417
|
+
[1m[36m (27.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1418
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1419
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1420
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1421
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1422
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1423
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1424
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1425
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1426
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1427
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1428
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1429
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1430
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
|
1431
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1432
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
1433
|
+
Completed 401 Unauthorized in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
1434
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1435
|
+
[1m[36m (26.5ms)[0m [1mDELETE FROM "documents";[0m
|
1436
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1437
|
+
[1m[36m (26.8ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1438
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|