[Owncloud] Re: ownCloud 1.1 RC1 releases
François
daitheflu at free.fr
Sat Nov 6 01:04:32 UTC 2010
Le vendredi 5 novembre 2010 18:25:42, vous avez écrit :
> On Fri, Nov 5, 2010 at 13:46, François K. <daitheflu at free.fr> wrote:
> > Hi,
> >
> > I've also notice something wrong with my ownCloud setup.
> > I don't really know if it's revelant or not, and I didn't have the time
> > to check everything for now, but, when I upload a file, and then refresh
> > the page, the 'Files' space doesn't show up. Firefox's error console
> > shows the following :
> >
> > Error: invalid regular expression flag u
> > Source File: http://www.kubler.org/owncloud/js/lib_files.js
> > Line: 45, Column: 132
> > Source Code:
> > <b>Warning</b>: file_exists() [<a
> > href='function.file-exists'>function.file-exists</a>]: open_basedir
> > restriction in effect. File(/usr/bin) is not within the allowed path(s):
> > (/home/users4/k/kubler/:/home/temporaire/upload:/tmp:/usr/local/lib/php/
> > ) in <b>/home/users4/k/kubler/www/owncloud/inc/lib_filestorage.php</b> on
> > line <b>328</b><br />
> >
> > As I said, the cause might be my setup (I don't host the server myself,
> > so there might be restrictions).
> >
> > I still hope it can help :)
>
> From what I can see is it caused by the fallback method for mimetype
> detection that relies on the file command, which it first checks if it
> can execute that command, your host however provides restrictions on
> the way that is checked.
>
> It might be an idea to catch the error and switch to the last fallback
> (a hardcoded list of extentions and mimetypes) in those cases.
>
> - Robin Appelman
Hey,
@Robin : thank you for the information.
I took a closer look at it, and you were right, I have an open_basedir
restriction on my host.
So, I wrote a small patch to correct this, and successfully tested it with my
host. You'll find it attached to this mail. I added and removed a few lines in
the canExecute() method.
And now, time to go to sleep :)
--
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib_filestorage.php.patch
Type: text/x-patch
Size: 6590 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20101106/00313c9b/attachment.bin>
More information about the Owncloud
mailing list