[#704] [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.

General Information
Submitted by:
Stephen Chappo
Date Submitted: 2014-07-25 01:46
Last Modified by: Nobody
Last Modified: 2017-11-02 20:00
Date Closed: 2014-07-30 08:58
Permalink: https://fusionforge.org/tracker/a_follow.php/704
Internal Fields
Data Type: Bugs
Assigned to: Franck Villaume (nerville)
State: Closed
Priority: 3
Extra Fields
Target Release:
Found in Version:
Follow-up tabs
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 forgegetconfig('data_path') (in your case : /var/lib/gforge ).

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

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

No attached documents

No related commits.

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

No relations found.