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 118630 - (6.0b1) Can't open a project on a network drive (smb, samba) mounted to a drive letter
Summary: (6.0b1) Can't open a project on a network drive (smb, samba) mounted to a dri...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords:
: 73011 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-11 22:56 UTC by lilianne_blaze
Modified: 2008-12-22 11:49 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 lilianne_blaze 2007-10-11 22:56:24 UTC
I have to identical directory structures,
D:\Work\xxx\yyy\project
B:\Work\xxx\yyy\project
Both are valid projects (at the moment of testing, B:\Work is an exact copy of D:\Work). D: is a partition on a physical
disk drive. B: is mapped samba / smb network share.
I can open a project on D:, but not on B:. Also, I can't create a freeform-with-ant-script project on B:.

I'm using Netbeans 6.0 beta 1 / Win XP SP2 / Sun's 1.6.0_02-b06 . Network share is on Mandriva 2007 using Samba 3.0.
Comment 1 Antonin Nebuzelsky 2007-10-16 15:00:40 UTC
A: and B: are expected to be floppy drives and we operate with this assumption for performance reasons I believe.

So, IMHO this is going to be WONTFIX.

Reassigning to Radek for evaluation.
Comment 2 rmatous 2007-10-16 17:07:57 UTC
Yes, Tonda is right - we don't operate on floppy disks.  The problem is how to recognize floppy disks - we rely on jdk
and we call FileSystemView.isFloppy() which has very poor  logic how to recognize floppy disk - just according letter
representing the drive - so A:, B: are floppy in any case. 
Comment 3 rmatous 2007-10-16 17:09:52 UTC
So, please use other letter for mapping your network share.
Comment 4 lilianne_blaze 2007-10-16 18:38:35 UTC
1st, when did you last saw a PC with two fdd drives? 2nd, this is limiting users' choice for no real benefit - anyone
storing a NB project on fdd probably does so for a reason. 3rd, why not use (File.getTotalSpace() <= 1.44mb) to check if
a floppy really is a floppy? I'm not sure if it was introduced in 1.5 or 1.6, but even if it was in 1.6, you can still
call it via reflection with no compile-time dependencies on 1.6 and fallback to previous behaviour at run-time on 1.5.
At the very least, remove the assumption that B: is a fdd. Really, it's a textbook case of software trying to be "too
intelligent".
Comment 5 rmatous 2007-10-23 17:47:55 UTC
*** Issue 73011 has been marked as a duplicate of this issue. ***