Displaying 20 results from an estimated 48 matches for "unmarshal".
Did you mean:
unmarshall
2011 Aug 25
1
Question about object permanence/marshalling
...for a GUI). I was thinking that save() and load() would be suitable for this (until now I only thought it could be used for 'real' data, e.g. matrices, data.frames etc), but I am hoping any object can be 'marshalled' using these functions. Probably I am doing something wrong in the unmarshal() function, perhaps with assign().
Thank you in advance!
AJ
#########
# Creation of test data
#########
setClass(
Class="Test",
representation=representation(
amounts="data.frame"
)
)
setMethod(
f="initialize",
signature="Test",...
2008 Feb 20
2
Rails Edge ActiveSupport::TimeWithZone and Marshalled objects
...oblem seems to be that I have a several-action process to create a
Booking. This Booking is stored in the session (session[:booking] =
@booking) throughout the actions until the last action is reached and
the record is saved to the DB.
Using TimeWithZone seems to be producing errors when trying to
unmarshal the Booking back from the users session, giving me:
Status: 500 Internal Server Error
class ActiveSupport::TimeWithZone needs to have method `_load''
/Users/alistair/gresfordtrust/vendor/rails/actionpack/lib/
action_controller/session/active_record_store.rb:83:in `load''...
2008 Feb 12
4
Syntax of session's updated_at field ?
What''s the syntax to acquire the updated_at value of a session stored
in a db?
session.updated_at doesn''t work. can''t find any docs on this.
-- gw
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2009 Sep 28
2
Error with flash and form_authenticity_token in new rails application with scaffolding
...lib/
active_support/message_verifier.rb:45:in `secure_compare''
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/
active_support/message_verifier.rb:28:in `verify''
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/session/cookie_store.rb:156:in `unmarshal''
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/session/cookie_store.rb:145:in `load_session''
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/
action_controller/session/abstract_store.rb:62:in `block in load!''
/usr/local/lib/ruby/gems...
2007 Aug 15
10
Objects in Session State Revisited
...y
understanding is correct, then storing a string or an integer in
session means storing an object.
It would seem then that the problem of storing objects in session is a
matter of how "complex" those objects are, and that problems may arise
due if much work is required by the runtime to unmarshal larger
amounts of structured data.
With this is mind, how "bad" would it be to store the following in
session:
Struct.new("User", :name, :role).new("jdoe", "admin")
I would prefer to keep the data pertaining to "user" (in this case)
encapsulated i...
2013 Mar 21
3
Announce: Puppet Dashboard 1.2.23 Available
...puppet-dashboard initializer stage.
This is required to allow puppet-dashboard to co-exist with other
applications
that do not have the full rails stack in their namespace. Without it, other
non-rails applications (such as the certificate service and live management)
are unable to unmarshal cookies created in Rails. Instead, they
invalidate the
session and we start to see weird authentication glitches in the GUI.
In essence this patch ensures that when the FlashHash data is
stored in a cookie
it is stored as a normal Ruby Hash, as apposed to an
ActionController::Flash...
2006 May 08
1
Handling "unmarshalable" model object attributes
All,
I have an attribute on one of my model objects that cannot be serialized
because it contains a Proc.
Is there a way for me to mark this attribute as "not to be
serialized/unserialized" so that session marshaling/unmarshaling won''t
fail?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Mar 28
1
Newbie question: Dynamic view creation from obj.to_html_form
...input form, stuff the user
input into object, marshal the object into the database, and display it
later dynamically for the user to edit again.
I actually need to use the composite design model and so I will perhaps
have nested objects with form information. I should be able to marshal
and unmarshal these objects without difficulty.
How do I do this in Rails? This would be pretty cool because I could
all sorts of objects and their associated forms in the same table. I
could have a column for class name to iterate through all the same
objects that I am interested in.
Thanks.
--
Posted...
2007 Jan 21
1
Weirdness when save symbols to AR string fields
...(foo.id)
=> #<Foo:0x467282c @attributes={"id"=>5, "string"=>"--- :foobar\n"}>
>> foo.string
=> "--- :foobar\n"
Apparently the database save is converting the symbol into YAML. But I
don''t know why and I can''t seem to unmarshal it. Any idea what''s going
on?
Thanks!
/adam
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send emai...
2007 Aug 17
1
Cookie Sessions in Merb?
...as a bitstream) back to clients to store in their cookie file. To
prevent users from tampering with this data, a cryptographic digest
(using HMAC with SHA-1) is sent along with the bitstream).
The major problem with this scheme is that the Marshalled data is not
at all encrypted! Users are free to unmarshal and examine what
websites are storing in their sessions. They cannot change the data,
but nevertheless this is a security problem!
The answers given by the rails developers sound rather na?ve:
> This is getting into very difficult crypto. Basically, depending on the cipher, there
> may be ca...
2008 Feb 07
3
Sharing Sessions between Ruby on Rails and PHP
Hi there,
I have a RoR app but for one of the funcationality (photo uploads) I
am using PHP. I need to know how I can share/access session
information from RoR in PHP since the PHP also updates the database
and the entry information is contained in the RoR sessions.
Please advice.
Thanks in advance.
Adil
--~--~---------~--~----~------------~-------~--~----~
You received this message because
2006 May 19
1
Strange error when testing layered web service
...67:in `start_element''
c:/ruby/lib/ruby/1.8/xsd/xmlparser/xmlparser.rb:34:in `do_parse''
c:/ruby/lib/ruby/1.8/xsd/xmlparser/xmlparser.rb:31:in `do_parse''
c:/ruby/lib/ruby/1.8/soap/parser.rb:92:in `parse''
c:/ruby/lib/ruby/1.8/soap/processor.rb:39:in `unmarshal''
c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_ser
vice/protocol/soap_proto
col.rb:84:in `decode_response''
c:/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_ser
vice/test_invoke.rb:60:i
n `decode_rpc_response''
c:/ruby/lib/ru...
2006 Apr 26
5
remote ruby
I''m building a collection of desktop app''s and want to use ruby, and
Active Record in particular, as an intermediary layer to my
databases. I''m not sure how to connect my development environment,
Runtime Revolution, to Ruby and Active Record.
One option is to just set up a RonR environment and have my app''s
make calls that return regular text results
2006 Jul 07
4
Problems with ActiveRecord in workers
Hi *,
are there some special settings except of "load_rails: true" to make
ActiveRecord models accessible within my workers?
I''ve just installed the latest version of this great plugin, but I keep
getting
undefined method [] for #<DRb::DRbUnknown:0x12345> (line 105 in
backgroundrb.rb)
when one of the arguments for the worker is an ActiveRecord object.
I assume that
2006 Feb 09
1
(no subject)
...the approachs I''m considering without putting
you to sleep with the details.
Rails Web Service. Built in to the Rails framework. Interoperable
with other applications. Easy to get through firewalls/proxy. But I
don''t care about interoperability. How fast is XML marshaling/
unmarshaling? Probably requires that I recreate a subset of my domain
model in Structs.
DRb + DRbUndumped. Send ActiveRecords across as remote proxies. Easy
to set up. Faster than XML. Can re-use ActiveRecord. A bit tricky to
get right -- where is that method being called? Won''t every method...
2004 Sep 25
2
Concerned about Dovecot's new NTLM code
...r
implementation:
- Unicode support is by 'null padding' - there is no real support for
non-ascii characters.
- NTLM2 (a negotiated scheme to avoid sending the LM response) is
unsupported
- NTLMSSP is NDR, not 'C struct pushed to the wire', it needs to be
correctly marshaled and unmarshaled.
There are other missing features, some of which are rumoured to become
mandatory flags in future, but more importantly, because the
implementation is standalone, it has no ability to integrate into an
NT/Win2k/Samba domain.
As part of the Samba team, I have worked with other projects - Squid i...
2005 Aug 23
8
Web Services testing... Agile Book p. 435
I am attempting to test the web services added during chapter 20 of the
Agile book. The code as written in the book yields 2 errors:
test_find_product_by_id(BackendControllerApiTest):
XMLParserError: syntax error
Anyone hit this yet and get it to work?
Thanks.
Ken
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2008 May 15
0
[PATCH][QEMU] serial save load fix
NOTE: An applicable subset of this patch was also submitted to upstream
qemu.
SUMMARY:
This patch fixes several bugs in serial.c
(1) A typo in serial_save() where qemu_get_8s is called (should be
qemu_put_8s)
(2) No support provided in serial_load() for version_id == 1 (should
unmarshal
a 1 byte s->divider and should provide a default value for s->fcr
(3) Call serial_ioport_write() to initialize s->fcr. It is not sufficient
to load its value; other hidden values (such as s->recv_fifo.itl) must be
re-initialized.
Signed-off-by: Ben Guthro <bguthro@virtualiron.com
&...
2005 Dec 26
0
Problems with Plugin Models
...path, and if I move my models to ''myplugin/lib/models'' -- even if I explicitly
require them all -- it tries to dynamically load them (and fails).
2. I''m trying to store a model instance in a session, but I keep getting
unknown class errors on my model when it tries to unmarshal (using
ActiveRecordStore).
Per the wiki, I''ve added reloadable?() to all of my models.
Any suggestions? Thanks ...
-- Steve
2005 Dec 01
0
Troubleshooting "undefined class/module"
...s basically the following:
undefined class/module InnerPackage
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0
/lib/action_controller/session/active_record_store.rb:75:in
`load''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0
/lib/action_controller/session/active_record_store.rb:75:in
`unmarshal''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0
/lib/action_controller/session/active_record_store.rb:116:in
`data''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0
/lib/action_controller/session/active_record_store.rb:126:in
`marshal_data!''
c:/ruby/lib/ruby/gems/1.8/ge...