Skip to content

Instantly share code, notes, and snippets.

@awead
Created March 29, 2016 19:12
Show Gist options
  • Save awead/ae608a89731f38fce321e1b7582ec905 to your computer and use it in GitHub Desktop.
Save awead/ae608a89731f38fce321e1b7582ec905 to your computer and use it in GitHub Desktop.
Upload file in Sufia 7
Started POST "/concern/container/6t053f97v/file_sets" for ::1 at 2016-03-29 15:11:30 -0400
Processing by CurationConcerns::FileSetsController#create as JSON
Parameters: {"utf8"=>"✓", "authenticity_token"=>"n/q+5Zkjs0Z0LfUjTrQ0TPfcUEhmwIZ6sMN+kLblbZYk0riqZq4S1AjTnUjctQ482x3t1INNuNTHIEacDRo13w==", "total_upload_size"=>"305754", "relative_path"=>"", "upload_set_id"=>"", "parent_id"=>"6t053f97v", "file_coming_from"=>"local", "terms_of_service"=>"1", "file_set"=>{"files"=>[#<ActionDispatch::Http::UploadedFile:0x007fe71a6ee980 @tempfile=#<Tempfile:/var/folders/yb/pbl7568x7073w02tyghtk3140000gp/T/RackMultipart20160329-74394-ujspjz.jpg>, @original_filename="cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"file_set[files][]\"; filename=\"cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg\"\r\nContent-Type: image/jpeg\r\n">]}}
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
(0.3ms) SELECT DISTINCT COUNT(DISTINCT "mailboxer_conversations"."id") FROM "mailboxer_conversations" INNER JOIN "mailboxer_notifications" ON "mailboxer_notifications"."conversation_id" = "mailboxer_conversations"."id" AND "mailboxer_notifications"."type" IN ('Mailboxer::Message') INNER JOIN "mailboxer_receipts" ON "mailboxer_receipts"."notification_id" = "mailboxer_notifications"."id" WHERE "mailboxer_notifications"."type" = 'Mailboxer::Message' AND "mailboxer_receipts"."mailbox_type" = ? AND "mailboxer_receipts"."trashed" = ? AND "mailboxer_receipts"."deleted" = ? AND "mailboxer_notifications"."type" = 'Mailboxer::Message' AND "mailboxer_receipts"."receiver_id" = ? AND "mailboxer_receipts"."receiver_type" = ? AND "mailboxer_receipts"."is_read" = ? [["mailbox_type", "inbox"], ["trashed", "f"], ["deleted", "f"], ["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
Mailboxer::Conversation Load (1.0ms) SELECT DISTINCT "mailboxer_conversations".* FROM "mailboxer_conversations" INNER JOIN "mailboxer_notifications" ON "mailboxer_notifications"."conversation_id" = "mailboxer_conversations"."id" AND "mailboxer_notifications"."type" IN ('Mailboxer::Message') INNER JOIN "mailboxer_receipts" ON "mailboxer_receipts"."notification_id" = "mailboxer_notifications"."id" WHERE "mailboxer_notifications"."type" = 'Mailboxer::Message' AND "mailboxer_receipts"."receiver_id" = ? AND "mailboxer_receipts"."receiver_type" = ? AND "mailboxer_receipts"."mailbox_type" = ? AND "mailboxer_receipts"."trashed" = ? AND "mailboxer_receipts"."deleted" = ? ORDER BY mailboxer_conversations.updated_at DESC [["receiver_id", 1], ["receiver_type", "User"], ["mailbox_type", "inbox"], ["trashed", "f"], ["deleted", "f"]]
Mailboxer::Message Load (0.2ms) SELECT "mailboxer_notifications".* FROM "mailboxer_notifications" WHERE "mailboxer_notifications"."type" IN ('Mailboxer::Message') AND "mailboxer_notifications"."conversation_id" = ? ORDER BY created_at DESC LIMIT 1 [["conversation_id", 3]]
Mailboxer::Message Load (0.2ms) SELECT "mailboxer_notifications".* FROM "mailboxer_notifications" WHERE "mailboxer_notifications"."type" IN ('Mailboxer::Message') AND "mailboxer_notifications"."conversation_id" = ? ORDER BY created_at DESC LIMIT 1 [["conversation_id", 2]]
Mailboxer::Message Load (0.2ms) SELECT "mailboxer_notifications".* FROM "mailboxer_notifications" WHERE "mailboxer_notifications"."type" IN ('Mailboxer::Message') AND "mailboxer_notifications"."conversation_id" = ? ORDER BY created_at DESC LIMIT 1 [["conversation_id", 1]]
Unpermitted parameter: files
Usergroups are ["public", "registered"]
Load LDP (20.3ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
Load LDP (15.1ms) http://127.0.0.1:8984/rest/dev/73/be/c7/af/73bec7af-10ee-4d9c-8cbd-e6f350960a47 Service: 70315275140840
Load LDP (19.1ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v/list_source Service: 70315275140840
Load LDP (16.4ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v/members Service: 70315275140840
Load LDP (17.9ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v/members Service: 70315275140840
Load LDP (25.7ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s Service: 70315275140840
Load LDP (13.6ms) http://127.0.0.1:8984/rest/dev/1d/22/80/9f/1d22809f-c7e1-458f-b67e-8cfc301027b8 Service: 70315275140840
Load LDP (12.2ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v/members/a381f58b-1885-46fd-8bb8-f740df976602 Service: 70315275140840
Load LDP (13.1ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
Load LDP (18.2ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v/list_source Service: 70315275140840
Load LDP (19.8ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
Load LDP (12.9ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s Service: 70315275140840
Load LDP (16.9ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Performing IngestFileJob from Inline(ingest) with arguments: "9k41zd49s", "/Users/awead/Projects/Github/projecthydra/sufia/.internal_test_app/tmp/uploads/9k/41/zd/49/cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg", "image/jpeg", "[email protected]", "original_file"
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] CACHE (0.1ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Load LDP (22.1ms) Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Virus checking disabled, /var/folders/yb/pbl7568x7073w02tyghtk3140000gp/T/20160329-74394-f81iis not checked
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Load LDP (47.4ms) http://127.0.0.1:8984/rest/dev/1d/22/80/9f/1d22809f-c7e1-458f-b67e-8cfc301027b8 Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] CACHE (0.0ms) Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Load LDP (86.1ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s/files Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Load LDP (21.1ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Load LDP (21.6ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Load LDP (17.6ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s/files/2ea32dd7-f6a3-412f-9d26-8e47109976f8/fcr:metadata Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "[email protected]"]]
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Load LDP (9.9ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s/files/2ea32dd7-f6a3-412f-9d26-8e47109976f8/fcr:versions Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s/files/2ea32dd7-f6a3-412f-9d26-8e47109976f8/fcr:versions Service: 70315275140840
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] (0.2ms) begin transaction
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] SQL (1.0ms) INSERT INTO "version_committers" ("version_id", "committer_login", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["version_id", "http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s/files/2ea32dd7-f6a3-412f-9d26-8e47109976f8/fcr:versions/version1"], ["committer_login", "[email protected]"], ["created_at", "2016-03-29 19:11:34.000353"], ["updated_at", "2016-03-29 19:11:34.000353"]]
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] (1.3ms) commit transaction
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Performing ContentDepositEventJob from Inline(event) with arguments: "9k41zd49s", "[email protected]"
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "[email protected]"]]
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "[email protected]"]]
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Follow Load (0.4ms) SELECT "follows".* FROM "follows" WHERE "follows"."followable_id" = ? AND "follows"."followable_type" = ? AND "follows"."blocked" = ? [["followable_id", 1], ["followable_type", "User"], ["blocked", "f"]]
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Performed ContentDepositEventJob from Inline(event) in 95.0ms
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Enqueued ContentDepositEventJob (Job ID: b220c878-995f-474f-8f65-437cc1726664) to Inline(event) with arguments: "9k41zd49s", "[email protected]"
[ActiveJob] [IngestFileJob] [54af5955-5250-45d1-946f-e39511993906] Performed IngestFileJob from Inline(ingest) in 1692.59ms
[ActiveJob] Enqueued IngestFileJob (Job ID: 54af5955-5250-45d1-946f-e39511993906) to Inline(ingest) with arguments: "9k41zd49s", "/Users/awead/Projects/Github/projecthydra/sufia/.internal_test_app/tmp/uploads/9k/41/zd/49/cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg", "image/jpeg", "[email protected]", "original_file"
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] Performing CharacterizeJob from Inline(characterize) with arguments: "9k41zd49s", "/Users/awead/Projects/Github/projecthydra/sufia/.internal_test_app/tmp/uploads/9k/41/zd/49/cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg"
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] Load LDP (18.3ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] Load LDP (34.1ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s/files/2ea32dd7-f6a3-412f-9d26-8e47109976f8/fcr:metadata Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] Load LDP (21.4ms) http://127.0.0.1:8984/rest/dev/1d/22/80/9f/1d22809f-c7e1-458f-b67e-8cfc301027b8 Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] Load LDP (23.2ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] Load LDP (20.4ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] Load LDP (18.7ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s/files/2ea32dd7-f6a3-412f-9d26-8e47109976f8/fcr:metadata Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] Performing CreateDerivativesJob from Inline(derivatives) with arguments: "9k41zd49s", "/Users/awead/Projects/Github/projecthydra/sufia/.internal_test_app/tmp/uploads/9k/41/zd/49/cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg"
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] CACHE (0.3ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] CACHE (0.1ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s/files/2ea32dd7-f6a3-412f-9d26-8e47109976f8/fcr:metadata Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/9k/41/zd/49/9k41zd49s/files/2ea32dd7-f6a3-412f-9d26-8e47109976f8/fcr:metadata Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] Load LDP (15.0ms) http://127.0.0.1:8984/rest/dev/1d/22/80/9f/1d22809f-c7e1-458f-b67e-8cfc301027b8 Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] CACHE (0.2ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] CACHE (0.0ms) http://127.0.0.1:8984/rest/dev/6t/05/3f/97/6t053f97v Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] Load LDP (14.1ms) http://127.0.0.1:8984/rest/dev/73/be/c7/af/73bec7af-10ee-4d9c-8cbd-e6f350960a47 Service: 70315275140840
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] [CreateDerivativesJob] [4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67] Performed CreateDerivativesJob from Inline(derivatives) in 1323.56ms
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] Enqueued CreateDerivativesJob (Job ID: 4bd2ad77-cc3f-4201-ad7a-19c3eeb52b67) to Inline(derivatives) with arguments: "9k41zd49s", "/Users/awead/Projects/Github/projecthydra/sufia/.internal_test_app/tmp/uploads/9k/41/zd/49/cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg"
[ActiveJob] [CharacterizeJob] [9bbe1d59-4725-4b44-821f-01a8767fb2e0] Performed CharacterizeJob from Inline(characterize) in 6332.08ms
[ActiveJob] Enqueued CharacterizeJob (Job ID: 9bbe1d59-4725-4b44-821f-01a8767fb2e0) to Inline(characterize) with arguments: "9k41zd49s", "/Users/awead/Projects/Github/projecthydra/sufia/.internal_test_app/tmp/uploads/9k/41/zd/49/cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg"
Rendered /Users/awead/Projects/Github/projecthydra/sufia/app/views/curation_concerns/file_sets/jq_upload.json.jbuilder (0.8ms)
Completed 201 Created in 10005ms (Views: 79.9ms | ActiveRecord: 5.4ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment