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 163744 - AssertionError: ../../../../Volumes/CaseSensitive/web-main/o.apache.tools.ant.module
Summary: AssertionError: ../../../../Volumes/CaseSensitive/web-main/o.apache.tools.ant...
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmichalsky
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 12:34 UTC by Petr Jiricka
Modified: 2009-04-29 08:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 150144


Attachments
stacktrace (8.17 KB, text/plain)
2009-04-27 12:34 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2009-04-27 12:34:48 UTC
Build: NetBeans IDE Dev (Build web-main-478-on-090427)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments:
pjiricka: Went to a NetBeans module project's properties dialog, Libraries tab. My sources are on another drive linked to the main one, so I access them through a symbolic link.



Stacktrace: 
java.lang.AssertionError: ../../../../Volumes/CaseSensitive/web-main/o.apache.tools.ant.module
        at org.netbeans.modules.apisupport.project.universe.ModuleList.findClusterLocation(ModuleList.java:1210)
        at org.netbeans.modules.apisupport.project.universe.ModuleList.parseProperties(ModuleList.java:1090)
        at org.netbeans.modules.apisupport.project.universe.ModuleList.scanPossibleProject(ModuleList.java:520)
        at org.netbeans.modules.apisupport.project.universe.NetBeansOrgCachedEntry.ensureOfficialEntry(NetBeansOrgCachedEntry.java:132)
        at org.netbeans.modules.apisupport.project.universe.NetBeansOrgCachedEntry.isDeprecated(NetBeansOrgCachedEntry.java:180)
        at org.netbeans.modules.apisupport.project.ui.customizer.CustomizerComponentFactory$DependencyListCellRenderer.getListCellRendererComponent(CustomizerComponentFactory.java:261)
Comment 1 Petr Jiricka 2009-04-27 12:34:55 UTC
Created attachment 80968 [details]
stacktrace
Comment 2 rmichalsky 2009-04-27 14:08:49 UTC
assertion looks just redundant in such case. core-main #5fdc8fb4639f, please verify. 

In order to test properly I'd need more info on your setup - so you have whole NB source tree checked out on one drive
and another "working" root with only couple of projects, while the rest of the projects are symlinked to the whole tree?
Or just sources are linked from project dirs residing elsewhere?
Comment 3 Petr Jiricka 2009-04-27 17:17:07 UTC
Thanks for the prompt fix, I will verify once this is in the production build. My setup is: I have the whole NetBeans
source tree cloned under /Volumes/CaseSensitive/web-main. Then I have a symlink /Users/petrjiricka/sources linking to
/Volumes/CaseSensitive. I opened my project by browsing to /Users/petrjiricka/sources/web-main.
Comment 4 Quality Engineering 2009-04-28 18:55:43 UTC
Integrated into 'main-golden', will be available in build *200904281401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5fdc8fb4639f
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #163744: incorrect assertion (nbroot-relative path to project can contain '..' when resolved from symlink)
Comment 5 Petr Jiricka 2009-04-29 08:50:39 UTC
Thanks, seems to behave fine now.