MyCloud mishandles special Windows filenames

WD MyCloud silently remaps special Windows filenames (com1, etc.),
even if the filename has an extension (com1.txt, etc.).

Microsoft suggests avoiding the following reserved names
(see https://msdn.microsoft.com/en-us/library/aa365247.aspx)::slight_smile:
aux com1 com2 com3 com4 com5 com6 com7 com8 com9 con lpt1 lpt2 lpt3 lpt4 lpt5 lpt6 lpt7 lpt8 lpt9 nul prn
plus those names immediately followed by an extension.
On MyCloud, filenames com[5-9] and lpt[4-9] work as expected,
aux com[1-4] lpt[1-3] nul prn are mangled,
and con does not work at all.

Host: MacAir running OSX 10.6.8.
WD MyCloud 2TB, firmware 4.01.02-417.

Create com1.txt and con.txt on host filesystem:
steve@macair ~: cd tmp
steve@macair ~/tmp: date >com1.txt
steve@macair ~/tmp: cat com1.txt
Sat Feb 7 23:49:36 PST 2015
steve@macair ~/tmp: date >con.txt
steve@macair ~/tmp: cat con.txt
Sat Feb 7 23:49:43 PST 2015

The same commands fail on MyCloud share wd2000:

steve@macair ~/tmp: cd /Volumes/wd2000/test2
steve@macair /Volumes/wd2000/test2: ls
steve@macair /Volumes/wd2000/test2: date >com1.txt
steve@macair /Volumes/wd2000/test2: ls
CR23RR~9.TXT
steve@macair /Volumes/wd2000/test2: cat com1.txt
cat: com1.txt: No such file or directory
steve@macair /Volumes/wd2000/test2: date >con.txt
-bash: con.txt: File name too long

The created file for com1.txt is CR23RR~9.TXT,
and con.txt file creation simply fails.
Frankly, this is beyond belief.

Welcome to the Community.

Maybe you should try contacting WD’s Technical Support about this. You can do so either by phone or email.

To Contact WD for Technical Support
http://support.wdc.com/contact/index.asp?lang=en

Support by Country
http://support.wdc.com/country/index.asp

OK, I did submit a report to support as suggested.

The US support website required a model number to do so,

and the model number on my device WDRCTL0020HWT-NESN

does not exist in the drop-down menu of devices, not an encouraging sign.

I chose the closest similar model number, namely WDBBAZ0000NBK-NESN.

steve_sf wrote:

 

OK, I did submit a report to support as suggested.

The US support website required a model number to do so,

and the model number on my device WDRCTL0020HWT-NESN

does not exist in the drop-down menu of devices, not an encouraging sign.

I chose the closest similar model number, namely WDBBAZ0000NBK-NESN.

 

If you have a WD My Cloud, then the model number should be WD_B_CTL0020HWT-NESN

These names aren’t mishandled.   They’re forbidden in Microsoft OS’s.

Samba, which is an Open Source version of Microsoft CIFS/SMB protocol enforces the same rules by mangling the names.

If you’re using a MAC, don’t use Samba connections – use AFP connections and you shouldn’t see that.