[one-users] Self-service portal is not usable in opennebula 3.8.4
Daniel Molina
dmolina at opennebula.org
Fri Jun 21 02:18:09 PDT 2013
Hi Rolandas,
On 19 June 2013 12:42, Rolandas Naujikas <rolandas.naujikas at mif.vu.lt>wrote:
> Because of http://dev.opennebula.org/**projects/opennebula/**
> repository/revisions/**f71432552351ff348fcfc1677585d8**31301d1bb7<http://dev.opennebula.org/projects/opennebula/repository/revisions/f71432552351ff348fcfc1677585d831301d1bb7>(f7143255) self-service portal timeouts in 5s.
>
> There is a working patch for that (or occi/ui should use the same cookie
> as sunstone):
>
> --- lib/ruby/cloud/occi/ui/public/**js/sunstone.js.orig 2013-06-19
> 13:21:29.000000000 +0300
> +++ lib/ruby/cloud/occi/ui/public/**js/sunstone.js 2013-06-19
> 13:39:01.000000000 +0300
> @@ -296,9 +296,9 @@ $(document).ready(function(){
> setLogin();
>
> setInterval(function(){
> - var user_cookie = cookie["one-user"];
> + var user_cookie = cookie["occi-user"];
> readCookie();
> - if ((cookie["one-user"] == null) || (cookie["one-user"] !==
> user_cookie)) {
> + if ((cookie["occi-user"] == null) || (cookie["occi-user"] !==
> user_cookie)) {
> window.location.href='/';
> }
> },5000);
>
>
This patch should fix the problem:
https://gist.github.com/dmamolina/9e1413ed11fb9f62a8d7
Thank you for the feedback
--
Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin, 24-26
September, 2013
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130621/9610518b/attachment-0002.htm>
More information about the Users
mailing list