History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-19217
Type: Exception Exception
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Maxim Shafirov
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

SIOBE from NewVirtualFileSystem.findFileByPath() on typing UNC path (\\ ...) in a dialog field

Created: 19 Jul 07 20:51   Updated: 22 Oct 08 21:53
Component/s: User Interface
Fix Version/s: Diana Final

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
This issue duplicates:
IDEADEV-18293 [#5764] SIOOBE: NewVirtualFileSystem.... Major Resolved
 
Relates
This issue relates to:
IDEADEV-17936 [#5530] SIOOBE: JarFileSystemImpl.get... Major Resolved
 

Build: 7,078


 Description  « Hide
Some IDEA dialogs accept UNC paths. E.g. Settings / Version control / Configure VCS / SourceSafe / Path to VSS ...
When I type the start of UNC there: \\\ (two back slashes, JIRA shows them wrong) the exception is thrown.

 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 19 Jul 07 20:52
String index out of range: -2
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
	at java.lang.String.substring(String.java:1768)
	at java.lang.String.substring(String.java:1735)
	at com.intellij.openapi.vfs.newvfs.NewVirtualFileSystem.findFileByPath(NewVirtualFileSystem.java:34)
	at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.findFileByPath(LocalFileSystemImpl.java:249)
	at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.findFileByIoFile(LocalFileSystemImpl.java:89)
	at com.intellij.openapi.fileChooser.ex.LocalFsFinder.find(LocalFsFinder.java:3)
	at com.intellij.openapi.fileChooser.ex.FileTextFieldImpl.a(FileTextFieldImpl.java:56)
	at com.intellij.openapi.fileChooser.ex.FileTextFieldImpl.processCompletion(FileTextFieldImpl.java:88)
	at com.intellij.openapi.fileChooser.ex.FileTextFieldImpl$4$1.run(FileTextFieldImpl.java:0)
	at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:5)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
	at java.lang.Thread.run(Thread.java:595)
	at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:0)

Alexander Chernikov - 14 Feb 08 22:10
7698: same on typing two direct slashes: //.

Alexander Chernikov - 22 Oct 08 21:53
8940: fix confirmed.