Hi Rolandas,

On 19 June 2013 12:42, Rolandas Naujikas <rolandas.nauji...@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 | dmol...@opennebula.org | @OpenNebula
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to