[Pkg-roundcube-maintainers] Bug#656886: roundcube: problems with symlinks in /var/lib/roundcube/plugins/
Marc Dequènes (Duck)
duck at duckcorp.org
Sun Feb 5 18:50:20 UTC 2012
Coin,
Quoting Vincent Bernat <bernat at debian.org>:
> I don't really understand why the fact that the symlink is a relative
> one is a problem. From what I understand, you want to try to access to:
> /var/lib/roundcube/plugins/jqueryui/js/jquery-ui.min.js
Apache tries to yes:
[Sun Feb 05 18:59:15 2012] [error] [client
2001:7a8:810:6969:21f:d0ff:fe8f:cfec] Symbolic link not allowed or
link target not accessible: /var/lib/roundcube/plugins/jqueryui/css,
referer: https://webmail-rc.duckcorp.org/?_task=settings
[Sun Feb 05 18:59:15 2012] [error] [client
2001:7a8:810:6969:21f:d0ff:fe8f:cfec] Symbolic link not allowed or
link target not accessible:
/var/lib/roundcube/plugins/jqueryui/js/jquery-ui.min.js, referer:
https://webmail-rc.duckcorp.org/?_task=settings
And as you can see, the css symlink is not working either.
> The output of ls -l is misleading for this file:
> lrwxrwxrwx 1 root root 49 janv. 22 12:37
> /var/lib/roundcube/plugins/jqueryui/js/jquery-ui.min.js ->
> ../../../../javascript/jquery-ui/jquery-ui.min.js
Why misleading?
> From the above, we may assume that the linked file is:
> /var/lib/javascript/jquery-ui/jquery-ui.min.js
> Is that what you mean?
Yes.
> However, readlink -f output confirms that everything works as expected:
> $ readlink -f /var/lib/roundcube/plugins/jqueryui/js/jquery-ui.min.js
> /usr/share/javascript/jquery-ui/jquery-ui.min.js
But it does not here.
> Do you get a 404 when accessing this file? With Apache, if I try this, I
> get the file:
> $ curl http://localhost/roundcube/plugins/jqueryui/js/jquery-ui.min.js
I get a 403, see log entries above.
> I have:
> Alias /roundcube /var/lib/roundcube
I'm using a dedicated vhost, but was using /usr/share/roundcube.
It seems i missed the change in the changelog in 0.5.1-1 « Rework how
symlinks work. ». Nevertheless, after changing the directory, it does
not work better.
I had another look at the problem. When building your package i get
(using debc):
lrwxrwxrwx root/root 0 2012-02-05 19:06
./var/lib/roundcube/plugins/jqueryui ->
/usr/share/roundcube/plugins/jqueryui
In my system, it is not a symlink, but a directory. I may have done a
mistake earlier, so i moved /var/lib/roundcube/plugins/jqueryui away,
before upgrading to 0.7.1-1. This file is then recreated
as a
directory!
Looking a bit further, i can see /usr/share/roundcube/plugins should
be a directory, but in my system is a symlink to
/var/lib/roundcube/plugins.
It really seems the migration to the new symlink layout did not work
correctly on my system :-(.
--
Marc Dequènes (Duck)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: PGP Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-roundcube-maintainers/attachments/20120205/08d4f953/attachment.pgp>
More information about the Pkg-roundcube-maintainers
mailing list