[jcifs] share name length,
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Fri Feb 7 15:27:54 EST 2003
>From the readDataWireFormat method of the NetShareEnumResponse
class you'll see that readString is passed a character limit of 13:
http://jcifs.samba.org/src/src/jcifs/smb/NetShareEnumResponse.java
This is a limitation in the Remote Administration Protocol (RAP) which
returns share information in the netname member of the share_info_1 structure:
ftp://ftp.microsoft.com/developr/drg/CIFS/cifsrap2.doc
Mike
> -----Original Message-----
> From: Vinay T [SMTP:vinay.t at sun.com]
> Sent: Friday, February 07, 2003 4:45 AM
> To: Allen, Michael B (RSCH)
> Subject: Re: [jcifs] share name length,
>
> hi,
>
> Thanks a lot. U have helped me to fix a bug.
> Can u please send me some pointers to docs or code snippets which specifies the
> restriction. This can be used to close the bug regarding shareNameLength.
>
> Thanks in advance,
> vinay at t
>
> "Allen, Michael B (RSCH)" wrote:
>
> > The believe limit is 13 characters. Longer share names and Unicode support
> > requires DCE/RPC which is not supported and is not being explored at this time.
> >
> > Mike
> >
> > > -----Original Message-----
> > > From: Vinay T [SMTP:vinay.t at sun.com]
> > > Sent: Friday, February 07, 2003 4:36 AM
> > > To: jCIFS
> > > Subject: [jcifs] share name length,
> > >
> > > hi,
> > >
> > > What is the maximum characters allowed in the shareName?. Is it a
> > > restriction or can it be increased by specifying the value to some
> > > property.
> > >
> > > If it is a restriction, can someone send me the pointers to docs or code
> > > snippets that specifies the restriction on the shareNameLength.
> > >
> > > If it can be increased, then to which property the value has to be
> > > specified or is there any other ways?
> > >
> > > Currently in my jCIFS version(jcifs-0.7.0b8), only shareNames of size 12
> > > are allowed.
> > >
> > > thanks in advance,
> > > vinay at t.
> > >
> > >
> > >
>
More information about the jcifs
mailing list