Home My Page Projects FusionForge
Summary Activity Forums Tracker Lists News SCM Files Mediawiki Hudson/Jenkins

[#704] [plugin: docman] Inject Tree does not have rights to $extractdir.

Date:
2014-07-25 01:46
Priority:
3
State:
Closed
Submitted by:
Stephen Chappo (scon)
Assigned to:
Franck Villaume (nerville)
Target Release:
5.3
Found in Version:
5.2.3
Severity:
normal
Resolution:
Fixed
Summary:
[plugin: docman] Inject Tree does not have rights to $extractdir.

Detailed description
When injecting a docman tree I get the message "Unable to extract zipfile"


In file: /usr/share/gforge/common/docman/DocumentGroup.class
$extractdir in function __injectZip is defined as /var/lib/gforge/<uniqid>

Setting $extractdir to a writable directory such as /var/lib/gforge/download/<uniqid> allows the function to proceed and the tree is injected but the directory is not deleted after the function runs.
Message  ↓
Date: 2014-07-30 08:58
Sender: Franck Villaume

Then I close this ticket.
Feel free to reopen if needed.

Date: 2014-07-29 23:38
Sender: Stephen Chappo

I am happy to just replace that line in my config if that works - we should be upgrading to v.5.3 sometime soon anyways.

Date: 2014-07-25 07:51
Sender: Franck Villaume

In branch 5.2, the extract is based on forge_get_config('data_path') (in your case : /var/lib/gforge ).

It has been fixed in upstream version (>= 5.3).
$extractDir = sys_get_temp_dir().'/'.uniqid();

Still the branch 5.2 is obsolete, I can make a backport if needed.


Field Old Value Date By
assigned_tonone2014-07-30 08:58nerville
status_idOpen2014-07-30 08:58nerville
close_dateNone2014-07-30 08:58nerville
Target ReleaseNone2014-07-30 08:58nerville
ResolutionAwaiting Response2014-07-30 08:58nerville
ResolutionNone2014-07-25 07:51nerville