#18 √ invalid
MatthewRudy

http_authentication plugin breaks with rails 2.x

Reported by MatthewRudy | June 21st, 2008 @ 02:14 PM

was breaking because controller.render is now protected.

changed

controller.render :text => "HTTP Basic: Access denied.\n", :status => :unauthorized

to

controller.send(:render, :text => "HTTP Basic: Access denied.\n", :status => :unauthorized)

and fixed the test so it sets up controller with render :protected.

http://github.com/matthewrudy/ht...

http://github.com/matthewrudy/ht...

Comments and changes to this ticket

  • Joshua Peek

    Joshua Peek July 13th, 2008 @ 08:40 PM

    • → State changed from “new” to “invalid”
    • → Tag changed from “” to “http_authentication patch plugin”

    http authentication is in core now

  • MatthewRudy

    MatthewRudy July 13th, 2008 @ 09:33 PM

    good point.

    this hit me because we only just upgraded from 1.2.1 on this current project.

    but clearly the solution should have been to remove the plugin entirely, rather than fix it.

    is there a strategy for marking items in the github.com/rails repository as deprecated?

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket