Mailinglist Archive: yast-devel (152 mails)

< Previous Next >
Re: [yast-devel] ActionController::Session::CookieStore::CookieOverflow
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 13 Jul 2009 14:49:51 +0200
  • Message-id: <4A5B2D6F.6050300@xxxxxxx>
Ladislav Slezak wrote:
Klaus Kaempf wrote:

Hmm, didn't happen to me yet.

So what kind of crash was it and where did it happen _exactly_ ?

Its hard to improve WebYaST robustness without somewhat detailed error
reports :-(

OK, here are some details:

I got this error after logging in (at http://localhost:3000/controlpanel):

NoMethodError in ControlpanelController#index

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.name

Log with debugger:

Processing SessionsController#new (for 127.0.0.1 at 2009-07-13 14:30:28) [GET]
Parameters: {"action"=>"new", "controller"=>"sessions",
"hostname"=>"http://localhost:8080"}
Rendering template within layouts/main
Rendering sessions/new
Completed in 37ms (View: 32, DB: 0) | 200 OK
[http://localhost/session/new?hostname=http%3A%2F%2Flocalhost%3A8080]
Authenticate Successful for rest-server ID nil


Processing SessionsController#create (for 127.0.0.1 at 2009-07-13 14:30:30)
[POST]
Parameters: {"commit"=>"Login", "action"=>"create",
"authenticity_token"=>"ti9UDGrqWIZKLtg7dsDpiKZQNrsToqeNKU/UJPAWdHk=",
"controller"=>"sessions", "hostname"=>"http://localhost:8080";,
"login"=>"lslezak",
"password"=>"[FILTERED]"}
#<YaST::ServiceResource::Login:0x7fc684f0c6a0 @prefix_options={},
@attributes={"remember_me"=>true, "id"=>nil,
"auth_token"=>#<YaST::ServiceResource::Login::AuthToken:0x7fc684ee3f20
@prefix_options={}, @attributes={"expires"=>nil, "value"=>nil, "path"=>"/"}>,
"login"=>"granted", "password"=>"*******"}>
Account Load (0.9ms) SELECT * FROM "accounts" WHERE ("accounts"."login" =
'lslezak') LIMIT 1
Account Exists (0.4ms) SELECT "accounts".id FROM "accounts" WHERE
(LOWER("accounts"."login") = 'lslezak' AND "accounts".id <> 1) LIMIT 1
Login success.
Redirected to http://localhost:3000/
Completed in 512ms (DB: 1) | 302 Found [http://localhost/session]
/local/lslezak/GIT/Yast/web-client/webclient/lib/yast/service_resource.rb:80
h = Hash.from_xml(net_error.response.body)["error"]
(rdb:2) net_error
#<ActiveResource::UnauthorizedAccess: Failed with 401 Unauthorized >
(rdb:2) net_error.response.body
"HTTP Basic: Access denied.\n"

Apparently the hash cannot be created from plain error message, an XML string
is
expected.

And "Authenticate Successful for rest-server ID nil" message also seems
strange.

I get the overflow error when I press [Back] in the browser and then I press
[Login]
again.

The overflow error then happens for all pages, I have logout manually via
http://localhost:3000/logout

I'll check the permissions...

--

Best Regards

Ladislav Slez√°k
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/

I think that this is another problem, that I also hit. Sometimes first
login attemp fail and if I try it after first one it succeed.

--
Josef Reidinger
YaST team
maintainer of perl-Bootloader, YaST2-Repair, webyast modules language
and time
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >