[Tickets #1689] NEW: Incorrect Links

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Apr 4 20:40:30 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1689
-----------------------------------------------------------------------
 Ticket             | 1689
 Created By         | td at homenet.tzo.com
 Summary            | Incorrect Links
 Queue              | Gollem
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


td at homenet.tzo.com (2005-04-04 20:40) wrote:

Using gollem-HEAD-2005-04-04.tar.gz:

I implemented this tonight and found the following:

When clicking on File Manager after first logging in, user gets taken to
their home directory.

The normal non-linux (unix, etc) user will not know to click on the "Change
Folder" link at the top and type in / to go to the root directory.

Clicking on Change Folder, navigate to any folder on the drive.  For
example, change to dir foo.  User gets taken to the foo dir.  There is no
longer a link to back to the / dir.  When clicking on the "Home" link at the
top, the page tries to take the user to the user's home dir under the dir
that they are currently in.  example, user is in dir foo, clicking on the
"Home" link at the top tries to take the user to foo/user_home_dir.

My backends.php file:

$backends['file'] = array(
    'name' => 'Virtual Home Directories',
    'driver' => 'file',
    'preferred' => '',
    'root' => '',
    'params' => array(
        // The base location of user home directories.
        'vfsroot' => '/http/vfs/',
        // The name of the current user's home directory.
        'home' => Auth::getAuth()
    ),
    'attributes' => array('type', 'name', 'download', 'modified', 'size',
'permission', 'owner', 'group')
);

Parsing through Gollem.php and manager.php under the gollem dir, it seems as
if  the function:

 function getHome()
    {
        return $GLOBALS['gollem_be']['home'];
    }

isn't actually grabbing the user's home or the root home.

Output of debugging:

currdir value from line 186 or manager.php: /Fun Videos/tony

globals gollem_be home value from line 150 of Gollem.php: tony

I'm not sure how to change this to add the "Root" link back to the beginning
of the path display right next to the refresh icon nor how to change the
"Home" link at the top of the page to go to the user's actual dir or the
root dir.

Any help on this would be appreciated.

Thanks,

Antonio DeLaCruz




More information about the bugs mailing list