[dev] Gollem problem

Kinglok, Fong busywater at gmail.com
Sat Dec 29 15:03:13 UTC 2012


Hi,

As I read from the dev mailing list talking about the showstopper of Gollem, I think there is another serious bug worth mentioning. 
The problem originates from having a backend with smb.  Here is the steps I reproduce the problem

1. Edit the gollem backends.local.php as follows.

Pay attention to the name of the backend.  I gave 'smb2' as the name.
===========================================
<?php
$backends['smb2'] = array(
    // Disabled by default
    'disabled' => false,
    'name' => 'PersonalDrive',
    'driver' => 'smb',
    'hordeauth' => true,
    'params' => array(
        'hostspec' => 'file.yauoi.org',
        'port' => 445,
        'share' => 'homes',
        // Path to the smbclient executable.
        'smbclient' => '/usr/bin/smbclient',
        // IP address of server (only needed if hostname is different from
        // NetBIOS name).
        // 'ipaddress' => '127.0.0.1',
        // The default permissions to set for newly created folders and
        // files.
        // 'permissions' => '750'
    ),
    'loginparams' => array(
        // Allow the user to change to Samba server.
        // 'hostspec' => 'Hostname',
        // Allow the user to change the Samba port.
        // 'port' => 'Port',
        // Allow the user to change the Samba share.
        // 'share' => 'Share',
    ),
    // 'root' => '',
    // 'home' => '',
    // 'createhome' => false,
    // 'filter' => '^regex$',
    // 'quota' => false,
    'attributes' => array(
        'type',
        'name',
        'edit',
        'download',
        'modified',
        'size'
    )
);

=======================

2.  The directory list is correct, however, the following error appear on screen after clicking download button.

====================
A fatal error has occured
Class definition of Horde_Vfs_ not found
Details have been logged for the administrator
====================

Also, the debug log is shown as follows
=======================
2012-12-29 22:50:38.293501500 Dec 29 14:50:38 DEBUG: HORDE [gollem] Load config file (conf.php; app: gollem) [pid 27649 on line 476 of "/usr/share/php/Horde.php"]
2012-12-29 22:50:38.293504500 Dec 29 14:50:38 ERR: HORDE [gollem] Invalid backend key "smb" from client [14.198.113.45] [pid 27649 on line 234 of "/var/www/html/webmail/gollem/lib/Auth.php"]
2012-12-29 22:50:38.293619500 Dec 29 14:50:38 EMERG: HORDE [horde] Class definition of Horde_Vfs_ not found. [pid 27649 on line 43 of "/usr/share/php/Horde/Vfs.php"]
2012-12-29 22:50:38.293622500 2012-12-29T14:50:38+00:00 DEBUG: HORDE 1. Horde_Registry->callAppMethod() /var/www/html/webmail/services/download/index.php:33
2012-12-29 22:50:38.293624500 2. call_user_func_array() /usr/share/php/Horde/Registry.php:1140
2012-12-29 22:50:38.293739500 3. Gollem_Application->download()
2012-12-29 22:50:38.293741500 4. Gollem_Factory_Vfs->create() /var/www/html/webmail/gollem/lib/Application.php:313
2012-12-29 22:50:38.293743500 5. Horde_Vfs::factory() /var/www/html/webmail/gollem/lib/Factory/Vfs.php:66
2012-12-29 22:50:38.293745500 
2012-12-29 22:50:38.293746500 Dec 29 14:50:38 DEBUG: HORDE [horde] Max memory usage: 2883584 bytes [pid 27649 on line 543 of "/usr/share/php/Horde/Registry.php"]
=======================

I consider this bug is very serious and should be consider 'showstopper' since it does not permit two backends running smb as driver.

Thanks for help.

Kinglok, Fong


More information about the dev mailing list