Author Topic: user corner still doesn't work  (Read 2422 times)

yustao

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
user corner still doesn't work
« on: June 28, 2010, 10:28:40 am »
I used the newest ebox 1.5 to test the user corner. When I just installed a few packages (ebox, libebox, ebox-firewall and ebox-usersandgroups), the user corner did work. But when I installed more packages (ebox-ca, ebox-vpn, ebox-hhcp and ebox-dns,etc), the user corner does not work...

exekias

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 196
  • Karma: +21/-0
    • View Profile
    • The Big Bug Theory
Re: user corner still doesn't work
« Reply #1 on: July 01, 2010, 12:23:39 pm »
I will test this, stay tuned

Mo

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
    • Oomph Agency
Re: user corner still doesn't work
« Reply #2 on: July 06, 2010, 12:47:25 pm »
have you upgraded your version of ebox, after adding the URL mentioned here:

http://trac.ebox-platform.com/wiki/Document/Documentation/InstallationGuide#eBoxPlatform1.5packages

To your sources in Ubuntu?

That worked fine for me.

Mo

exekias

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 196
  • Karma: +21/-0
    • View Profile
    • The Big Bug Theory
Re: user corner still doesn't work
« Reply #3 on: July 06, 2010, 12:54:07 pm »
I have detected some problems with user corner if you install ebox-ca (and maybe other modules). I'm working on fix it :)

Thank you guys for the feedback, we really appreciate it

bezeek

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: user corner still doesn't work
« Reply #4 on: July 13, 2010, 01:03:36 am »
I don't know if my problem is related to this thread, but I receive the error below upon logging in to the User Corner. I have the ebox-all PPA package, and have been keeping everything up to date. Again, this happens only after submitting a successful login.

Code: [Select]
A really nasty bug has occurred

Exception

Date::Calc::Decode_Month(): argument is not a string

Trace

Date::Calc::Decode_Month(): argument is not a string at /usr/share/perl5/EBox/CA.pm line 2314.

I'm not a Perl guy, but after a quick glance at CA.pm:2314 and neighboring lines, I decided to make the change indicated below, under the assumption that the argument in question is expected to be a string identifying the month in which the CA certificate expires. (I bet I'm wrong, but so far so good anyway.)

This is a very dirty hack, (which could easily be improved by someone familiar with Perl,) and I have no idea of the implications! USE AT YOUR OWN RISK!

Code: (/usr/share/perl5/EBox/CA.pm: 2313-2317) [Select]
$monthStr =~ s/ +//g;
$monthStr = "July"; # User corner hack - replace July with the appropriate month for piece of mind
my $dateObj = Date::Calc->new($yyyy,
                              Decode_Month($monthStr),
                              $day, $hour, $min, $sec);

Cheers!

exekias

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 196
  • Karma: +21/-0
    • View Profile
    • The Big Bug Theory
Re: user corner still doesn't work
« Reply #5 on: July 13, 2010, 10:13:55 am »
Yes bezeek,

That's the exact problem with usercorner + CA. Of course your fix works but only during this month ;)

We are working on a global solution for this issue, anyway, thank you for sharing this!