invalid filename accepted

Bug #1175933 reported by Vineet Deodhar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

Platform:
Ubuntu 12.04 LTS (dual-booting with WinXP)
What I did:
Following python script is run (in F:\ ntfs partition).
outfile = open('G:\\ohlc_file.csv', 'w')
(This python script was meant to be run from WinXP actually.)

What was expected:
System message prompting that the file name is invalid.

What happened:
A file with name 'G:\\ohlc_file.csv' is created on ntfs partition F:\.
From other OS, this file can't be deleted / renamed.

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

This is not a bug. EXT4 file systems can accept more characters than Windows' NTFS/FAT32. You just need to be careful to not put files with "invalid" filenames (from Windows' POV) in its partition.

Changed in ubuntu:
status: New → Invalid
Revision history for this message
Samuel Walker (samuel-s) wrote :

The bug report clearly states Ubuntu created the file on an NTFS partition, thus ext4 is irrelevent.
Ubuntu created a file with a name that is invalid for the file system ubuntu created it on.
IMO this is not invalid.

Changed in ubuntu:
status: Invalid → New
Revision history for this message
BlueRaja (blueraja-admin-5) wrote :

Allowing an invalid NTFS filename on an NTFS partition is definitely a bug..

Revision history for this message
Phillip Susi (psusi) wrote :

This is not a bug. The name is quite valid, it just trips up the normal win32 subsystem parsing. You can create or delete such a file name within windows using the posix subsystem. You run into similar problems with files named after the old reserved DOS devices, such as NUL and AUX. Just one of those silly little choices Microsoft made over the years.

If you wish, you can mount the filesystem with the windows_names mount option to prevent yourself from doing such things.

Changed in ubuntu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.