BibApp/BibApp — Issue #77: error viewing deposit attachments
Author: hading
Created: 2012-01-19 16:23:22+00:00
State: open

reported by cjuergen:

---

while trying to connect our test DSpace Repository with the Test Bibapp installation I ran into this error, trying to view an attachement:

Started GET "/en/admin/deposit_via_sword?work_id=474" for 129.217.135.208 at Mon Jan 16 13:49:45 +0100 2012
Processing by AdminController#deposit_via_sword as HTML
Parameters: {"locale"=>"en", "work_id"=>"474"}
Rendered works/_epdcx.mets.builder (294.7ms)
Rendered works/_package.mets.builder (319.3ms)
Completed 500 Internal Server Error in 4328ms

NoMethodError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]):
lib/sword_1_3_adapter.rb:35:in `send_sword_package'
lib/sword_1_3_adapter.rb:82:in `with_mets_package'
lib/sword_1_3_adapter.rb:56:in `with_mets_package'
lib/sword_1_3_adapter.rb:26:in `send_sword_package'
app/controllers/admin_controller.rb:28:in `deposit_via_sword'

The servicedocument is ok and the uploaded file is actually there. The work with the deposit attachement is listed in the admin/ready_to_archive and is viewable s via http://vmx012.itmc.tu-dortmund.de:3000/attachments/0000/0047/Kaninchen_Knoblauch.pdf.

Never used Sword before, so this is new territory for me.

Claudia

---

Don't have any idea about this one off hand.