[Tickets #1683] RESOLVED: Patch to generate static user FB URL

bugs@bugs.horde.org bugs at bugs.horde.org
Thu May 12 12:02:29 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1683
-----------------------------------------------------------------------
 Ticket             | 1683
 Updated By         | kevin_myer at iu13.org
 Summary            | Patch to generate static user FB URL
 Queue              | Kronolith
 Version            | 2.0.2
 State              | Resolved
 Priority           | 2. Medium
 Type               | Enhancement
 Owners             | Chuck Hagenbuch
-----------------------------------------------------------------------


kevin_myer at iu13.org (2005-05-12 12:02) wrote:

There's a cache namespace collision possible with my patch.  The FB info is
cached with the username or calendar as the key (depending on if u or c is
specified).  If I have a share named kevin_myer at iu13.org and I call fb.php
with c=kevin_myer at iu13.org, the cache will contain FB info for a share.  If
I shortly thereafter call fb.php with u=kevin_myer at iu13.org, and I have
defined a different set of shares that should be used to generate my FB info
(i.e. fb_cals is set to one or more shares), I'll get the cached results of
just c=kevin_myer at iu13.org.

In other words, if fb_cals=kevin_myer at iu13.org and I call fb.php with either
u, or c, I'll get the right results because u == c.

If fb_cals=kevin_myer at iu13,org, and another share
(examplesharepadto32bits...), I'll get the wrong results from the cache,
because u is actually c + exampleshare, but it will be cached with my email
address as the key (and what results will be returned will depend on whether
fb.php was called with u or c first).

Or maybe in plainer terms - my patch uses the same key for both user FB and
single calendar FB info.  A simple solution would be to prepend a "u-" or a
"c-" before the share/user name, so the cached result for
u-kevin_myer at iu13.org would be my fb_cals FB info and the cached result for
c-kevin_myer at iu13.org would be a share FB info.




More information about the bugs mailing list