Skip to content

ArgumentError - wrong number of arguments (given 1, expected 2) in Hyrax FileSetActor #1042

@laritakr

Description

@laritakr

There appears to be a bug in Bulkrax ImportFileSetJob affecting importing in non valkyrized applications when creating File Sets via the actor stack

The bug comes from this line in the model actor, as it tries to initialize the FileSetActor.

https://github.com/samvera/hyrax/blob/hyrax-3.x%2Bchunked/app/actors/hyrax/actors/model_actor.rb#L33

The error began somewhere between 03d7e8b and e8ba9b0. The most likely culprit seems to be the work in this ticket: #1025

Backtrace from a Hyku application using Hyrax branch hyrax-3.x+chunked

/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/file_set_actor.rb:9:in `initialize'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/model_actor.rb:33:in `new'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/model_actor.rb:33:in `model_actor'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/model_actor.rb:18:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/abstract_actor.rb:92:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/abstract_actor.rb:92:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/abstract_actor.rb:92:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/apply_permission_template_actor.rb:11:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/transfer_request_actor.rb:10:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/interpret_visibility_actor.rb:78:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/default_admin_set_actor.rb:24:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/abstract_actor.rb:92:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/abstract_actor.rb:92:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/add_to_work_actor.rb:11:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/collections_membership_actor.rb:18:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/create_with_files_actor.rb:15:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/create_with_remote_files_actor.rb:17:in `create'
/usr/local/bundle/bundler/gems/hyrax-a4890955954a/app/actors/hyrax/actors/abstract_actor.rb:92:in `create'
/usr/local/bundle/gems/bulkrax-9.1.0/app/factories/bulkrax/object_factory.rb:187:in `create_work'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions