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 195275 - java.io.IOException from web.common.api.WebUtils
Summary: java.io.IOException from web.common.api.WebUtils
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Editing infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 196365 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-10 09:04 UTC by azizur
Modified: 2011-03-07 08:30 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 176581


Attachments
stacktrace (4.44 KB, text/plain)
2011-02-10 09:04 UTC, azizur
Details
stacktrace (4.44 KB, text/plain)
2011-02-11 09:39 UTC, jestep
Details

Note You need to log in before you can comment on or make changes to this bug.
Description azizur 2011-02-10 09:04:32 UTC
This bug was originally marked as duplicate of bug 194418, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 2011-02-09_21-04-00 )
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

User Comments:
azizur: nothing




Stacktrace: 
java.io.IOException: Invalid argument
   at java.io.WinNTFileSystem.canonicalize0(WinNTFileSystem.java:0)
   at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:0)
   at java.io.File.getCanonicalPath(File.java:0)
   at java.io.File.getCanonicalFile(File.java:0)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.getFileObject(FolderObj.java:115)
   at org.netbeans.modules.web.common.api.WebUtils.resolveToReference(WebUtils.java:115)
Comment 1 azizur 2011-02-10 09:04:36 UTC
Created attachment 105832 [details]
stacktrace
Comment 2 jestep 2011-02-11 09:39:26 UTC
Created attachment 105855 [details]
stacktrace
Comment 3 Exceptions Reporter 2011-02-15 14:22:25 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=176581
Comment 4 Exceptions Reporter 2011-02-22 18:49:59 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=176581
Comment 5 Marek Fukala 2011-02-25 16:08:48 UTC
Windows issue. An effect of the jtulach's FS incompatible behavior change - ".." treating.
Comment 6 Marek Fukala 2011-02-25 16:22:14 UTC
It looks like the problem is caused by passing the query part of the URL to the File which then cannot be canonicalized on windows. Before jtulach's changes to the FolderObj there was not caninicalization of the given file so the problem was hidden.
Comment 7 Marek Fukala 2011-02-28 07:27:30 UTC
The file links are indexed with the possible query parts of the link, which causes the file rename refactoring not to work.
Comment 8 Marek Fukala 2011-02-28 08:29:13 UTC
fixed in web-main#669c87ef0ebf

+ find declarations (hyperlinking) works for file links with the query part
+ rename refactoring proprly refactors such links
Comment 9 Quality Engineering 2011-03-01 17:53:03 UTC
Integrated into 'main-golden', will be available in build *201103011142* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/669c87ef0ebf
User: Marek Fukala <mfukala@netbeans.org>
Log: #195275 - java.io.IOException from web.common.api.WebUtils
Comment 10 Marek Fukala 2011-03-07 08:17:00 UTC
*** Bug 196365 has been marked as a duplicate of this bug. ***