dakira / myroundcube

Automatically exported from code.google.com/p/myroundcube
0 stars 0 forks source link

[db_version] - sqlite support is broken #624

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Token: 5959d27dd9cb7173e6487828f1caa83e (Don't modify this token!)
Version: 2.0.10 (29-12-2013)
PHP: 5.4.23
RCMAIL: 0.9.5
Database: 
SERVER: nginx/1.4.4
----
I.  Issue Description:
db_version.php can not parse 'db_dsnw' for values like 'sqlite:////...' due 
limits of php function 'parse_url'
See notes at http://ru2.php.net/manual/en/function.parse-url.php

II. Steps to reproduce the Issue:
1. Clean install of RoundCube (for me 0.9.5)
2. Clean install of plugin_manager ( for me 23.0.6)
3. Adding
$rcmail_config['db_dsnw'] = 
'sqlite:////usr/local/www/roundcube/data/sqlite.db?mode=0646';
to db.inc.php
4. Adding
$rcmail_config['plugins'] = array('plugin_manager');
to main.inc.php
5. Try to open in browser 

III. Resulted output:
MyRoundcube Fatal Error
-----------------------
Failed to detect database type.
Please contact MyRoundcube Dev Team (dev-team@myroundcube.com) and mail the 
following string (don't miss to mask password and to clear your Browser cache):

sqlite:////usr/local/www/roundcube/data/sqlite.db?mode=0646 

Original issue reported on code.google.com by 7zsfxse...@gmail.com on 3 Jan 2014 at 12:01

GoogleCodeExporter commented 8 years ago

Original comment by myroundc...@gmail.com on 3 Jan 2014 at 6:11