socialcast / devise_oauth2_providable

Rails3 engine integrating OAuth2 authentication with Devise
MIT License
219 stars 102 forks source link

URI::InvalidURIError - query conflicts with opaque #51

Closed masterkain closed 11 years ago

masterkain commented 11 years ago
Started POST "/oauth2/authorizations" for 127.0.0.1 at 2013-06-23 08:48:00 +0200
Processing by Devise::Oauth2Providable::AuthorizationsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"BJD0TTWQiZTbijI/4FkjrZ4lKVSswMar0ePWSO++V/A=", "client_id"=>"6bdd98b192c59ee3cfea7852f3cc459c", "response_type"=>"code", "redirect_uri"=>"urn:ietf:wg:oauth:2.0:oob", "approve"=>"true", "commit"=>"Allow access"}
  User Load (0.7ms)  SELECT "accounts".* FROM "accounts" WHERE "accounts"."deleted_at" IS NULL AND "accounts"."type" IN ('User') AND "accounts"."id" = 1 LIMIT 1
  Devise::Oauth2Providable::Client Load (0.4ms)  SELECT "oauth2_clients".* FROM "oauth2_clients" WHERE "oauth2_clients"."identifier" = '6bdd98b192c59ee3cfea7852f3cc459c' LIMIT 1
   (0.1ms)  BEGIN
  Devise::Oauth2Providable::AuthorizationCode Exists (0.2ms)  SELECT 1 AS one FROM "oauth2_authorization_codes" WHERE "oauth2_authorization_codes"."token" = '908d3e4cd4cbacbd370d7997ef560bbd' LIMIT 1
  SQL (0.4ms)  INSERT INTO "oauth2_authorization_codes" ("client_id", "created_at", "expires_at", "token", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["client_id", 13], ["created_at", Sun, 23 Jun 2013 06:48:00 UTC +00:00], ["expires_at", Sun, 23 Jun 2013 06:49:00 UTC +00:00], ["token", "908d3e4cd4cbacbd370d7997ef560bbd"], ["updated_at", Sun, 23 Jun 2013 06:48:00 UTC +00:00], ["user_id", 1]]
   (0.1ms)  COMMIT
Completed 500 Internal Server Error in 17ms
URI::InvalidURIError - query conflicts with opaque:
  /Users/kain/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/uri/generic.rb:890:in `check_query'
  /Users/kain/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/uri/generic.rb:936:in `query='
  rack-oauth2 (0.11.0) lib/rack/oauth2/util.rb:36:in `redirect_uri'
  rack-oauth2 (0.11.0) lib/rack/oauth2/server/authorize.rb:98:in `redirect_uri_with_credentials'
  rack-oauth2 (0.11.0) lib/rack/oauth2/server/authorize.rb:104:in `finish'
  rack-oauth2 (0.11.0) lib/rack/oauth2/server/authorize.rb:7:in `call'
  devise_oauth2_providable (1.1.2) app/controllers/devise/oauth2_providable/authorizations_controller.rb:16:in `create'