Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warning, fix private method `gsub' called for nil:NilClass error on 1.8.7 #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CloCkWeRX
Copy link

Was rubycas/rubycas-client-rails#20

With certain URIs, it's possible to have a blank key, causing a private method `gsub' called for nil:NilClass error on 1.8.7

… 'rdoc/task' (in RDoc 2.4.2+)' instead.

    at ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
it 'should tolerate oddly formed URIs' do
destination_url = 'https://foo.com/path/to/page?&sort=date_received.DESC'

client.logout_url(destination_url)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the expected output of this call?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its not too relevant, at least for this bug - the code throws an error, or doesn't. Happy to contribute other test coverage that targets the method in a separate pr

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, it's been three years and the underlying bug is still present - https://github.com/rubycas/rubycas-client/blob/master/lib/casclient/client.rb#L286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants