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 192265 - java.net.URISyntaxException: Illegal character in fragment at index 99: rfs://vk155633@ssi-test-sparc:22/export/home/vk155633/mysql-5.1.38/mysql-test/std_data/corrupt_t1#P#p1.MYI
Summary: java.net.URISyntaxException: Illegal character in fragment at index 99: rfs:/...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-22 11:33 UTC by Vladimir Kvashin
Modified: 2010-12-17 06:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 174011


Attachments
stacktrace (3.31 KB, text/plain)
2010-11-22 11:33 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2010-11-22 11:33:43 UTC
This issue was reported manually by vkvashin.
It already has 2 duplicates 


Build: NetBeans IDE Dev (Build 101119-6e92cb06ce3c)
VM: Java HotSpot(TM) Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: SunOS

User Comments:
vkvashin: When creating a full remote project from MySQL code.
There is such a file in MySQL:
mysql-test/std_data/corrupt_t1#P#p1.MY




Stacktrace: 
java.net.URISyntaxException: Illegal character in fragment at index 99: rfs://vk155633@ssi-test-sparc:22/export/home/vk155633/mysql-5.1.38/mysql-test/std_data/corrupt_t1#P#p1.MYI
   at java.net.URI$Parser.fail(URI.java:2809)
   at java.net.URI$Parser.checkChars(URI.java:2982)
   at java.net.URI$Parser.parse(URI.java:3028)
   at java.net.URI.<init>(URI.java:578)
   at java.net.URL.toURI(URL.java:918)
   at org.netbeans.modules.cnd.remote.fs.RemoteFileSystem.normalizeAbsolutePath(RemoteFileSystem.java:97)
Comment 1 Vladimir Kvashin 2010-11-22 11:33:46 UTC
Created attachment 103177 [details]
stacktrace
Comment 2 Maria Tishkova 2010-12-15 12:26:19 UTC
From the very first look URI doesn't support having "#" in the path will check how to fix it
Comment 3 Vladimir Voskresensky 2010-12-15 21:54:33 UTC
let's evaluate exceptions as P2 issues
Comment 4 Maria Tishkova 2010-12-16 17:07:31 UTC
fixed in http://hg.netbeans.org/cnd-main/rev/0015bc59a85c
Comment 5 Quality Engineering 2010-12-17 06:20:07 UTC
Integrated into 'main-golden', will be available in build *201012170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0015bc59a85c
User: Maria Tishkova <mromashova@netbeans.org>
Log: fixed #192265 as vkvashin stated the URI i sused to normilize the path
but URI is really very restrictive so let's use another way
will use the face that path is absolute and we have Unix like system
no special code for Windows
also as absolute path is passed to the method we will use this fact when normalizing
no special treatment of Mac OS