6.0.0-alpha12
6/12/25

[#9810] PHP Error when changin permissions on file/folder
Summary PHP Error when changin permissions on file/folder
Queue Gollem
Queue Version 1.1
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester jkara (at) auth (dot) gr
Created 04/05/2011 (5182 days ago)
Due
Updated 04/19/2011 (5168 days ago)
Assigned
Resolved 04/19/2011 (5168 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
04/19/2011 04:30:00 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
04/19/2011 04:21:57 PM CVS Commit Comment #2 Reply to this comment
Changes have been made in CVS for this ticket:

Keep copy of PEAR_Error (Bug #9810).
http://cvs.horde.org/diff.php/gollem/manager.php?rt=horde&r1=1.146.2.23&r2=1.146.2.24&ty=u
04/05/2011 01:25:05 PM jkara (at) auth (dot) gr Comment #1
Priority ⇒ 2. Medium
New Attachment: manager.php Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Gollem
Summary ⇒ PHP Error when changin permissions on file/folder
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
When changing permissions on a file/folder, webmail displays a blank page.
in the error Log:
[Tue Apr 05 16:05:54 2011] [error] [client 155.207.xxx.yyy] PHP Fatal 
error:  Call to a member function getMessage() on a non-object in 
/var/www/webmail.auth.gr/htdocs/horde/gollem/manager.php on line 79, 
referer: https://webmail.auth.gr/horde/gollem/manager.php


I do not know if this has been resolved in a later version but after 
reviewing source code of manager.php, I have discovered that the 
solution is to change two lines:

75c75,76
<                     if 
(!is_a(Gollem::changePermissions(Gollem::getDir(), $item, $chmod), 
'PEAR_Error')) {
---
                    $result = Gollem::changePermissions(Gollem::getDir(), $item, $chmod);
                     if (!is_a($result, 'PEAR_Error')) {
Hope this helps someone.

jack

Saved Queries