Re: Fwd: SmbRandomAccessFile for read-only access
Michael B Allen <[email protected]> Mon, 1 Jul 2013 14:15:56 -0400
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <CAGMFw4gKCfzHkm4P8E-mFyKYdSk-=kYq1JjQmPXEo_qX0m0UUw@mail.gmail.com> |
On Fri, Jun 21, 2013 at 10:31 AM, Somnath Kundu <[email protected]> wrote: > On Fri, Jun 21, 2013 at 9:42 AM, Michael B Allen <[email protected]> wrote: >> >> Hi Somnath, >> >> I would be shocked if you found a server that does not hasCapability >> CAP_NT_SMBS. Maybe an ancient version of Samba thats actually a honeypot. > > I was testing with a shared HDD attached to a Asus RT-N13U router. > > IMHO, it is preferable not to assume anything about the capability of the > underlying hardware/software when writing our code to make it work under any > conditions. Hi Somnath, The SmbComOpenAndX code is based on analyzing communication of clients that are so old I no longer have access to them (I think I would have to resurrect Windows 98 somewhere). It is very possible that an adjustment to the open flags is all that is necessary to get SmbRandomAccessFile to work. But I would have to actually try it myself. I cannot blindly apply a patch without high confidence that it is correct. And an obscure router that doesn't implement commands that have been standard for 20 years makes this a very low priority issue. Never-the-less, I have added your diagnosis to the TODO list. It is at least noteworthy that there is actually a device out there that does not implement NT SMBs. Mike -- Michael B Allen Java Active Directory Integration http://www.ioplex.com/