This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262773 - java.nio.file.InvalidPathException: Illegal char <"> at index 18: C:\Users\markiewb\"C:\Users\markiewb\Desktop\210419.patch"
Summary: java.nio.file.InvalidPathException: Illegal char <"> at index 18: C:\Users\ma...
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 8.1
Hardware: All All
: P4 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-11 22:22 UTC by markiewb
Modified: 2017-05-09 05:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 225176


Attachments
stacktrace (9.55 KB, text/plain)
2016-07-11 22:22 UTC, markiewb
Details
stacktrace (6.87 KB, text/plain)
2017-05-09 04:49 UTC, Exceptions Reporter
Details
stacktrace (6.72 KB, text/plain)
2017-05-09 05:01 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2016-07-11 22:22:08 UTC
This bug was originally marked as duplicate of bug 229135, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.71-b15, Java(TM) SE Runtime Environment, 1.8.0_71-b15
OS: Windows 7

User Comments:
markiewb: Applying a patch with a filename which is enclosed by "




Stacktrace: 
java.nio.file.InvalidPathException: Illegal char <"> at index 18: C:\Users\markiewb\"C:\Users\markiewb\Desktop\210419.patch"
   at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
   at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
   at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
   at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
   at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
   at java.io.File.toPath(File.java:2234)
Comment 1 markiewb 2016-07-11 22:22:11 UTC
Created attachment 160352 [details]
stacktrace
Comment 2 Ondrej Vrabec 2016-07-12 06:19:03 UTC
Is it a valid patch file if it has the path enclosed in ""? I can add a workaround for that, I am just curious if it makes any sense (if there is more than one such a patch file in the world for that)
Comment 3 markiewb 2016-07-12 08:35:45 UTC
(In reply to Ondrej Vrabec from comment #2)
> Is it a valid patch file if it has the path enclosed in ""? I can add a
> workaround for that, I am just curious if it makes any sense (if there is
> more than one such a patch file in the world for that)

I am using Windows7. When I copy the path via SHIFT-right click on a file in the explorer and choose "Copy Path", such a path with " is copied to the clipboard. I trusted the content, which the explorer created, so I pasted it into the file dialog.

Perhaps the global file dialog should be fixed?!
Comment 4 Exceptions Reporter 2017-05-05 18:49:17 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=225176
Comment 5 Exceptions Reporter 2017-05-05 18:52:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=225176
Comment 6 Exceptions Reporter 2017-05-09 04:49:16 UTC
Created attachment 164281 [details]
stacktrace

???????
Comment 7 Exceptions Reporter 2017-05-09 05:01:16 UTC
Created attachment 164282 [details]
stacktrace

?????????