samvera-labs / fedora-migrate

Gem for migrating content to Fedora4
Other
10 stars 7 forks source link

LDP errors #10

Closed awead closed 9 years ago

awead commented 9 years ago

When migrating RDF datastreams, this error can appear:

Ldp::BadRequest: java.text.ParseException: Next event is not a Separator
jcoyne commented 9 years ago

Perhaps a binary source header isn't being set? I'm still looking into this.

#<Ldp::Resource::BinarySource:0x007ff77fa4dca0>
D, [2015-01-19T17:05:25.538417 #33214] DEBUG -- : HTTP PUT (8.10ms)  http://127.0.0.1:8983/fedora/rest/dev/6d/b4/d3/99/6db4d399-0c44-4987-afce-3e5fac436bd2/content
jcoyne commented 9 years ago

Here's another clue:

HEADERS: {"Content-Type"=>"application/pdf", "Content-Disposition"=>"attachment; filename=\" \"Value Added\" in Editorial Acquisitions.pdf\""}

Need to escape quotes in the filename.