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.
2011-09-29_20-36-08 works nicely 2011-10-07_15-41-05 failed Can't create project in Samba Remote mode (WindowsXP->Solaris) org.openide.filesystems.FileStateInvalidException at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObjWindows.createFolder(RootObjWindows.java:194) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObj.createFolder(RootObj.java:258) at org.openide.filesystems.FileUtil.createFolder(FileUtil.java:864) at org.netbeans.modules.cnd.makeproject.ui.wizards.MakeSampleProjectGenerator.createProjectFromTemplate(MakeSampleProjectGenerator.java:347) at org.netbeans.modules.cnd.makeproject.ui.wizards.MakeSampleProjectGenerator.createProjectFromTemplate(MakeSampleProjectGenerator.java:139) at org.netbeans.modules.cnd.makeproject.api.ProjectGenerator.createProjectFromTemplate(ProjectGenerator.java:388) at org.netbeans.modules.cnd.makeproject.ui.wizards.MakeSampleProjectIterator.instantiate(MakeSampleProjectIterator.java:148) at org.netbeans.modules.cnd.makeproject.ui.wizards.MakeSampleProjectIterator.instantiate(MakeSampleProjectIterator.java:133) at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1019) at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:591) at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:412) at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:256) at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:168) at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1548) at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1505) at org.openide.WizardDescriptor.access$1700(WizardDescriptor.java:137) [catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2099) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Problem is: - org.openide.filesystems.FileUtil does not initialized FileObjectFactory in FileObjectFactory.AllFactories storage before trying to find root in FileUtil.createFolder(FileObject folder, String name) IMHO it should do the RootObjWindows in the method createFolder(final String name). To reproduce problem IDE should try create file on local file system on mounted drive before any other operations with file system on this drive. For example trying of opening file on this drive results in initializing FileObjectFactory. Reassign to evaluate. Please evaluate bug ASAP.
What makes you believe this is a regression?
(In reply to comment #2) > What makes you believe this is a regression? It seems C/C++ anyhow invoked FileObjectFactory.getInstance(final File file) before that results in initializing driver. Now this method is eliminated due last changes in C/C++. So from tester point of view it is a regression.
Sure, but regression in CND!
(In reply to comment #4) > Sure, but regression in CND! Sure. I think right approach should be: create separate IZ against platform that FileUtil.createFolder has different behavior (it's not a regression) and make this regression be blocked by platform's issue
Alexander, can you put workaround into our code (call URLMapper which initialize needed factories)
(In reply to comment #6) > Alexander, can you put workaround into our code (call URLMapper which > initialize needed factories) In 15 places before calling FileUtil.createFolder()? And 20 places before calling FileUtil.createData()?
As I see based on commits from issue#200656 we need to put it only in two places in methods createProjectFromTemplate
The same situation occurs when user tries to create local project on Windows not on the system disk (e.g. "D:"). The regression appeared in patch 1. QA believe it should be fixed in patch 2.
http://forums.netbeans.org/topic42730.html - user with same problem
Alexander, please, file P2 against platform and mark as blocker of this issue. Thanks
Please file corresponding CR (P3)
Corresponding CR is 7099616 P3 ide/remote-devel [DD] Can not create a remote project from Windows using system level file sharing (samba).
Based on discussion with QA and the fact that some users have faced the issue, we'd like to have it in patch2.
Sasha, please, try to workaround the issue on our side. Thanks
Created attachment 112000 [details] proposed work around
VV: please review patch
Please, split it on several patches each addressing particular problem
Fixed, change sets: http://hg.netbeans.org/cnd-main/rev/22967fdc6241 - work around of Bug #203636 http://hg.netbeans.org/cnd-main/rev/30c1ac1af406 - have to fix it to check D&D http://hg.netbeans.org/cnd-main/rev/48fa7a9f1ac8 - have to fix it to check terminal actions http://hg.netbeans.org/cnd-main/rev/4f03e3ba6706 - have to fix it to check run actions
I reviewed and agree with fixes
Change sets were transplanted on e**f: 22967fdc6241 transplanted to 6c695bde1d46 30c1ac1af406 transplanted to 073a35c7eb8d 4f03e3ba6706 transplanted to a394c232f903 Change set 48fa7a9f1ac8 should be applied in Bug #202853
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/22967fdc6241 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing Bug #203507 Can't create project in Samba Remote mode (WindowsXP->Solaris) - work around of Bug #203636
verified in OSS IDE dev build #3410 (20111016)
integrated into releases/release701_fixes http://hg.netbeans.org/releases/rev/6c695bde1d46 http://hg.netbeans.org/releases/rev/073a35c7eb8d http://hg.netbeans.org/releases/rev/a394c232f903
Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/6c695bde1d46 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing Bug #203507 Can't create project in Samba Remote mode (WindowsXP->Solaris) - work around of Bug #203636 (transplanted from 22967fdc62415c91cf63823194a3f11bd679986f)
verified in Oracle Solaris Studio 12.3 (2011/10/18) build 32.0