Go Back   FlashFXP Forums > > > >

Bug Reports If you discover any bugs that we are not aware of, please post it here so it may be corrected.

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-28-2004, 01:06 PM   #1
ADDiCT
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 517
Default issue with RETR /.../file

VFS setup:
c:\ftproot\ /
g:\games\ /incoming/games/

Section setup:
games = /incoming/games/* 1 1
default = /* 0 0

User's PWD: /
(so he's in section 0)

Downloading a file with :
RETR /incoming/games/release/filename.rar
(which is in section 1)

ioFTPD works correct, it removes credits from section 1 creditcounter.


Now here's the "problem":
Environment variables are set to section 0, so if a script uses those env. vars. to check something, it will think that the user downloaded a file in section 0.
(no idea if it applies to itcl as well)

Also:
shmem ONLINEDATA struct contains / for PWD and c:\ftproot\ for realpath, while in effect, the file is in g:\games\release\
This makes it impossible to check the filesize of the local file.


Is there any way to get the correct section/path without blocking "RETR */*" commands?
ADDiCT is offline   Reply With Quote
Old 01-28-2004, 03:55 PM   #2
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Hmms yep.. I can see that as a issue. Those section variables show current section user is in. Not the section file is in... I'm sooing doing some rewriting on cookiesystem, I'll try to add some new cookies then.
darkone is offline   Reply With Quote
Old 01-28-2004, 04:09 PM   #3
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Btw. shmem stores those variables to tszRealDataPath & tszVirtualDataPath
darkone is offline   Reply With Quote
Reply

Tags
check, correct, file, retr, section

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:51 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)