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 238679 - Directory name is shown as lowercase on project tree node in Mac
Summary: Directory name is shown as lowercase on project tree node in Mac
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Jaroslav Havlin
: 238633 (view as bug list)
Depends on:
Reported: 2013-11-22 04:31 UTC by junichi11
Modified: 2014-02-19 02:47 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Proposed Patch (3.79 KB, patch)
2014-02-13 16:29 UTC, Jaroslav Havlin
Details | Diff
Proposed Patch v2 (13.17 KB, patch)
2014-02-14 10:02 UTC, Jaroslav Havlin
Details | Diff
Proposed Patch v2 (4.22 KB, patch)
2014-02-14 10:05 UTC, Jaroslav Havlin
Details | Diff
Proposed Patch v3 (2.62 KB, patch)
2014-02-14 11:08 UTC, Jaroslav Havlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description junichi11 2013-11-22 04:31:51 UTC
Unfortunately, I don't have a Mac environment.
But I got this issue in cakephp plugin issue[1].

It seems that some directory names are shown as lowercase on project tree node.(e.g. Config -> config)
Actually, I got lowercase names with FileObject.getName()(embedded some logs, got directory name of "app" directory children).

- Mac
- NetBeans 7.4

1. download NetBeans7.4
2. download CakePHP [2] and unzip it
3. new project > PHP > PHP Application with Existing Source
4. select cakephp folder of step2 as source folder

app/Config or app/Console is shown as app/config or app/console.

This issue is also occurred when we don't install cakephp plugin.


Comment 1 Tomas Mysik 2013-12-04 10:01:30 UTC
*** Bug 238633 has been marked as a duplicate of this bug. ***
Comment 2 Tomas Mysik 2013-12-04 10:02:26 UTC
Please note that issue #238633 is reproducible on Windows.

Comment 3 jmail 2014-01-20 16:13:50 UTC
unfortunately I have downloaded Beans 8.0 beta without CakePHP. Problem still exists. app/Config and app/Console are changed to lowercase
Comment 4 snelgman 2014-02-12 19:35:37 UTC
Based on tests on my Windows machine, the problem appears to be in the "Nette2 Framework" and "Symfony2 Framework" plugins.

- Disabling Nette2 plugin fixes capitalization of app/Config

- Disabling Symfony2 plugin fixes app/Console

Note that the unwanted lowercasing happens regardless of whether the frameworks are "Enabled" for a project. It affects all PHP projects.
Comment 5 jmail 2014-02-12 23:22:52 UTC 

Tested on Beans 7.4, 8.0 Beta - works like a charm afteactivation of Nette2 and Symphony2

Thank you snelgman - for my luck I don't uset nette and symphony :)
Comment 6 junichi11 2014-02-13 13:04:55 UTC
We should not change this issue status because this problem is not resolved yet.
It's just workaround that other plugins are disabled.

I guess that other plugins search app/console and app/config directories with auto-detection.
AFAIR, if a project has uppercase directory, directory name is changed to lowercase when we get FileObeject with lowercase name in Windows.(Is this bug of FileObject? or correct behavior?) e.g. getFileObject("app/console") is not null when project has app/Console directory.
CakePHP 1.x has app/console but CakePHP 2.xx has app/Console. So, I'm checking uppercase directory name at first when I check directory at the moment.

Comment 7 Tomas Mysik 2014-02-13 13:15:46 UTC
Not sure about FS questions. Jardo, could you please answer?

Comment 8 Ondrej Vrabec 2014-02-13 13:26:44 UTC
likely a FS problem
Comment 9 Jaroslav Havlin 2014-02-13 16:29:04 UTC
Created attachment 145160 [details]
Proposed Patch

The problem is caused by Filesystems, but fixing this there is quite risky.

1. The Nette2 module checks whether app/config exists.
2. It exists (with different case, but it isn't a problem on Mac or Win).
3. The FileName object is cached (with name app/config, instead of app/Config).
4. The Projects window uses the cached file name.

I'm sorry, I'm afraid that making changes to the code in Filesystems could cause some regressions, we are too close to code freeze for such modifications.

Please check the patch with workaround and apply it if you find it safe.
Thank you.
Comment 10 Tomas Mysik 2014-02-14 06:20:44 UTC
Ondro, have a look at the patch Jarda has attached. If you are OK with it, could you please apply it? Symfony2 part of the patch seems fine to me...

Comment 11 Ondrej Brejla 2014-02-14 09:50:03 UTC
Patch applied.

Fixed in web-main #93cff6f486cb
Comment 12 Jaroslav Havlin 2014-02-14 10:02:56 UTC
Created attachment 145185 [details]
Proposed Patch v2

Thank you, Ondra.

Unfortunately, I've just realized that the fix could cause problems when the Config (resp. Console) directory is a symbolic link. File.getCanonicalFile() resolves symbolic links on Linux, which is something we don't want to do.

I'm attaching updated patch.
I'm sorry for the inconvenience.
Comment 13 Jaroslav Havlin 2014-02-14 10:05:21 UTC
Created attachment 145186 [details]
Proposed Patch v2

I'm sorry, I've attached an incorrect diff file.
Comment 14 Ondrej Brejla 2014-02-14 10:12:44 UTC
Applied, thanks.

web-main #5ff4c648de17
Comment 15 Jaroslav Havlin 2014-02-14 11:08:48 UTC
Created attachment 145193 [details]
Proposed Patch v3

Improved patch, as suggested by Ondrej Vrabec.
Comment 16 Quality Engineering 2014-02-15 05:12:57 UTC
Integrated into 'main-silver', will be available in build *201402150001* on (upload may still be in progress)

User: Ondrej Brejla <>
Log: #238679 - Directory name is shown as lowercase on project tree node in Mac
Comment 17 Jaroslav Havlin 2014-02-18 10:13:56 UTC
> Improved patch, as suggested by Ondrej Vrabec.
Comment 18 Quality Engineering 2014-02-19 02:47:18 UTC
Integrated into 'main-silver', will be available in build *201402190001* on (upload may still be in progress)

User: Jaroslav Havlin <>
Log: #238679: Directory name is shown as lowercase on project tree node - simplified