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 239825 - Maven web projects does not open folders under Web Pages node
Summary: Maven web projects does not open folders under Web Pages node
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jaroslav Havlin
: 239835 (view as bug list)
Depends on:
Reported: 2013-12-27 11:16 UTC by Michel Graciano
Modified: 2014-01-06 14:48 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Sample image (6.31 KB, image/png)
2013-12-27 11:28 UTC, Michel Graciano
Trial MAVEN project (1.36 KB, application/octet-stream)
2013-12-30 16:01 UTC, NukemBy
False-empty folder (21.78 KB, image/png)
2013-12-30 16:03 UTC, NukemBy

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2013-12-27 11:16:39 UTC
[ BUILD # : e866b2d563a1 ]
[ JDK VERSION : 1.7.0_40 ]

   * Tried with project

   Folders inside 'Web Page' does not have subnodes (The IDE treats it as

   Folders inside 'Web Page' should have subnodes, with the content as seen in
Files view.
Comment 1 Michel Graciano 2013-12-27 11:28:40 UTC
Created attachment 143479 [details]
Sample image

As you can see in this image, the nodes for some folders are not expandable as expected.
Comment 2 Milos Kleint 2013-12-27 12:03:58 UTC
reassigning to j2ee/maven for evaluation
Comment 3 NukemBy 2013-12-30 16:01:25 UTC
I've got the same problem (was checking current state of the latest dev build of NetBeans).

Attaching minimal MAVEN project to reproduce the problem and screenshot for it.
Comment 4 NukemBy 2013-12-30 16:01:55 UTC
Created attachment 143520 [details]
Trial MAVEN project
Comment 5 NukemBy 2013-12-30 16:03:02 UTC
Created attachment 143521 [details]
False-empty folder
Comment 6 Martin Janicek 2014-01-02 10:45:03 UTC
Thanks guys, I'm able to reproduce the problem using project from comment 4. I'm on it..
Comment 7 Martin Janicek 2014-01-02 21:47:26 UTC
*** Bug 239835 has been marked as a duplicate of this bug. ***
Comment 8 Martin Janicek 2014-01-03 11:04:20 UTC
Seems to be caused by small change in Datasystem API: core-main #ed1b861c4c90 (reverting the change is fixing the issue)

Although not sure if the change-set should be reverted or if the Nodes API needs to be improved with respect to it. I don't really understand what's going on in all these kinds of Nodes but if you check class WebPagesNode from maven.j2ee (line 76), you will be able to see that without the change-set calling orig.getChildren() returns correct folders/files (and instance of orig is usually DataFolder.ClonedFilter), but after applying it "orig instances" are DelayedNode in some cases and they are returning Children.Empty which results in the missing folders/files in the Project View.

Reassigning to Datasystem API for further evaluation, CCing Honza as owner of Nodes API.
Comment 9 Jaroslav Havlin 2014-01-06 14:25:38 UTC
Reverting core-main #ed1b861c4c90.

WebPagesNode doesn't expect that children of its original node can be changed, so it cannot be used with DelayedNode.

There can be more similar cases in other modules, so the safest solution is to revert the change.

I'm very sorry for the inconvenience.