Feng Forum

Support => Older versions => : Nuno Zimas July 30, 2009, 09:58:51 AM

: 1.5 final - fatal error when non-admin user upload files
: Nuno Zimas July 30, 2009, 09:58:51 AM
Another error which happens only in very specific circumstances.

In certain Workspaces, ia regular user performs the following sequence:

Documents > New > Upload a file > (the file is reckoned) > Add File
:
Fatal error: Call to undefined method
FileRepository_Backend_FileSystem::saveFileAttributes()
in /var/www/opengoo/library/filerepository/backend/FileRepository_Backend_FileSystem.class.php
on line 282

The permissions for that user and workspace are set correctly.

Admins can upload to that same workspace with no problem.
: Re: 1.5 final - fatal error when non-admin user upload files
: ignacio August 03, 2009, 10:23:31 AM
Thanks Nuno,

Fixed for next release, along with the milestone copy error you reported earlier.
: Re: 1.5 final - fatal error when non-admin user upload files
: Nuno Zimas August 04, 2009, 08:43:05 AM
Thanks Nuno,

Fixed for next release, along with the milestone copy error you reported earlier.
Would you mind posting the code lines to add or change?
Thanks!

Nuno.
: Re: 1.5 final - fatal error when non-admin user upload files
: ignacio August 04, 2009, 10:18:11 AM
Today we are releasing 1.5.1.

I'm attaching the file you have to replace: 'library/filerepository/backend/FileRepository_Backend_FileSystem.class.php'

Regards
: Re: 1.5 final - fatal error when non-admin user upload files
: ignacio August 05, 2009, 07:09:19 PM
Hi Nuno,

Can you confirm if this patch fixes your poblem? Thanks.
: Re: 1.5 final - fatal error when non-admin user upload files
: Nuno Zimas August 06, 2009, 05:59:57 AM
Not quite.
The reported fatal error is gone, but a new error message pops up:
Error: You must choose at least one workspace where to put the object.
There's a workspace selected, of course.

Cache has been cleaned before testing.
Using Firefox 3.5.2

Nuno.
: Re: 1.5 final - fatal error when non-admin user upload files
: ignacio August 06, 2009, 10:31:23 AM
Do you have permissions to write files on the workspace you are choosing?
: Re: 1.5 final - fatal error when non-admin user upload files
: Nuno Zimas August 06, 2009, 11:20:54 AM
Yep. Read / write permissions on the workspace confirmed.
: Re: 1.5 final - fatal error when non-admin user upload files
: ignacio August 06, 2009, 07:38:12 PM
Is it a fresh install? An upgrade from a previous version? Is it with all workspaces or some specific one?
: Re: 1.5 final - fatal error when non-admin user upload files
: Nuno Zimas August 07, 2009, 06:39:32 AM
Upgraded environment (1.4.2 -> 1.5 RC -> 1.5 final).
The incident happens in one particular workspace.
I have double checked the user permissions on that particular workspace and read / write is ticked in the Files column.
: Re: 1.5 final - fatal error when non-admin user upload files
: alvarotm01 August 07, 2009, 11:41:48 AM
Hi Nuno,

To fix this issue replace line 113 of '/application/controllers/ObjectController.class.php'
with this one:
:
if ($object->canAdd(logged_user(), $ws)) {