witch_doctor 0.3.0 → 0.4.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/lib/witch_doctor/antivirus_concern.rb +5 -0
- data/lib/witch_doctor/version.rb +1 -1
- data/spec/dummy/db/schema.rb +4 -4
- data/spec/dummy/log/test.log +622 -0
- data/spec/lib/antivirus_spec.rb +3 -3
- data/spec/models/virus_scan_spec.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 54962706322467e1b560490fe28280d976d23c3f
|
|
4
|
+
data.tar.gz: 3ea7185d4232c3746bd89d407ac8501d349ab4bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4640ff87f365639e1ab06ce652c8395314d42ae20a23df8a93abc6e859324eeb860083cd4409fe1564147e103b8d5665b330d3f269ba3fd264954a48f23968b4
|
|
7
|
+
data.tar.gz: 34e62b2d7077c1ea1fc10c2d3c960d38648b1223d6219b96fb92c0e8d8dfd59125cdce01878abaa17d6901bfd0b1abd1d77f4874b598fc5d76036701bcd55480
|
|
@@ -15,6 +15,11 @@ module WitchDoctor
|
|
|
15
15
|
mount_point = options.fetch(:on)
|
|
16
16
|
|
|
17
17
|
after_save "schedule_#{mount_point}_virus_scan", if: ["schedule_#{mount_point}_virus_scan?", :virus_scan_scheduling_on?]
|
|
18
|
+
after_destroy "unschedule_#{mount_point}_virus_scan"
|
|
19
|
+
|
|
20
|
+
define_method("unschedule_#{mount_point}_virus_scan") do
|
|
21
|
+
virus_scans.where(mount_point: mount_point.to_s).each {|vs| vs.destroy}
|
|
22
|
+
end
|
|
18
23
|
|
|
19
24
|
define_method("schedule_#{mount_point}_virus_scan") do
|
|
20
25
|
virus_scans.create! do |vs|
|
data/lib/witch_doctor/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
|
@@ -16,8 +16,8 @@ ActiveRecord::Schema.define(version: 20150209121818) do
|
|
|
16
16
|
create_table "documents", force: true do |t|
|
|
17
17
|
t.string "title"
|
|
18
18
|
t.string "attachment"
|
|
19
|
-
t.datetime "created_at"
|
|
20
|
-
t.datetime "updated_at"
|
|
19
|
+
t.datetime "created_at"
|
|
20
|
+
t.datetime "updated_at"
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
create_table "virus_scans", force: true do |t|
|
|
@@ -26,8 +26,8 @@ ActiveRecord::Schema.define(version: 20150209121818) do
|
|
|
26
26
|
t.string "scan_result"
|
|
27
27
|
t.string "mount_point"
|
|
28
28
|
t.datetime "scanned_at"
|
|
29
|
-
t.datetime "created_at"
|
|
30
|
-
t.datetime "updated_at"
|
|
29
|
+
t.datetime "created_at"
|
|
30
|
+
t.datetime "updated_at"
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
end
|
data/spec/dummy/log/test.log
CHANGED
|
@@ -87702,3 +87702,625 @@ Unpermitted parameters: resource_type, resource_id, mount_point, scanned_at
|
|
|
87702
87702
|
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87703
87703
|
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
|
87704
87704
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
87705
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
87706
|
+
Unpermitted parameters: resource_type, resource_id, mount_point, scanned_at
|
|
87707
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
87708
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87709
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
87710
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
87711
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87712
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
87713
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
87714
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
87715
|
+
Unpermitted parameters: resource_type, resource_id, mount_point, scanned_at
|
|
87716
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
87717
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87718
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
87719
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
87720
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87721
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
87722
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
87723
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
87724
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87725
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87726
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87727
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87728
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87729
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87730
|
+
[1m[35mVirusScan Load (0.2ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
|
87731
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
|
87732
|
+
Parameters: {"id"=>"1"}
|
|
87733
|
+
Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
87734
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
87735
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
87736
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87737
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
87738
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
87739
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87740
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
87741
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
87742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
87743
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87744
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87745
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87746
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87747
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87748
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87749
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
|
87750
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
|
87751
|
+
Parameters: {"token"=>"999", "id"=>"1"}
|
|
87752
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
87753
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
87754
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
87755
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87756
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
87757
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
87758
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87759
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
87760
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
87761
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
87762
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87763
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87764
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87765
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87766
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87767
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87768
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
|
87769
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
|
87770
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
|
87771
|
+
[1m[36mWitchDoctor::VirusScan 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"]]
|
|
87772
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87773
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "virus_scans" SET "scan_result" = ?, "updated_at" = ?, "scanned_at" = ? WHERE "virus_scans"."id" = 1[0m [["scan_result", "Clean"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["scanned_at", Thu, 11 Jun 2015 23:00:00 UTC +00:00]]
|
|
87774
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87775
|
+
[1m[36mWitchDoctor::VirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
87776
|
+
[1m[35mDocument Load (0.2ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
|
|
87777
|
+
Completed 200 OK in 14ms (Views: 0.4ms | ActiveRecord: 0.7ms)
|
|
87778
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
87779
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
87780
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87781
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
87782
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
87783
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87784
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
87785
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
87786
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
87787
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87788
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87789
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87790
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87791
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87792
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87793
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
|
87794
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
|
87795
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{}, "id"=>"1"}
|
|
87796
|
+
[1m[36mWitchDoctor::VirusScan 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"]]
|
|
87797
|
+
Completed 406 Not Acceptable in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
|
87798
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
|
87799
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
|
87800
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87801
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
|
87802
|
+
[1m[35m (0.0ms)[0m DELETE FROM "virus_scans";
|
|
87803
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87804
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
|
87805
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
87806
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
87807
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87808
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87809
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87810
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87811
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87812
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87813
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
87814
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
|
87815
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Wazaaap"}, "id"=>"1"}
|
|
87816
|
+
[1m[35mWitchDoctor::VirusScan 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"]]
|
|
87817
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87818
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
87819
|
+
Completed 400 Bad Request in 9ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
|
87820
|
+
[1m[36mVirusScan Load (0.2ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
87821
|
+
[1m[35m (0.3ms)[0m DELETE FROM "documents";
|
|
87822
|
+
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87823
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
87824
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
87825
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87826
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
87827
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
87828
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
87829
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87830
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87831
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87832
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87833
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87834
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87835
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
|
87836
|
+
Processing by WitchDoctor::VirusScansController#update as HTML
|
|
87837
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
|
87838
|
+
Completed 406 Not Acceptable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
87839
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
87840
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
87841
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87842
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
87843
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
87844
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87845
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
87846
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
87847
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
87848
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87849
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87850
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87851
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87852
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87853
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87854
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87855
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87856
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87858
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87859
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87860
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
|
87861
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
87862
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
87863
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87864
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
87865
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
87866
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87867
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
87868
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
87869
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
87870
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87871
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87872
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87873
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87874
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87875
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87876
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87877
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87878
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87879
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87880
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87881
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87882
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
|
87883
|
+
Parameters: {"token"=>999}
|
|
87884
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
87885
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
87886
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87887
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
87888
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
87889
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87890
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
87891
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
87892
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
87893
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87894
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87895
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87896
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87897
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87898
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87899
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87900
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87901
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87902
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87903
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87904
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87905
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87906
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87907
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87908
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87909
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87910
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87911
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
|
87912
|
+
Parameters: {"token"=>"1234"}
|
|
87913
|
+
[1m[35mWitchDoctor::VirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 10
|
|
87914
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
87915
|
+
[1m[35mDocument Load (0.0ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 3]]
|
|
87916
|
+
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
|
87917
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
|
87918
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87919
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
|
87920
|
+
[1m[35m (0.0ms)[0m DELETE FROM "virus_scans";
|
|
87921
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87922
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
|
87923
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
87924
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
87925
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87926
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87927
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87928
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87929
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87930
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87931
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87932
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87933
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87934
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87935
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87936
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87937
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87938
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87939
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87940
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87941
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87942
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87943
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
|
87944
|
+
Parameters: {"token"=>"1234"}
|
|
87945
|
+
Completed 406 Not Acceptable in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
87946
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
|
87947
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87948
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
|
87949
|
+
[1m[35m (0.0ms)[0m DELETE FROM "virus_scans";
|
|
87950
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87951
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
|
87952
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
87953
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
87954
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87955
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87956
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87957
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87958
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87959
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87960
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87961
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87962
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87963
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87964
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87965
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87966
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87967
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87968
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87969
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87970
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87971
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87972
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
|
87973
|
+
Parameters: {"token"=>"1234"}
|
|
87974
|
+
Completed 406 Not Acceptable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
87975
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
|
87976
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
87977
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
|
87978
|
+
[1m[35m (0.0ms)[0m DELETE FROM "virus_scans";
|
|
87979
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
87980
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
|
87981
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
87982
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
87983
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87984
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87985
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87986
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
87987
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87988
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87989
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87990
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87991
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87992
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87993
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87994
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
87995
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
87996
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
87997
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
87998
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
87999
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88000
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
88001
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
|
88002
|
+
[1m[36mWitchDoctor::VirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 10[0m
|
|
88003
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
|
|
88004
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", 3]]
|
|
88005
|
+
Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
|
88006
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88007
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88008
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88009
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88010
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88011
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88012
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88013
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88014
|
+
[1m[35m (0.4ms)[0m DELETE FROM "documents";
|
|
88015
|
+
[1m[36m (0.3ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88016
|
+
[1m[35m (0.2ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88017
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88018
|
+
[1m[35m (0.5ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88019
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88020
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
88021
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
88022
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88023
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88024
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88025
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88026
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88027
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88028
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88029
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88030
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
88031
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88032
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88033
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
88034
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
88035
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88036
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
88037
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
88038
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
88039
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
|
88040
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88041
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
|
88042
|
+
[1m[35m (0.1ms)[0m DELETE FROM "virus_scans";
|
|
88043
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88044
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
|
88045
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
88046
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
88047
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
88048
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88049
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88050
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
88051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
88052
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88053
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
88054
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
88055
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "virus_scans" SET "scan_result" = ?, "updated_at" = ?, "scanned_at" = ? WHERE "virus_scans"."id" = 2[0m [["scan_result", "Clean"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["scanned_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88056
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
88057
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "documents";[0m
|
|
88058
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88059
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
|
88060
|
+
[1m[35m (0.1ms)[0m DELETE FROM "virus_scans";
|
|
88061
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88062
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
|
88063
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
88064
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
88065
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
88066
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88067
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88068
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
88069
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "virus_scans"[0m
|
|
88070
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
88071
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "documents" WHERE "documents"."id" = ?[0m [["id", 1]]
|
|
88072
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."resource_id" = ? AND "virus_scans"."resource_type" = ? AND "virus_scans"."mount_point" = 'attachment' [["resource_id", 1], ["resource_type", "Document"]]
|
|
88073
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "virus_scans" WHERE "virus_scans"."id" = ?[0m [["id", 1]]
|
|
88074
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
88075
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "virus_scans"[0m
|
|
88076
|
+
[1m[35m (0.0ms)[0m DELETE FROM "documents";
|
|
88077
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88078
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88079
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88080
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88081
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88082
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88083
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88084
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88085
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88086
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88087
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88088
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88089
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88090
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88091
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88092
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88093
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88094
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88095
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88096
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88097
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88098
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88099
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
88100
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
88101
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88102
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88103
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
88104
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
88105
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88106
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
88107
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
88108
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88109
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88110
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
88111
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
88112
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88113
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
88114
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
|
|
88115
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL[0m
|
|
88116
|
+
[1m[35m (0.0ms)[0m DELETE FROM "documents";
|
|
88117
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88118
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88119
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88120
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88121
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88122
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88123
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88124
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
88125
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88126
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 12 Jun 2015 15:00:58 UTC +00:00]]
|
|
88127
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
88128
|
+
[1m[35m (0.0ms)[0m DELETE FROM "documents";
|
|
88129
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88130
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88131
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88132
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88133
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88134
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88135
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
88136
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
|
88137
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88138
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88139
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88140
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88141
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88142
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88143
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88144
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
|
88145
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88146
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88147
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88148
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88149
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88150
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88151
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88152
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
|
88153
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88154
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88155
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88156
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88157
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88158
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
88159
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88160
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88161
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88162
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88163
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88164
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88165
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88166
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88167
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88168
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88169
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88170
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88171
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88172
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88173
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88174
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88175
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88176
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88177
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88178
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88179
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88180
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88181
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88182
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88183
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88184
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88185
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88186
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88187
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88188
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88189
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88191
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88192
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88193
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88194
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88195
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88196
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88197
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88198
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
88200
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88201
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88202
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88203
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88204
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88205
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88206
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88207
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
88208
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88209
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88210
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88211
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88212
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88213
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88214
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
88216
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
|
88217
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88218
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88219
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88220
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88221
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88222
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88223
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88224
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88225
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88226
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88227
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88228
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88229
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88230
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88231
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88232
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88233
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88234
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88235
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88236
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88237
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88238
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88240
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88241
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88242
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88243
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88244
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88245
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88246
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88247
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88248
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88249
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88250
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88251
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88252
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88253
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88254
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88255
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88256
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
|
88257
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88258
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88259
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88260
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88261
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88262
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88263
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88264
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88265
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88266
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88267
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88268
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88269
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88270
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
88271
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88272
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88273
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88274
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88275
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88276
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88277
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88278
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88279
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88280
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88281
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88282
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88283
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88284
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88285
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88286
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88287
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88288
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88289
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88290
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88291
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88292
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88293
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88294
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88295
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88296
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88297
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88298
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88299
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88300
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88301
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88302
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88303
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88304
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88305
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88306
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88307
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88308
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88309
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88310
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88311
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
88312
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88313
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88314
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88315
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88316
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88317
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88318
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
88319
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
88320
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
|
88321
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
|
88322
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
|
88323
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
|
88324
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
|
88325
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
|
88326
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
data/spec/lib/antivirus_spec.rb
CHANGED
|
@@ -9,9 +9,9 @@ RSpec.describe WitchDoctor::Antivirus do
|
|
|
9
9
|
let(:virus_scan) { double scan_result: nil, scanned_at: nil, mount_point: 'avatar' }
|
|
10
10
|
|
|
11
11
|
it { expect(subject.checked?).to be false }
|
|
12
|
-
it { expect { subject.infected? }
|
|
13
|
-
it { expect { subject.clean? }
|
|
14
|
-
it { expect { subject.error? }
|
|
12
|
+
it { expect { subject.infected? }.to throw_symbol(:file_not_scanned) }
|
|
13
|
+
it { expect { subject.clean? }.to throw_symbol(:file_not_scanned) }
|
|
14
|
+
it { expect { subject.error? }.to throw_symbol(:file_not_scanned) }
|
|
15
15
|
|
|
16
16
|
context 'along different mont point virus scan' do
|
|
17
17
|
let(:virus_scan2) { double scan_result: 'Clean', scanned_at: Time.now - 3600, mount_point: 'different'}
|
|
@@ -63,4 +63,14 @@ describe VirusScan do
|
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
|
+
|
|
67
|
+
describe '#unschedule_attachment_virus_scan' do
|
|
68
|
+
let!(:document) { create :document, :with_attachment }
|
|
69
|
+
it 'unschedules after destroy' do
|
|
70
|
+
expect(VirusScan.count).to eq 1
|
|
71
|
+
document.destroy
|
|
72
|
+
expect(VirusScan.count).to eq 0
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
end
|
|
66
76
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: witch_doctor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomas Valent
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|