Re: authenticity_token sent, still InvalidAuthenticityToken

Anjan Tek
2008-10-15T07:30:31Z

This is in my HTML source:


function getAuthenticityToken()
{
  return "86b74406048a7f629bd560eab8de771a74c620be";
}


___________________________________________

And this is what I get from the logs:

Processing UploadController#upload_image (for 192.170.50.67 at
2008-10-15 12:58:50) [POST]
  Session ID: fbcd2a610aa9c048c82f1d5733f56837
  Parameters: {"Filename"=>"Sunflower.gif",
"temp_Image_Location"=>"/images/temp",
"authenticity_token"=>"86b74406048a7f629bd560eab8de771a74c620be",
"action"=>"upload_image",
"Upload"=>"Submit Query",
"controller"=>"upload",
"random_File_Name"=>"1224055727771_274.gif",
"Filedata"=>#<ActionController::UploadedStringIO:0x2701294>}


ActionController::InvalidAuthenticityToken
(ActionController::InvalidAuthenticityToken):

____________________________

As you can see, both the values are the same. Still I''m getting the
same
error.

I repeat, the same code works for another controller. If what you are
suggesting was really the case, is it possible for just one controller
to be affected?