-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug: 500 error when adding work to collection #892
Comments
This seems like it may be an issue between # based_near value: [#<Hyrax::ControlledVocabularies::Location:0x9c234 ID:<https://sws.geonames.org/4259418/>>]
af_work = GenericWork.find(<id>)
wings_work = Hyrax.query_service.find_by(id: <id>) # instance of Hyrax::Work
af_work.save!
=> true
Hyrax.persister.save(resource: wings_work)
=> Traceback (most recent call last):
6: from (irb):113
5: from config/initializers/order_already_overrides.rb:13:in `serialize'
4: from config/initializers/order_already_overrides.rb:29:in `sanitize'
3: from config/initializers/order_already_overrides.rb:29:in `each_with_index'
2: from config/initializers/order_already_overrides.rb:29:in `each'
1: from config/initializers/order_already_overrides.rb:30:in `block in sanitize'
NoMethodError (undefined method `empty?' for #<RDF::URI:0x9a420 URI:https://sws.geonames.org/4259418/>) I’m pretty sure the error is being thrown on this line: # Wings::ActiveFedoraConverter#apply_attributes_to_model
af_object.attributes = converted_attrs My current theory is that it may somehow be related to how |
✅ Passed QA Created work https://demo.commons-archive.org/concern/generic_works/3b3e113f-4648-4730-a451-229e918589ba?locale=en |
Ordering based_near causes several issues: - adding a work to a collection fails - adding a work outside of the actor stack turned the attribute into a string. Refs: - notch8/palni-palci#892 - notch8/palni-palci#964
Attempting to add Letter to Chancy Butler, February 10th, 1862 to the Ovid Butler Digital Collection in butler.hykucommons.org produces a 500 error.
Acceptance Criteria
Testing
Verify that add to collection is successful.
The text was updated successfully, but these errors were encountered: