"%File" contains mixture of physical and virtual path - a bug?

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



"%File" contains mixture of physical and virtual path - a bug?Expand / Collapse
Author
Message
Posted 4/3/2008 9:35:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/28/2008 11:49:11 AM
Posts: 2, Visits: 3
Hi,

I think I found a bug in WS_FTP Server 6, and I haven't found any mention of it so far, so I guess it hasn't been discovered yet.

When a file upload/download notification triggers on a file in a virtual folder, the parameter "%File" does not expand to the correct physical path of the file on the disk, but rather a mixture of the physical and virtual paths.
In our case we have paths like this:
E:\users\user1\
E:\users\user2\
and a virtual folder for user2, referring to the physical user1 folder.
Now when user2 downloads /user1/file.txt (from his view), %file in the download notification expands to
E:\users\user2\user1\file.txt
instead of
E:\users\user1\file.txt
and scripts called by the notification will report a "path not found" error.
I traced the log entries in our database, these errors started on the day we upgraded from WS_FTP Server 5 to 6, in October 2007.
We're currently testing a workaround that strips the extraneous part from the parameter, but that works only in our special case, and I think it should be fixed at the source.

Can someone reproduce the problem?
Post #42480
Posted 4/4/2008 11:18:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/7/2008 8:51:15 AM
Posts: 2, Visits: 5
I have a similar issue with file uploads, for example:

upload file:  c:\FtpUsers\ftp\users\johndoe\upload\test.txt

Our customers have programs in place that login and instead of changing directories to the upload directory they simply perform a STOR command from the login directory and add the subfolder name onto the uploaded filename.  ie  STOR upload/test.txt.  This method has always worked in the past, we just upgraded to version 6 of the server and now the %File argument is incorrect. 

The file upload works and the file gets saved into the correct directory but the subfolder name is duplicated in the %File argument: C:\FtpUsers\ftp\users\johndoe\upload\upload\text.txt. 

Dan

Post #42527
Posted 4/28/2008 11:50:06 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/28/2008 11:49:11 AM
Posts: 2, Visits: 3
*bump*

I'd really like to see this adressed
Post #43291
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Hush, FTPplanet.com, Hugh Garber, WUP-PM, mmulryan@ipswitch.com, mswimm

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 4:23pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 9 queries. Compression Enabled.