helpSavane - Support: sr #841, Download Structure

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

sr #841: Download Structure

Submitted by:  Paul <sysxperts>
Submitted on:  Wed 23 Nov 2005 10:10:49 PM UTC  
 
Category: Installation/ConfigurationPriority: 5 - Normal
Status: Need InfoPrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: 

Sat 18 Mar 2006 07:23:26 PM UTC, comment #5:

Thank you for this support ticket - it answered one of the mysteries I was trying to figure out.

John D. Mann <johndmnn>
Fri 25 Nov 2005 08:09:58 PM UTC, comment #4:

Thanks for the feedback, I was able to get everything working OK. My reference to the package command was related to the default add.php page which basically provides command syntax for uploading files via the shell:

echo '<br />&nbsp;&nbsp;&nbsp;# package '.$input_file;
echo '<br />&nbsp;&nbsp;&nbsp;mkdir -

I assumed that the line of code above was referring to a command called package because i did not see the # in front of it - doh:).

Another quick question: If I want group members other than project admin to be able to upload what do I need to add to php code? I'm using $group_id as hidden input to upload form and have the following verification in upload page.
$project=project_get_object($group_id);

if ($group_id) {

if (member_check(0,$group_id)) {
site_project_header(array('title'=>_("Add Release"),
'group'=>$group_id,
'toptab'=>'download'));

I'm guessing that member_check value needs to be adjusted to allow other users but not sure what value it needs to have to allow all group members or a subset of members.

Thanks again,

Paul

Paul <sysxperts>
Fri 25 Nov 2005 03:33:37 PM UTC, comment #3:

> Then I should see the file list on index page, is that correct?


That's correct.

> also, i noticed when trying to use the command package from shell it says

> there is no such command on my box - what do I need to install to get package
> command?

The command package ?

Mathieu Roy <yeupou>
Project Administrator
Fri 25 Nov 2005 03:06:39 PM UTC, comment #2:

Hi,

Need clarification, I've just been uploading the file into the directory i.e. /www/releases.
But I'm guessing that what you are telling me is, for instance, if I have configured directory /www/releases and I want my files to display in the index page I would need to upload them to structure like this:
/www/releases/thisbranch.pkg/1.0.2/thisfile.tar.gz

Then I should see the file list on index page, is that correct?

also, i noticed when trying to use the command package from shell it says there is no such command on my box - what do I need to install to get package command?

Paul <sysxperts>
Fri 25 Nov 2005 09:14:56 AM UTC, comment #1:

Hello,

There are actually two cases of redirects. The first case is whenever nothing is configured. This does not seems to be the case for you.

The second is when no file was found following the structure required by the file mecanism (which is to have a list a directory thisbranch.pkg/1.0.2/thisfile.tar.gz)

If this does not work, there's a bug somewhere. Does it solve you problem?

Mathieu Roy <yeupou>
Project Administrator
Wed 23 Nov 2005 10:10:49 PM UTC, original submission:

Hello,

I'm a little confused as to the appropriate structure for download area.

I currently have savane in /www/savane and my download area in /www/releases/$projectname

I want to continue using the index.php which is located in the frontend/php/files folder while viewing and linking to files in the /www/releases folder from that page

I currently have in Group Management
/www/releases/%PROJECT as the download directory
And in Group Type Management under Download Area I have
checked Can use Download
Basic Directory
Repository Dir is /www/releases/%PROJECT
and Repository URL is where my problem is - i think

Problem: When i add a url to the download directory it brings me directly to the releases directory instead of bringing up the index page in savane/files/index.html which is where I want to go.
How do I fix it so that Repository URL updates the $files_path variable without redirecting away from savane/files/index.html page and so that it includes list of files on that page?

Thanks,

Paul Valentino

Paul <sysxperts>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by johndmnn (Posted a comment)
  • -unavailable- added by yeupou (Updated the item)
  • -unavailable- added by sysxperts (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 25 Nov 2005 09:14:56 AM UTCyeupouStatusNone=>Need Info
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup