Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
-------------RubyMultipartPost
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ingram, William A  
View profile  
 More options Aug 2 2011, 5:20 pm
From: "Ingram, William A" <wingr...@illinois.edu>
Date: Tue, 2 Aug 2011 21:20:13 +0000
Local: Tues, Aug 2 2011 5:20 pm
Subject: -------------RubyMultipartPost
Hi all,

I recently updated the gems for my project and the ActiveFedora::Datastream.new() seems to have changed. I now get this content at the top of XML datastreams.

-------------RubyMultipartPost
Content-Disposition: form-data; name="file"; filename="K000913.000.xml"
Content-Length: 20579
Content-Type: application/xml
Content-Transfer-Encoding: binary

Here's my code:
tei_ds   = ActiveFedora::Datastream.new(:dsLabel => "TEI XML", :controlGroup => "M", :mime_type => "text/xml", :blob =>File.new(tei_path))
tei_obj.add_datastream(tei_ds)

And here's the result:
view-source:http://ramman.grainger.uiuc.edu:8080/fedora/objects/bamboo%3AK000913....

What am I doing wrong here?

Thanks,
Bill

--
Bill Ingram
Research Programmer
Scholarly Communication and Repository Services
University of Illinois at Urbana-Champaign


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Zumwalt  
View profile  
 More options Aug 2 2011, 6:16 pm
From: Matt Zumwalt <matt.zumw...@yourmediashelf.com>
Date: Tue, 2 Aug 2011 17:16:25 -0500
Local: Tues, Aug 2 2011 6:16 pm
Subject: Re: -------------RubyMultipartPost

I think you might have gotten a newer version of ruby multipart-post in your gemset.  This new version of multipart-post caused a bunch of the active-fedora tests to fail.  We might have pinned down the version incorrectly in the gemspec

Matt Zumwalt
MediaShelf, LLC
http://www.yourmediashelf.com

On Aug 2, 2011, at 4:20 PM, Ingram, William A wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ingram, William A  
View profile  
 More options Aug 2 2011, 7:05 pm
From: "Ingram, William A" <wingr...@illinois.edu>
Date: Tue, 2 Aug 2011 23:05:33 +0000
Local: Tues, Aug 2 2011 7:05 pm
Subject: RE: -------------RubyMultipartPost

Nailed it. I was using 1.1.3; shoulda been 1.1.2. Thanks!

From: active-fedora@googlegroups.com [mailto:active-fedora@googlegroups.com] On Behalf Of Matt Zumwalt
Sent: Tuesday, August 02, 2011 5:16 PM
To: active-fedora@googlegroups.com
Subject: Re: -------------RubyMultipartPost

I think you might have gotten a newer version of ruby multipart-post in your gemset.  This new version of multipart-post caused a bunch of the active-fedora tests to fail.  We might have pinned down the version incorrectly in the gemspec

Matt Zumwalt
MediaShelf, LLC
http://www.yourmediashelf.com

On Aug 2, 2011, at 4:20 PM, Ingram, William A wrote:

Hi all,

I recently updated the gems for my project and the ActiveFedora::Datastream.new() seems to have changed. I now get this content at the top of XML datastreams.

-------------RubyMultipartPost
Content-Disposition: form-data; name="file"; filename="K000913.000.xml"
Content-Length: 20579
Content-Type: application/xml
Content-Transfer-Encoding: binary

Here's my code:
tei_ds   = ActiveFedora::Datastream.new(:dsLabel => "TEI XML", :controlGroup => "M", :mime_type => "text/xml", :blob =>File.new(tei_path))
tei_obj.add_datastream(tei_ds)

And here's the result:
view-source:http://ramman.grainger.uiuc.edu:8080/fedora/objects/bamboo%3AK000913....

What am I doing wrong here?

Thanks,
Bill

--
Bill Ingram
Research Programmer
Scholarly Communication and Repository Services
University of Illinois at Urbana-Champaign

--
You received this message because you are subscribed to the Google Groups "ActiveFedora / Ruby + Fedora Commons" group.
To post to this group, send email to active-fedora@googlegroups.com<mailto:active-fedora@googlegroups.com>.
To unsubscribe from this group, send email to active-fedora+unsubscribe@googlegroups.com<mailto:active-fedora+unsubscribe @googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/active-fedora?hl=en.

--
You received this message because you are subscribed to the Google Groups "ActiveFedora / Ruby + Fedora Commons" group.
To post to this group, send email to active-fedora@googlegroups.com<mailto:active-fedora@googlegroups.com>.
To unsubscribe from this group, send email to active-fedora+unsubscribe@googlegroups.com<mailto:active-fedora+unsubscribe @googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/active-fedora?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »