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 41547 - normalize all created
Summary: normalize all created
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
Depends on:
Blocks: 41448
  Show dependency tree
Reported: 2004-03-31 15:06 UTC by David Konecny
Modified: 2004-08-13 12:12 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2004-03-31 15:06:46 UTC
Please check your code and whenever you are
creating instance of from a String
entered by user or from some other external source
you have to normalize it, i.e. call
FileUtil.normalizeFile() method. Otherwise lot of
nasty problems will appear. 

For example I know that creating new VCS profile I
can enter whatever path to CVSROOT field and it is
used as is. The created from this
path must be normalized! Otherwise conversions to
URL/FileObject and vice versa can randomely fail,
finding File.getPath on MasterFS might fail
because case does not match (Windows are case
insensitive,  but our Filesystem API *is* case
sensitive), user can (theoreticaly) enter old
Windows 8.3 filenames (C:\PROGRA~1\....) which
again in some cases might work, but in most not.
It is hard to track these problems becasuse at
first glance everything seems to be OK. The
normalizeFile() method will take care about
normalizing filename.

Thanx. I wanted to do that myself, but was not
able to find the right place for the conversion in
your source code.
Comment 1 Martin Entlicher 2004-03-31 15:16:47 UTC
O.K., I'll look at it...
Comment 2 Martin Entlicher 2004-04-16 12:55:41 UTC
Fixed in vcscore and vcsgeneric modules:

new revision: 1.256; previous revision: 1.255

new revision: 1.4; previous revision: 1.3

new revision: 1.7; previous revision: 1.6

new revision: 1.141; previous revision: 1.140