sciencehistory / chf-sufia

sufia-based hydra app
Other
9 stars 4 forks source link

Cannot create an object of class '' #473

Closed hackartisan closed 7 years ago

hackartisan commented 7 years ago

"It was a standard-for-me batch ingest. Selected files, set visibility to CHF, filled in some descriptive metadata, verified the files were there and set all formats to image, and hit save."

None of the objects were successfully created.

screen shot 2017-04-14 at 10 16 39 am

hackartisan commented 7 years ago

"I was doing 29 files, in the neighborhood of 7 MB each."

hackartisan commented 7 years ago

Looks like this was a permissions error. User not authorized to create the objects. I wonder if she was forceably logged out somehow in the middle of her upload?

https://github.com/projecthydra/sufia/blob/v7.3.0/app/controllers/concerns/sufia/batch_uploads_controller_behavior.rb#L21

hackartisan commented 7 years ago

Reported at 9:54am on April 14th

hackartisan commented 7 years ago

I see what looks like passenger restarts in the apache log at 9:24 and 9:57 but that doesn't entirely line up.

hackartisan commented 7 years ago

Looking in the application log I notice the controller is not receiving a permissions_attributes parameter at this point in the logs. Not sure how that came to be missing. Since it's working fine now for original reporter and others, I'm going to close and move on. We can investigate further if needed down the line.