Failure to upload edited file when name contains "<" or ">" on Windows NTFS

Locked
T3h Ub3r K1tten
Posts: 5
Joined: Mon Nov 05, 2007 10:34 pm

Failure to upload edited file when name contains "<" or ">" on Windows NTFS

Post by T3h Ub3r K1tten » Mon Nov 05, 2007 11:00 pm

Well, I think the title was descriptive enough to get whats going on.
When you edit a file with F7, it gets saved to the Windows temp folder as usual. BUT if its name has a "<" or ">" which is legal on most Linux file systems it gets converted to "_" on Windows NTFS because its one of the special characters that can't be in an NTFS filename: / \ < > : * ? ( ) |
So when you try and upload it, it doesn't upload right because SmartFTP looks for < or > in the filename but doesn't find it. (thus file editing fails but not visibly)

SmartFTP v2.5.1006
Big list of system stats: http://ub3rk1tten.com/sysstats2.txt

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Failure to upload edited file when name contains "<" or ">" on Windows NTFS

Post by mb » Tue Nov 06, 2007 2:22 am

Problem confirmed. Fix coming in next version.
Last edited by mb on Tue Nov 06, 2007 2:55 am, edited 1 time in total.

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Failure to upload edited file when name contains "<" or ">" on Windows NTFS

Post by mb » Tue Nov 06, 2007 7:04 pm

Can you try it again with the latest version (.5):
https://www.smartftp.com/download

Thank you
Regards,
Mat

T3h Ub3r K1tten
Posts: 5
Joined: Mon Nov 05, 2007 10:34 pm

Re: Failure to upload edited file when name contains "<" or ">" on Windows NTFS

Post by T3h Ub3r K1tten » Wed Nov 07, 2007 4:23 am

Updated, but now whenever I open that one type of filename it gets force loaded in Word?
I have the default editor in SmartFTP set to Notepad++, the Windows association for .html files to that too, and a blah.html file in the same directory works fine.

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Failure to upload edited file when name contains "<" or ">" on Windows NTFS

Post by mb » Wed Nov 07, 2007 2:16 pm

What's the name of your file?

T3h Ub3r K1tten
Posts: 5
Joined: Mon Nov 05, 2007 10:34 pm

Re: Failure to upload edited file when name contains "<" or ">" on Windows NTFS

Post by T3h Ub3r K1tten » Wed Nov 07, 2007 10:44 pm

[codebox]Tutorial to Edit Super Mario Levels --> CLICK HERE <--.html[/codebox]
Part of an FTP I put some stuff on for my friends.

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Failure to upload edited file when name contains "<" or ">" on Windows NTFS

Post by mb » Wed Nov 07, 2007 11:43 pm

Hello ..

Thanks. I'm unable to reproduce it. I have set .html to open with notepad.exe (my default editor is something else) and the file opens in notepad.exe when I click on Edit. When I click on Open it opens in Internet Explorer.

Regards,
Mat

T3h Ub3r K1tten
Posts: 5
Joined: Mon Nov 05, 2007 10:34 pm

Re: Failure to upload edited file when name contains "<" or ">" on Windows NTFS

Post by T3h Ub3r K1tten » Thu Nov 08, 2007 4:10 am

I think I found out why:
When I right click the file and choose edit from the context menu it opens in Word the same way as in SFTP, so it appears that SFTP is using that as well.

So, I deleted all Microsoft stuff at HKEY_CLASSES_ROOT\.htm\OpenWithList and it should work fine now, after a logout.
*goes to test*


Found out its actually HKEY_CLASSES_ROOT\htmlfile\shell\Edit that I should delete, seeing as I don't use edit in the menu for html files anyways.
(you can edit the command at HKEY_CLASSES_ROOT\htmlfile\shell\Edit\command)
*logs out to test*
Last edited by T3h Ub3r K1tten on Thu Nov 08, 2007 4:18 am, edited 1 time in total.

Locked