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 81958 - [Project Groups]Display name of project is used as file name
Summary: [Project Groups]Display name of project is used as file name
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-04 18:40 UTC by Jan Lahoda
Modified: 2007-12-07 16:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2006-08-04 18:40:24 UTC
[recent sources]

It seems to me that if a project is added into a group, its display name is used
as a filename for a link/shadow in config/projectGroups/<group-name>/. This is
not correct, as the display name may contain characters that are not allowed in
filenames (like '/' on UNIX).

Please either use some artificial name, or use ProjectInformation.getName()
(please note that the project name is not required to be unique).
Comment 1 Jesse Glick 2006-08-04 22:26:15 UTC
I have a bunch of projects in groups in my userdir. Up until Jan 26 2006 they
use the display name. Starting Feb 06 they use the folder name, e.g. fs.shadow
for openide/fs. Not sure exactly which versions I was running when, but
apparently this was fixed at some point (cannot find anything wrong w/ original
version of code so not sure when). If you can reproduce with a current build
please reopen.
Comment 2 Jan Lahoda 2006-08-05 09:44:35 UTC
Ah, sorry, I found the problem: the situation with display names occurs only
when one adds the projects through the "Add Projects to <foo>" dialog. The code
that seems to be using project's display name as name of the shadow is in
PortfoliosTopComponent:624.
Comment 3 Jesse Glick 2006-08-05 17:02:22 UTC
Ah, thanks. I had searched for that but for some reason did not find it.

Checking in src/org/netbeans/modules/project/portfolios/PortfoliosTopComponent.java;
/shared/data/ccvs/repository/contrib/poorMansPortfolios/src/org/netbeans/modules/project/portfolios/PortfoliosTopComponent.java,v
 <--  PortfoliosTopComponent.java
new revision: 1.15; previous revision: 1.14
done
Checking in src/org/netbeans/modules/project/portfolios/AddToPortfolioAction.java;
/shared/data/ccvs/repository/contrib/poorMansPortfolios/src/org/netbeans/modules/project/portfolios/AddToPortfolioAction.java,v
 <--  AddToPortfolioAction.java
new revision: 1.6; previous revision: 1.5
done
Checking in manifest.mf;
/shared/data/ccvs/repository/contrib/poorMansPortfolios/manifest.mf,v  <-- 
manifest.mf
new revision: 1.11; previous revision: 1.10
done