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: | Can't create project in Samba Remote mode (WindowsXP->Solaris) | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | Project | Assignee: | Alexander Simon <alexvsimon> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | issues |
Priority: | P2 | Keywords: | REGRESSION |
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 200656, 203636 | ||
Bug Blocks: | |||
Attachments: | proposed work around |
Description
soldatov
2011-10-11 13:07:20 UTC
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 |