Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in POST to /archives/sdr_object_versions.json on -test platform #7

Closed
dazza-codes opened this issue Oct 9, 2014 · 2 comments

Comments

@dazza-codes
Copy link
Contributor

I, [2014-10-08T18:38:34.209476 #7615]  INFO -- : Started POST "/archives/sdr_object_versions.json" for 171.67.34.182 at 2014-10-08 18:38:34 -0700
I, [2014-10-08T18:38:34.211435 #7615]  INFO -- : Processing by SdrObjectVersionsController#create as JSON
I, [2014-10-08T18:38:34.211538 #7615]  INFO -- :   Parameters: {"sdr_object_id"=>"druid:bb508hj7967", "sdr_version_id"=>1, "replica_id"=>"druid:bb508hj7967-v0001", "ingest_date"=>"2014-10-09T01:36:22Z", "sdr_object_version"=>{"sdr_object_id"=>"druid:bb508hj7967", "sdr_version_id"=>1, "ingest_date"=>"2014-10-09T01:36:22Z", "replica_id"=>"druid:bb508hj7967-v0001"}}
W, [2014-10-08T18:38:34.211964 #7615]  WARN -- : Can't verify CSRF token authenticity
D, [2014-10-08T18:38:34.213875 #7615] DEBUG -- :   SdrObjectVersion Load (0.6ms)  SELECT  "SDR_OBJECT_VERSIONS".* FROM "SDR_OBJECT_VERSIONS"  WHERE ("SDR_OBJECT_VERSIONS"."SDR_OBJECT_ID" = :a1 AND "SDR_OBJECT_VERSIONS"."SDR_VERSION_ID" = :a2) AND ROWNUM <= 1  [["sdr_object_id", "druid:bb508hj7967"], ["sdr_version_id", 1]]
D, [2014-10-08T18:38:34.216806 #7615] DEBUG -- :   SdrObject Load (0.7ms)  SELECT  "SDR_OBJECTS".* FROM "SDR_OBJECTS"  WHERE "SDR_OBJECTS"."SDR_OBJECT_ID" = 'druid:bb508hj7967' AND ROWNUM <= 1
I, [2014-10-08T18:38:34.218471 #7615]  INFO -- : Completed 500 Internal Server Error in 7ms
F, [2014-10-08T18:38:34.221210 #7615] FATAL -- : 
TypeError (["sdr_object_id", "sdr_version_id"] is not a symbol):
  app/controllers/crud_controller.rb:62:in `block in create'
  app/controllers/dry_crud/render_callbacks.rb:31:in `block (2 levels) in with_callbacks'
  app/controllers/dry_crud/render_callbacks.rb:31:in `block (2 levels) in with_callbacks'
  app/controllers/dry_crud/render_callbacks.rb:32:in `call'
  app/controllers/dry_crud/render_callbacks.rb:32:in `with_callbacks'
  app/controllers/crud_controller.rb:62:in `create'

@dazza-codes
Copy link
Contributor Author

This is very difficult to replicate in a debug environment. After a bundle update, it might be fixed by some recent changes upstream.

@dazza-codes
Copy link
Contributor Author

Running content through the -test pipeline confirms that this bug is not present after the bundle update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant