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

Intermittent QRDA upload error in Chrome #34

Closed
pelargir opened this issue Jul 23, 2013 · 2 comments
Closed

Intermittent QRDA upload error in Chrome #34

pelargir opened this issue Jul 23, 2013 · 2 comments

Comments

@pelargir
Copy link
Contributor

This appears to be an issue specific to the Chrome browser, but I wanted to document it here to see if anyone else has experienced it.

In Chrome, when I click the "Upload Results" button and select a QRDA Cat I zip file or Cat III XML file, Cypress will intermittently respond with this error:

Started POST "/test_executions" for 127.0.0.1 at 2013-07-22 11:33:10 -0400
Processing by TestExecutionsController#create as HTML
WARNING: Can't verify CSRF token authenticity
  MOPED: 127.0.0.1:27017 QUERY        database=cypress_development collection=users selector={"$query"=>{"_id"=>"51b9d1176fb30d0285000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4799ms)
  MOPED: 127.0.0.1:27017 INSERT       database=cypress_development collection=logs documents=[{"_id"=>"51ed50b66fb30d6647000002", "username"=>"matt@matthewbass.com", "event"=>"logout", "updated_at"=>2013-07-22 15:33:10 UTC, "created_at"=>2013-07-22 15:33:10 UTC}] flags=[] (0.1509ms)
Completed 500 Internal Server Error in 91ms

Mongoid::Errors::InvalidFind (
Problem:
  Calling Document.find with nil is invalid.
Summary:
  Document.find expects the parameters to be 1 or more ids, and will return a single document if 1 id is provided, otherwise an array of documents if multiple ids are provided.
Resolution:
  Most likely this is caused by passing parameters directly through to the find, and the parameter either is not present or the key from which it is accessed is incorrect.):
  app/controllers/test_executions_controller.rb:15:in `create'


  Rendered /Users/pelargir/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
  Rendered /Users/pelargir/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms)
  Rendered /Users/pelargir/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.8ms)

Apparently, the form attributes aren't getting sent in the POST to /test_executions (which is why the CSRF warning also gets displayed). This happens roughly 75% of the time. The remaining 25% of the time, the form attributes are sent with the POST and the upload completes successfully.

This doesn't happen in Safari or Firefox. In these browsers, the form attributes are sent 100% of the time.

There is a known bug in Chrome where form attributes aren't sent, but I'll have to do some additional research before recommending a possible workaround.

@rdingwell
Copy link
Contributor

Matt,

What version of Chrome are you using? I pretty much only use chrome and have not seen this or been able to reproduce it.

@pelargir
Copy link
Contributor Author

I'm on version 28.0.1500.71

Maybe one of the extensions I'm using is interfering with the page. I'll try disabling all of my extensions and see if the problem persists.

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

No branches or pull requests

2 participants