FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18373&edit=1

ID: 18373
Updated by: till@php.net
Reported By: boehmer at tropos dot de
Summary: Check directory permission with SQLite
-Status: Open
+Status: Bogus
Type: Feature/Change Request
Package: MDB2
Operating System: Debian Linux 5.0 Lenny
Package Version: Unknown
PHP Version: 5.2.6
-Assigned To:
+Assigned To: till
Roadmap Versions:
New Comment:

-Status: Open
+Status: Bogus
-Assigned To:
+Assigned To: till
Sorry, but your problem does not imply a bug in PEAR itself. For a
list of more appropriate places to ask for help using PEAR, please
visit http://pear.php.net/support/ as this bug system is not the
appropriate forum for asking support questions.

Thank you for your interest in PEAR.

As a member of the RoundCube team I take the liberty to bogus this on
PEAR. ;-)

@Daniel: If you want to report a bug/feature request to RoundCube,
please use its trac:
http://trac.roundcube.net.


Previous Comments:
------------------------------------------------------------------------

[2011-03-18 16:36:14] boehmer

Description:
------------
I use Roundcubemail version 0.5.1 which ships an unknown version of
MDB2. In IRC #roundcube on freenode this was confirmed but nobody knew
the exact version of MDB2. Any version information in the MDB2 files are
missing.

However I've just experienced problems using SQLite as DB for RC. I set
correct permission on the file for the Apache to work with the file. But
I forgot to give write permissions on the folder containing the file.
This makes SQLite fail. I could confirm this by configuring RC to use
another SQLite file (actually another hard link to the very same file)
and RC worked perfectly.

I suggest MDB2 should check write permissions on the directory 1 level
up from the SQLite file to give better error messages. In my case MDB2
reported "unknown error" which took me some time to find the reason.

Test script:
---------------
Install RC correctly and set it up to use an SQLite file as DB. Disable
write permissions for the Apache user on the directory the file is in
and find that RC doesn't work anymore.

I suppose it should work with any MDB2 app.

Expected result:
----------------
Useful error message or working MDB2. I am not quite sure why one cannot
work with the DB if write permissions on the dir are missing.

Actual result:
--------------
MDB2 failing with unknown error in RC's log.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 18, '11 at 7:18p
activeMar 18, '11 at 7:18p
posts1
users1
websitepear.php.net

1 user in discussion

Till: 1 post

People

Translate

site design / logo © 2021 Grokbase