Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Temp Folder Unwritable on Unpack of zip file
(1 viewing) (1) Guest
Support forum for users using free edition of JoomDOC. These forums are mainly for mutual help between users.

NOTE: Due to our capacity limitations, ARTIO does not monitor this forum category regularly. If you want direct support from ARTIO, please start a ticket at Support Dashboard. If you have no support ticket available, you need to purchase it.
  • Page:
  • 1

TOPIC: Temp Folder Unwritable on Unpack of zip file

Temp Folder Unwritable on Unpack of zip file 12 years, 11 months ago #26507

I am testing out JoomDoc 3.2.3 Standard and have run across an issue with trying to unpack a zip file. I am receiving the following error and the unpack is not being done:

Joomla temporary folder [config temp folder] is unwritable

It looks like we are receiving the error because our temp folder is set to have restricted permissions and we are using the FTP configuration to actually do the write. In your code I found the location where you are checking the temp folder and using the is_writable php function, but since the permissions are restricted to only the FTP client it is always returning false even though JFile will be able to write to it (file:/administrator/components/com_joomdoc/libraries/joomdoc/filesystem/filesystem.php method:getJoomlaTemporaryFolder). I can see where the unwritable error messages might be useful for users but in this case it is actually incorrect. I made a modification to go ahead and return the temp folder even if that unwritable message is raised.

I really don't think you even need to do that initial check for is_writable and just let JFile handle raising an error if the folder really isn't writable. It does mean that the user will not know until they try to do a write but you won't hurt users who are using the FTP process to get around server Permissions.

Re: Temp Folder Unwritable on Unpack of zip file 12 years, 10 months ago #26873

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Hello, thanks for your notice.
ARTIO Support Team
  • Page:
  • 1
User Login Empty