Feng Forum

Support => Older versions => Topic started by: Nuno Zimas on July 30, 2009, 09:58:51 am

Title: 1.5 final - fatal error when non-admin user upload files
Post by: Nuno Zimas on 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
Code: [Select]
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.
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: ignacio on August 03, 2009, 10:23:31 am
Thanks Nuno,

Fixed for next release, along with the milestone copy error you reported earlier.
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: Nuno Zimas on 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.
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: ignacio on 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
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: ignacio on August 05, 2009, 07:09:19 pm
Hi Nuno,

Can you confirm if this patch fixes your poblem? Thanks.
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: Nuno Zimas on August 06, 2009, 05:59:57 am
Not quite.
The reported fatal error is gone, but a new error message pops up:
Quote
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.
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: ignacio on August 06, 2009, 10:31:23 am
Do you have permissions to write files on the workspace you are choosing?
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: Nuno Zimas on August 06, 2009, 11:20:54 am
Yep. Read / write permissions on the workspace confirmed.
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: ignacio on 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?
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: Nuno Zimas on 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.
Title: Re: 1.5 final - fatal error when non-admin user upload files
Post by: alvarotm01 on 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:
Code: [Select]
if ($object->canAdd(logged_user(), $ws)) {