| Summary | Missing leading slash in sqlhome VFS |
| Queue | Gollem |
| Queue Version | HEAD |
| Type | Bug |
| State | Not A Bug |
| Priority | 1. Low |
| Owners | slusarz (at) horde (dot) org |
| Requester | rosenfeld (at) alum (dot) mit (dot) edu |
| Created | 08/25/2005 (7381 days ago) |
| Due | |
| Updated | 08/26/2005 (7380 days ago) |
| Assigned | 08/25/2005 (7381 days ago) |
| Resolved | 08/26/2005 (7380 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
assumes that no one had uploaded a new file since the upgrade.
DELETE FROM horde_vfs WHERE LEFT(vfs_path, 1) <> '/'
UPDATE horde_vfs SET vfs_path = RIGHT(vfs_path, LENGTH(vfs_path) -1)
WHERE LEFT(vfs_path, 1) = '/'
These queries worked on my table with ~100 entries. I haven't tested
them heavily and can't imagine how they'd work on foreign charsets or
paths with escape sequences. I know it's not much, but hopefully it's
something.
State ⇒ Not A Bug
entries that contain a slash at the beginning. gollem was in beta
until 1.0 and the way data was stored was changed before the first
stable release came out - this is why no upgrade script has been
provided. it would be great if you could post any script you come up
with.
State ⇒ Assigned
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Missing leading slash in sqlhome VFS
Queue ⇒ Gollem
longer shows the files it's holding. My backends.php is below.
Browsing the horde_vfs table
after uploading a new test file that did appear, I notice a change.
New entries in the vfs_path table have no leading slash, but the old
missing entries do. For example, I have
old: vfs_path = /home
new: vfs_path = home
I also have some entries where vfs_path is empty, which I'm guessing is
from the recently corrected bug we read about on the list. Can you
help me correct the error so that my old documents display?
$backends['sqlhome'] = array(
'name' => 'SQL Server with home',
'driver' => 'sql',
'preferred' => '',
'hordeauth' => false,
'params' => array_merge($GLOBALS['conf']['sql'], array('table' =>
'horde_vfs')),
'loginparams' => array(),
'attributes' => array('type', 'name', 'download', 'modified',
'size', 'permission', 'owner', 'group'),
'root' => '/home',
'home' => '/home/' . Auth::getAuth(),
'createhome' => true
);