Error when drag and dropping a file in some cases (e.g. with a comma in the filename) #1282

Description
@jazz-X commented on Sep 30, 2018, 5:48 PM UTC:
Edit by rsese to add generic repro steps
In safe mode:
- Create a new file and save it with a comma in the filename e.g.
test,file.txt
- Create a directory called
mydir
- Drag and drop the file from step (1) to the directory in step (2)
Using a comma in a filename isn't illegal as far I found but seems like not the safest choice? Assuming we're ok allowing commas in filenames, expected behavior is that the file is dragged successfully to a directory. Actual behavior is the file isn't moved and you get the error below.
Also noticed that cutting/copying and pasting does nothing but no error is thrown.
Reproduced on macOS 10.12.6 with 1.33.0-nightly10 but also noticed that the error with these repro steps starts in 1.31.0, 1.30.0 worked ok.
[Enter steps to reproduce:]
- ...Created new folder
- ...Selected files to move
- Moved files to new folder which caused error ENONET
Atom: 1.32.0-beta1 x64
Electron: 2.0.9
OS: Mac OS X 10.13.6
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, lstat '/ Enterprise Edition- The Jav….webloc'
At fs.js:1661
Error: ENOENT: no such file or directory, lstat '/ Enterprise Edition- The Jav….webloc'
at Proxy.realpathSync (fs.js:1661:15)
at Proxy.fs.realpathSync (ELECTRON_ASAR.js:336:29)
at TreeView.t.exports.TreeView.moveEntry (/private/var/folders/7t/cw1b31zd3752f756cj9zxnmh0000gp/T/AppTranslocation/C41D32F4-F4D3-441A-A6ED-CF9BF6788BC6/d/Atom Beta 1.32.app/Contents/Resources/app/static/<embedded>:14:916037)
at TreeView.t.exports.TreeView.onDrop (/private/var/folders/7t/cw1b31zd3752f756cj9zxnmh0000gp/T/AppTranslocation/C41D32F4-F4D3-441A-A6ED-CF9BF6788BC6/d/Atom Beta 1.32.app/Contents/Resources/app/static/<embedded>:14:921791)
at HTMLDivElement.<anonymous> (/private/var/folders/7t/cw1b31zd3752f756cj9zxnmh0000gp/T/AppTranslocation/C41D32F4-F4D3-441A-A6ED-CF9BF6788BC6/d/Atom Beta 1.32.app/Contents/Resources/app/static/<embedded>:14:895702)
Commands
-1:33.8.0 application:add-project-folder (input.hidden-input)
-0:44.5.0 tree-view:add-folder (span.name.icon.icon-file-directory)
-0:39.7.0 core:confirm (input.hidden-input)
Non-Core Packages
asciidoc-assistant 0.2.2
asciidoc-image-helper 1.0.1
asciidoc-preview 2.12.1
autocomplete-asciidoc 0.1.2
build-make 0.13.0
language-asciidoc 1.11.0
This issue was moved by rsese from atom/atom#18163.
Edit by @rsese to add additional info section
Additional Information
From atom/atom#18369 (comment):
Seems like I deleted the folder in the terminal, but atom still had it on the list.
Steps to reproduce from atom/atom#18410:
- Open a .zip file with WinRAR
- Attempt to drag a file from within WinRAR to Atom's project folder view
- Error thrown, file not copied, Atom requested issue be generated