Author Topic: 1.5 final - fatal error when non-admin user upload files  (Read 3364 times)

Nuno Zimas

  • Full Member
  • ***
  • Posts: 127
    • View Profile
1.5 final - fatal error when non-admin user upload files
« 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.
OS: GNU/Linux (PCLinuxOS) | Browser: Firefox 3.6.x and Chromium 5.0.x | FengOffice 1.7 RC

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #1 on: August 03, 2009, 10:23:31 am »
Thanks Nuno,

Fixed for next release, along with the milestone copy error you reported earlier.

Nuno Zimas

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #2 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.
OS: GNU/Linux (PCLinuxOS) | Browser: Firefox 3.6.x and Chromium 5.0.x | FengOffice 1.7 RC

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #3 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

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #4 on: August 05, 2009, 07:09:19 pm »
Hi Nuno,

Can you confirm if this patch fixes your poblem? Thanks.

Nuno Zimas

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #5 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.
OS: GNU/Linux (PCLinuxOS) | Browser: Firefox 3.6.x and Chromium 5.0.x | FengOffice 1.7 RC

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #6 on: August 06, 2009, 10:31:23 am »
Do you have permissions to write files on the workspace you are choosing?

Nuno Zimas

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #7 on: August 06, 2009, 11:20:54 am »
Yep. Read / write permissions on the workspace confirmed.
OS: GNU/Linux (PCLinuxOS) | Browser: Firefox 3.6.x and Chromium 5.0.x | FengOffice 1.7 RC

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #8 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?

Nuno Zimas

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #9 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.
OS: GNU/Linux (PCLinuxOS) | Browser: Firefox 3.6.x and Chromium 5.0.x | FengOffice 1.7 RC

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: 1.5 final - fatal error when non-admin user upload files
« Reply #10 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)) {

 

anything
anything