Comments (4)
I get this problem as well. I believe this is happening because there's a singleton in the sessions hash, and it's trying to get marshalled. The offending key is ':cas_last_valid_ticket' If I do: sessions[:cas_last_valid_ticket] = nil, that error is cleared (but I do not know other side affects.)
from rubycas-client-rails.
Having the same issue. Digging deeper into the object that can't be dumped, it seems it is cas_last_valid_ticket.response.xml
. All other objects are getting dumped using Mashal.dump(..)
. The xml
attribute is of type REXML::Element
. The actual singleton could be either this object, or one of its child attributes.
from rubycas-client-rails.
It seems to be related to this issue when trying to dump REXML::Document
.
from rubycas-client-rails.
Here's a 'patch' that solved it for me
file: lib/casclient/responses.rb
def check_and_parse_xml(raw_xml)
# Horrible patch to stop the REXML parser triggering a 'singleton could not be dumped'
# error when source document starts with a declaration.
raw_xml.sub!(/<?xml[^\?]?>\s/, '')
... rest of method
from rubycas-client-rails.
Related Issues (19)
- Need url parameter rather than destination. HOT 3
- undefined method `response' for #<CASClient::ServiceTicket:0xaad3b08> HOT 1
- Rails 3.1 does not run rubycas filter on non-matching routes, so single sign out fails HOT 2
- Use of class level configuration, singleton pattern makes testing difficult
- rubygems.org HOT 3
- Post params are included in query params on redirect
- undefined method `inject' for true:TrueClass
- private method `gsub' called for nil:NilClass HOT 2
- skip_before_filter doesn't work HOT 1
- The difference with rubycas-client is not mentioned in the README
- Rails 4 app error HOT 2
- Single sign-out: how to specify callback URL HOT 1
- Missing `before` method when working with Rails 4.1.0-b1 HOT 8
- no _dump_data is defined for class Mysql2::Result
- uninitialized constant CGI::Session HOT 5
- uninitialized constant RubyCAS::GatewayFilter HOT 3
- rubycas-client update seems to cause this HOT 9
- Single Sign Out request requires URI decode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubycas-client-rails.