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]"}
#true, "id"=>nil,
"auth_token"=>#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
#
(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@suse.cz
Lihovarská 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org
For additional commands, e-mail: yast-devel+help@opensuse.org