[kronolith] Notice messages with ics.php
Jan Schneider
jan at horde.org
Tue Nov 20 11:53:49 UTC 2007
Zitat von Alfonso Marín Marín <almarin at um.es>:
> Hi all,
>
> I have a problem accessing calendars with ics.php. When I enter in
> .../kronolith/ics.php?c=[username], after authenticate, i get a lot of
> Notice messages:
>
> Notice: Undefined offset: 0 in /usr/share/php/Horde/Cipher/blowfish.php
> on line 337
>
> Notice: Undefined offset: 1 in /usr/share/php/Horde/Cipher/blowfish.php
> on line 337
>
> ...
>
> an then, the ICalendar entries.
>
> I checked the code, and then i realised that those messages was
> generated by Horde/Secret.php, called by Auth::setAuth():line 691
>
> $credentials = Secret::write(Secret::getKey('auth'),
> serialize($credentials));
>
> In Secret::getKey('auth'), if no Horde session exists (and that happend
> in ics.php), there is a session_id() call (line 146) that return no
> value, and then you get that errors on Secrete::write()
>
> My question is: ¿sould be a session_start() anywhere before?
No, we explicitly *don't* start a session because this could lead to
deadlocks, see bugs.horde.org for details.
This still sounds a bug though since we should no assume that we have
a session when we authenticate a user. Please file a bug report on
bugs.horde.org.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the kronolith
mailing list