I think we need some encoding and url-encoding is probably the most
natural for urls, as it’s understood/ignored by parse_url.
I will surely not fix that for the old vfs, so implementation has to
wait, until we can fully implement the new vfs system.
The biggest obstacle at the moment are extended ACL’s used in the old
vfs: group dirs can be made available to other users or groups with
changed rights.
We had a meeting at Stylite on Tuesday, to discuss what kind of extended
ACL we want to implement in the new vfs. We looked at ACL systems of
Linux, Windows and Samba. We decided to try to implement a (inherited)
right on directory level for users and groups with given rwx attributes.
That would allow to automatic convert the group ACL of the old vfs system.
The extended ACL will only only be an optional feature, implemented by
certain backends (mainly our own sqlfs for now).
Ralf
Nathan Gray schrieb:
Nathan Gray schrieb:
…
Warning: parse_url(/var/www/erp_files/infolog/perp_inventory/STOCK:2/
money.png) [function.parse-url]: Unable to parse URL in /var/www/
perpdevel/phpgwapi/inc/class.vfs_stream_wrapper.inc.php on line 127
Looks like parse_url does not like colons in filenames …
Understandable, but what’s the best solution?
That is a valid path, and replacing the : with %3A will get it past
parse_url(), but it subsequently fails on url_stat(). I’ve tracked it
to vfs_home, and vfs::ls() always returning array(), which causes
problems.
It’s using oldvfs, the path looks like:
oldvfs://nathan:supersecretpassword@default/var/www/erp_files/infolog/
perp_inventory/STOCK%3A3/as-logo.png
I could replace the : everywhere with a - or something, but that will
only work until someone tries to link a file like ‘My Thesis: With a
Subtitle.pdf’ , ‘iChat nathan@local’ or ‘1 1/4" PVC Right 90.png’. It
looks like some sort of escaping / encoding will be needed, but I have
no idea where to put it in or take it out.
Is there anything useful I can do, or should I wait until you get the
new vfs stabilized?
Nathan Gray
nathan at goarctic dot com
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
eGroupWare Training & Support ==> http://www.egroupware-support.de
Outdoor Unlimited Training GmbH [www.outdoor-training.de]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 (0)631 31657-0
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers