[MacRuby] #988: Unable to get rack::basic::auth to function as demonstrated via sinatra page.
#988: Unable to get rack::basic::auth to function as demonstrated via sinatra page. ------------------------------+--------------------------------------------- Reporter: jhamor@… | Owner: joshua.ballanco@… Type: defect | Status: new Priority: critical | Milestone: Component: ControlTower | Keywords: ------------------------------+--------------------------------------------- While following the sinatra docs, i've tried all the possible combinations to get rack::basic::auth to function. When i use regular ruby-1.9 and sinatra 1.1.0 and rack 1.2.1, all seems well. When i switch back to macruby 0.7/controltower 1.0, i get a endless cycling of the basic authentication boxes and auth.credentials is some weird utf-8 string. Not really sure where to file this bug or what details are needed for reproduction, other than following the basic auth example for rack. Below works on ruby-1.9.2-p0/sinatra/rack: use Rack::Auth::Basic do |username, password| puts "user: #{username} pass: #{password}" username == 'admin' && password == 'secret' end Where this same example does not work on macruby/controltower. -- Ticket URL: <http://www.macruby.org/trac/ticket/988> MacRuby <http://macruby.org/>
#988: Unable to get rack::basic::auth to function as demonstrated via sinatra page. ------------------------------+--------------------------------------------- Reporter: jhamor@… | Owner: joshua.ballanco@… Type: defect | Status: new Priority: critical | Milestone: Component: ControlTower | Keywords: ------------------------------+--------------------------------------------- Comment(by lsansonetti@…): We need to reduce the problem. -- Ticket URL: <http://www.macruby.org/trac/ticket/988#comment:1> MacRuby <http://macruby.org/>
#988: Unable to get rack::basic::auth to function as demonstrated via sinatra page. ------------------------------+--------------------------------------------- Reporter: jhamor@… | Owner: joshua.ballanco@… Type: defect | Status: new Priority: critical | Milestone: Component: ControlTower | Keywords: ------------------------------+--------------------------------------------- Comment(by jhamor@…): Replying to [comment:1 lsansonetti@…]:
We need to reduce the problem.
+1 for this issue. I ran into this and it was 100% reproducible. The variables show up empty, so you cant use them for their intent. -- Ticket URL: <http://www.macruby.org/trac/ticket/988#comment:2> MacRuby <http://macruby.org/>
#988: Unable to get rack::basic::auth to function as demonstrated via sinatra page. ------------------------------+--------------------------------------------- Reporter: jhamor@… | Owner: joshua.ballanco@… Type: defect | Status: new Priority: critical | Milestone: Component: ControlTower | Keywords: ------------------------------+--------------------------------------------- Comment(by jhamor@…): Replying to [comment:2 jhamor@…]:
Replying to [comment:1 lsansonetti@…]:
We need to reduce the problem.
+1 for this issue. I ran into this and it was 100% reproducible. The variables show up empty, so you cant use them for their intent.
Oops. I read 'reduce' as 'reproduce'. How can i assist with this? -- Ticket URL: <http://www.macruby.org/trac/ticket/988#comment:4> MacRuby <http://macruby.org/>
#988: Unable to get rack::basic::auth to function as demonstrated via sinatra page. ------------------------------+--------------------------------------------- Reporter: jhamor@… | Owner: joshua.ballanco@… Type: defect | Status: new Priority: critical | Milestone: Component: ControlTower | Keywords: ------------------------------+--------------------------------------------- Comment(by jhamor@…): Replying to [comment:4 jhamor@…]:
Replying to [comment:2 jhamor@…]:
Replying to [comment:1 lsansonetti@…]:
We need to reduce the problem.
+1 for this issue. I ran into this and it was 100% reproducible. The variables show up empty, so you cant use them for their intent.
Oops. I read 'reduce' as 'reproduce'. How can i assist with this? '''How can i assist with this?'''
-- Ticket URL: <http://www.macruby.org/trac/ticket/988#comment:5> MacRuby <http://macruby.org/>
#988: Unable to get rack::basic::auth to function as demonstrated via sinatra page. ------------------------------+--------------------------------------------- Reporter: jhamor@… | Owner: joshua.ballanco@… Type: defect | Status: new Priority: critical | Milestone: Component: ControlTower | Keywords: ------------------------------+--------------------------------------------- Comment(by lsansonetti@…): We need a "reduction" for this problem. Basically, isolate the problem into a few lines of "pure Ruby" (not using standard library or gems), that we can use as a test case. -- Ticket URL: <http://www.macruby.org/trac/ticket/988#comment:6> MacRuby <http://macruby.org/>
#988: Unable to get rack::basic::auth to function as demonstrated via sinatra page. ------------------------------+--------------------------------------------- Reporter: jhamor@… | Owner: joshua.ballanco@… Type: defect | Status: new Priority: critical | Milestone: Component: ControlTower | Keywords: ------------------------------+--------------------------------------------- Comment(by jhamor@…): Looks like this got fixed along the way. The copy i'm running of nightly, which was produced within the last couple of days seems to not exhibit the problem anymore. My sample from above just simply works. After you fix the missing if statement ;P -- Ticket URL: <http://www.macruby.org/trac/ticket/988#comment:7> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby