This may be a bug, but I can also see where it would be working as intended, so I figured that I would post this here in case anybody has a work-around. If others think that it's a bug then I'll be happy to create a ticket.
The file manager always prepends the users' home directory to directory paths. This can cause problems when symlinks exist that point outside of the user's home directory. For example:
If we have the following symlink set up to point to a special directory that contains logs we want the customer to access:
lrwxrwxrwx 1 rioteigt rioteigt 11 Apr 19 14:13 /home1/rioteigt/access-logs -> /var/log/domlogs/rioteigt
The filemanager will:
A) Properly list the symlink as a directory we shoud be able to navigate
B) When we try to access it through the FileManager we get the following error:
[2012-04-25 20:46:54 -0600] warn [fileman::listfiles] Encountered error in fileman::listfiles: Internal error: can't find that folder: /home1/rioteigt/var/log/domlogs/rioteigt
I've read over the fileman::listfiles documentation here Fileman Module Documentation and it seems like we should be able to work around this problem by changing the dir value when listing a symlink. That being said, the fileman module is built into the cPanel binary. We can't patch or modify it (if my understanding is correct). Has anybody already run into worked around this or come up with a solution?
Thanks in advance,
Erick
The file manager always prepends the users' home directory to directory paths. This can cause problems when symlinks exist that point outside of the user's home directory. For example:
If we have the following symlink set up to point to a special directory that contains logs we want the customer to access:
lrwxrwxrwx 1 rioteigt rioteigt 11 Apr 19 14:13 /home1/rioteigt/access-logs -> /var/log/domlogs/rioteigt
The filemanager will:
A) Properly list the symlink as a directory we shoud be able to navigate
B) When we try to access it through the FileManager we get the following error:
[2012-04-25 20:46:54 -0600] warn [fileman::listfiles] Encountered error in fileman::listfiles: Internal error: can't find that folder: /home1/rioteigt/var/log/domlogs/rioteigt
I've read over the fileman::listfiles documentation here Fileman Module Documentation and it seems like we should be able to work around this problem by changing the dir value when listing a symlink. That being said, the fileman module is built into the cPanel binary. We can't patch or modify it (if my understanding is correct). Has anybody already run into worked around this or come up with a solution?
Thanks in advance,
Erick