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

URI.decode_www_form broken in 9k #2105

Closed
iconara opened this issue Nov 5, 2014 · 3 comments
Closed

URI.decode_www_form broken in 9k #2105

iconara opened this issue Nov 5, 2014 · 3 comments

Comments

@iconara
Copy link
Contributor

iconara commented Nov 5, 2014

irb> URI.decode_www_form("projection=x")
NoMethodError: undefined method `scrub!' for "projection":String
    from /Users/theo/.rvm/rubies/jruby-head/lib/ruby/2.1/uri/common.rb:1000:in `decode_www_form'
    from org/jruby/RubyArray.java:1546:in `each'
    from /Users/theo/.rvm/rubies/jruby-head/lib/ruby/2.1/uri/common.rb:998:in `decode_www_form'
    from (irb):3:in `evaluate'
    from org/jruby/RubyKernel.java:962:in `eval'
    from org/jruby/RubyKernel.java:1282:in `loop'
    from org/jruby/RubyKernel.java:1092:in `catch'
    from org/jruby/RubyKernel.java:1092:in `catch'
    from /Users/theo/.rvm/rubies/jruby-head/bin/irb:13:in `__script__'
$ ruby -v
jruby 9000.dev-SNAPSHOT (2.1.2p142) 2014-11-05 624823a Java HotSpot(TM) 64-Bit Server VM 25.0-b70 on 1.8.0-b132 +jit [darwin-x86_64]
$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
@dougfarre
Copy link

+1

@enebo enebo added this to the JRuby 9.0.0.0.rc2 milestone Jun 24, 2015
@enebo
Copy link
Member

enebo commented Jul 1, 2015

@iconara @dougfarre

require 'uri'

URI.decode_www_form("projection=x")

This works for me. Can you guys verify?

@iconara
Copy link
Contributor Author

iconara commented Jul 2, 2015

Looks like it's fixed in jruby-9.0.0.0.pre1

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

No branches or pull requests

4 participants