6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/20/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6048] cannot add ACLs to kolab's default tasklist "Aufgaben" (German)
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . ..___.__ .___ [__)\ /[__ [ __[__ | \/ [___[_./|
Comment
> i have played around with it a little more. > > > > i have replaced the original method in lib/Horde/Share.php: > > > > function &getShareById($cid) > > { > > if (!isset($this->_shareMap[$cid])) { > > $share = &$this->_getShareById($cid); > > if (is_a($share, 'PEAR_Error')) { > > return $share; > > } > > $share->setShareOb($this); > > $name = $share->getName(); > > $this->_cache[$name] = &$share; > > $this->_shareMap[$cid] = $name; > > } > > return $this->_cache[$this->_shareMap[$cid]]; > > } > > > > by my own debug version (what it does: do not use _cache, but update _cache): > > > > function &getShareById($cid) > > { > > $share = &$this->_getShareById($cid); > > if (is_a($share, 'PEAR_Error')) { > > return $share; > > } > > $share->setShareOb($this); > > $name = $share->getName(); > > $this->_cache[$name] = &$share; > > $this->_shareMap[$cid] = $name; > > return $share > > } > > > > this debug method raises the same error... > > > > BUT!!! if i comment out one line in my this debug method, it suddenly > works (although on the first spot this does not make sense...): > > > > function &getShareById($cid) > > { > > $share = &$this->_getShareById($cid); > > if (is_a($share, 'PEAR_Error')) { > > return $share; > > } > > $share->setShareOb($this); > > $name = $share->getName(); > > $this->_cache[$name] = &$share; > > /* > > * $this->_shareMap[$cid] = $name; > > */ > > return $share > > } > > > > and the return value of the original getShareById() method is exactly > what is stored in $this->_shareMap[$cid] ("INBOX/Aufgaben", > "INBOX/Aufgaben (PRIVAT)", etc. i.e. the corresponding share name). > > > > is it possible that $this->_cache[$name] and $this->_shareMap[$cid] > refer to the same data structure???? > > > > weird things going on in php... > > > > BTW: where is the _shareMap stored? datatree, php session, filesystem? > > > > hope this helps... > > mike
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers