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.
Summary: | Poor recovery after requesting impossible localizing bundle path | ||
---|---|---|---|
Product: | apisupport | Reporter: | Vibhuti |
Component: | Project | Assignee: | Martin Kozeny <mkozeny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
error1
error2 project created |
Description
Vibhuti
2011-03-15 02:52:01 UTC
Created attachment 106999 [details]
error1
Created attachment 107000 [details]
error2
Created attachment 107001 [details]
project created
After clicking Finish the first time, the wizard starts to create project metadata, but of course it breaks on the impossible bundle path (something Windows cannot create), and there is no backup logic to delete what had been created in case of error. The proper solution is to disable Finish and show an error when such a bundle path is entered to begin with, but the exact set of file patterns which could form a legitimate folder path is platform-dependent and difficult to predict. Probably the bundle (and layer) paths should be restricted to those which would form valid Java packages; while in principle you could create a src/number/23/Bundle.properties and refer to it from the manifest, this would just be asking for trouble since it would be impossible to create Java sources in the same folder. P4 since this is an artificial attempt to break the wizard. Integrated into 'main-golden', will be available in build *201212210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f2981ab8b97b User: Martin Kozeny <mkozeny@netbeans.org> Log: #196704: At the end of wizard for creating module, button Finish is disabled for invalid bundle path |