Adding .htaccess files to FtpVC

General questions about using FtpVC, ideas for new features, bug reports, and usage tips.
Post Reply
amin
Junior Member
Posts: 20
Joined: Fri Dec 05, 2008 6:00 pm

Adding .htaccess files to FtpVC

Post by amin »

I cannot add files starting with a dot (.) to FtpVC. I develop on a Windows box but deploy to a Linux/Apache machine. I need to be able to keep .htaccess and .htpasswd files under source management. Is there a trick I can use to add these files to FtpVC?

Thanks
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Adding .htaccess files to FtpVC

Post by psguru »

I've tested this, and I had no problem adding files named ".htaccess" to FtpVC. Could you describe the error message you receive or send a copy of your log to us?
psguru
PrestoSoft
amin
Junior Member
Posts: 20
Joined: Fri Dec 05, 2008 6:00 pm

Re: Adding .htaccess files to FtpVC

Post by amin »

Here is the log as captured in output windows. Still does not work in FtpVC 2.6. File gets added but is corrupted during transfer and shows with Local Only status in FtpVC:

9/5/2010 8:04:15 PM Action: Executing ADD command
9/5/2010 8:04:22 PM Action: Getting current directory
9/5/2010 8:04:22 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:22 PM Action: Searching directory for .htaccess pattern
9/5/2010 8:04:23 PM Response: 200 Type set to A.
9/5/2010 8:04:23 PM Response: 227 Entering Passive Mode (208,123,215,23,12,5).
9/5/2010 8:04:23 PM Response: 125 Data connection already open; Transfer starting.
9/5/2010 8:04:23 PM Response: 550 .htaccess: The system cannot find the file specified.
9/5/2010 8:04:23 PM Action: Opening file .htaccess
9/5/2010 8:04:23 PM Response: 200 Type set to I.
9/5/2010 8:04:23 PM Response: 227 Entering Passive Mode (208,123,215,23,12,6).
9/5/2010 8:04:23 PM Response: 125 Data connection already open; Transfer starting.
9/5/2010 8:04:23 PM Response: 226 Transfer complete.
9/5/2010 8:04:23 PM Action: Getting current directory
9/5/2010 8:04:23 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:23 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:23 PM Action: Setting current directory to ftpvc
9/5/2010 8:04:23 PM Response: 250 CWD command successful.
9/5/2010 8:04:23 PM Response: 257 "/mohadjera/Clients/mm/startersite/config/ftpvc" is current directory.
9/5/2010 8:04:23 PM Action: Setting current directory to /mohadjera/Clients/mm/startersite/config
9/5/2010 8:04:23 PM Response: 250 CWD command successful.
9/5/2010 8:04:23 PM Action: Uploading file C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ftp3C77.tmp to ftpvc/tempstub.F2E8D941F143463FB62995B4FFF9B
9/5/2010 8:04:24 PM Response: 200 Type set to I.
9/5/2010 8:04:24 PM Response: 227 Entering Passive Mode (208,123,215,23,12,7).
9/5/2010 8:04:24 PM Response: 125 Data connection already open; Transfer starting.
9/5/2010 8:04:24 PM Response: 226 Transfer complete.
9/5/2010 8:04:24 PM Action: Deleting file ftpvc/.htaccess.stub
9/5/2010 8:04:24 PM Response: 250 DELE command successful.
9/5/2010 8:04:24 PM Action: Renaming file ftpvc/tempstub.F2E8D941F143463FB62995B4FFF9B to ftpvc/.htaccess.stub.866006655.1.Amin.U05-27-2009#206#124#149
9/5/2010 8:04:24 PM Response: 350 File exists, ready for destination name
9/5/2010 8:04:24 PM Response: 550 ftpvc/.htaccess.stub.866006655.1.Amin.U05-27-2009#206#124#149: Cannot create a file when that file already exists.
9/5/2010 8:04:24 PM Action: Renaming file ftpvc/tempstub.F2E8D941F143463FB62995B4FFF9B to ftpvc/.htaccess.stub
9/5/2010 8:04:24 PM Response: 350 File exists, ready for destination name
9/5/2010 8:04:24 PM Response: 250 RNTO command successful.
9/5/2010 8:04:24 PM Action: Opening file ftpvc/.htaccess.stub
9/5/2010 8:04:24 PM Response: 200 Type set to I.
9/5/2010 8:04:24 PM Response: 227 Entering Passive Mode (208,123,215,23,12,8).
9/5/2010 8:04:24 PM Response: 213 422
9/5/2010 8:04:24 PM Response: 125 Data connection already open; Transfer starting.
9/5/2010 8:04:24 PM Action: Downloading file ftpvc/.htaccess.stub to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ftp3C78.tmp
9/5/2010 8:04:24 PM Response: 226 Transfer complete.
9/5/2010 8:04:24 PM Action: Renaming file ftpvc/.htaccess.stub to ftpvc/.htaccess.stub.866006655.1.Amin.U05-27-2009#206#124#149
9/5/2010 8:04:24 PM Response: 350 File exists, ready for destination name
9/5/2010 8:04:24 PM Response: 550 ftpvc/.htaccess.stub.866006655.1.Amin.U05-27-2009#206#124#149: Cannot create a file when that file already exists.
9/5/2010 8:04:26 PM Action: Getting current directory
9/5/2010 8:04:26 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:26 PM Action: Getting current directory
9/5/2010 8:04:26 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:26 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:26 PM Action: Setting current directory to /mohadjera/Clients/mm/startersite
9/5/2010 8:04:26 PM Response: 250 CWD command successful.
9/5/2010 8:04:26 PM Action: Retrieving directory listing
9/5/2010 8:04:27 PM Response: 200 Type set to A.
9/5/2010 8:04:27 PM Response: 227 Entering Passive Mode (208,123,215,23,12,10).
9/5/2010 8:04:27 PM Response: 125 Data connection already open; Transfer starting.
9/5/2010 8:04:27 PM Response: 226 Transfer complete.
9/5/2010 8:04:27 PM Response: 257 "/mohadjera/Clients/mm/startersite" is current directory.
9/5/2010 8:04:27 PM Action: Setting current directory to /mohadjera/Clients/mm/startersite/config
9/5/2010 8:04:27 PM Response: 250 CWD command successful.
9/5/2010 8:04:27 PM Action: Getting current directory
9/5/2010 8:04:27 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:27 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:27 PM Action: Retrieving directory listing
9/5/2010 8:04:27 PM Response: 200 Type set to A.
9/5/2010 8:04:27 PM Response: 227 Entering Passive Mode (208,123,215,23,12,11).
9/5/2010 8:04:27 PM Response: 125 Data connection already open; Transfer starting.
9/5/2010 8:04:27 PM Response: 226 Transfer complete.
9/5/2010 8:04:27 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:27 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:27 PM Action: Getting current directory
9/5/2010 8:04:27 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:27 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:27 PM Action: Retrieving directory listing
9/5/2010 8:04:28 PM Response: 200 Type set to A.
9/5/2010 8:04:28 PM Response: 227 Entering Passive Mode (208,123,215,23,12,12).
9/5/2010 8:04:28 PM Response: 125 Data connection already open; Transfer starting.
9/5/2010 8:04:28 PM Response: 226 Transfer complete.
9/5/2010 8:04:28 PM Action: Getting current directory
9/5/2010 8:04:28 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:28 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:28 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
9/5/2010 8:04:28 PM Action: Setting current directory to /mohadjera/Clients/mm/startersite/config/ftpvc/
9/5/2010 8:04:28 PM Response: 250 CWD command successful.
9/5/2010 8:04:28 PM Action: Searching directory for *stub* pattern
9/5/2010 8:04:28 PM Response: 200 Type set to A.
9/5/2010 8:04:28 PM Response: 227 Entering Passive Mode (208,123,215,23,12,13).
9/5/2010 8:04:28 PM Response: 125 Data connection already open; Transfer starting.
9/5/2010 8:04:28 PM Response: 226 Transfer complete.
9/5/2010 8:04:28 PM Response: 257 "/mohadjera/Clients/mm/startersite/config/ftpvc" is current directory.
9/5/2010 8:04:28 PM Action: Setting current directory to /mohadjera/Clients/mm/startersite/config
9/5/2010 8:04:28 PM Response: 250 CWD command successful.
9/5/2010 8:04:28 PM Response: 257 "/mohadjera/Clients/mm/startersite/config" is current directory.
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Adding .htaccess files to FtpVC

Post by psguru »

The problem may be that somehow you ended up with more than one stub files for .htaccess. Open your ftpvc folder with some FTP client. such as FileZilla. Check if you have more than one ftpvc/.htaccess.stub.* file. If so, delete the older one(s). The older stub name format (as I mentioned in another reply) will end with .sub while the current format will look like ftpvc/.htaccess.stub.866006655.1.Amin.U05-27-2009#206#124#149.
psguru
PrestoSoft
amin
Junior Member
Posts: 20
Joined: Fri Dec 05, 2008 6:00 pm

Re: Adding .htaccess files to FtpVC

Post by amin »

It still does not work, I deleted all the stub files (ftpvc/.htaccess.stub.*) and tried adding the .htaccess file again. It created the following stub file but it still shows with Local-only status in FtpVC!

.htaccess.stub.866006655.1.Amin.U05-27-2009#206#124#149

I have attached the file so you can try it yourself.

Thanks
Amin
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Adding .htaccess files to FtpVC

Post by psguru »

There's no attachment in your post but I'm not sure how it would help. If it's the .htaccess file that you wanted to attach, we already tested a file with this name, and we had no troubles adding it to source control.
psguru
PrestoSoft
amin
Junior Member
Posts: 20
Joined: Fri Dec 05, 2008 6:00 pm

Re: Adding .htaccess files to FtpVC

Post by amin »

Did you test this with a Microsoft FTP Service? If not, I can give you access so you can reproduce the problem.

Cheers
Amin
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Adding .htaccess files to FtpVC

Post by psguru »

Yes, I just tested it with IIS, and had no troubles. If you give me access to your account, I should be able to debug this. Please do it via a private message.
psguru
PrestoSoft
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Adding .htaccess files to FtpVC

Post by psguru »

We were also able to reproduce the problem with .htaccess. However, it has nothing to do with FtpVC. I used FileZilla to add any .* (I use .p) file to your server, and it didn't work: the file does not appear is the directory listing. Your FTP server seems to have restrictions against uploading .* files.
psguru
PrestoSoft
Post Reply