Bug 246 - only gets 13 first characters of sharename
only gets 13 first characters of sharename
Status: REOPENED
Product: Samba 3.0
Classification: Unclassified
Component: libsmbclient
3.0.0preX
All Linux
: P2 normal
: none
Assigned To: Samba Bugzilla Account
http://bugzilla.gnome.org/show_bug.cg...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-07-22 12:25 UTC by Bastien Nocera
Modified: 2011-05-08 15:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bastien Nocera 2003-07-22 12:25:01 UTC
smb://wyatt contains a share with more than 13 characters in the name (from
smb.conf "Just_to_test_a_really_long_name")

The new gnome-vfs smb: method (based on libsmbclient) can't get the complete
name of the share if it is longer than 13 characters (it gets "Just_to_test_").

Opening "smb://wyatt/Just_to_test_" fails but opening
"smb://wyatt/Just_to_test_a_really_long_name" works.

I can provide a small testcase if necessary.

(bug in bugzilla is still current, even though the backend of the package changed)
Comment 1 Tim Potter 2003-08-05 21:44:11 UTC
The problem here is that libsmbclient calls the RAP function cli_RNetShareEnum()
which was designed to be used by win9x clients and such only returns 13
character share names.

A solution is to call the cli_srvsvc_net_share_enum() RPC function instead which
should return the full share names.
Comment 2 Gerald (Jerry) Carter 2003-11-04 20:02:31 UTC
we're not going to fix this without a major rewrite.
Closing out until this feature gets on the roadmap.
Comment 3 Gerald (Jerry) Carter 2005-02-07 08:41:26 UTC
originally reported against 3.0.0beta3.  CLeaning out 
non-production release versions.
Comment 4 Art Ketcham 2005-02-24 20:29:37 UTC
This is a really major problem with Samba. I cannot access files on a Windows
2003 server which I have no control over. It seems like this is not a major
difficulty to fix. Many Samba users would really appreciate it if this major bug
were given some attention.
Comment 5 Gerald (Jerry) Carter 2005-02-25 06:31:32 UTC
art, patches welcome.  libsmbclient could use someone to 
help add newer features such as this.
Comment 6 GML 2005-05-16 08:50:03 UTC
Maybe it's a good idea to reopen this bug repport, because it's very important 
to permits a partial migration from windows to linux in the most entreprises, 
because smb share are very often used, users give explicit long share name. 
KDE 3.4 has a very good smb integration with kde applications, but this bug 
requires to keep a pc with windows next to linux computer to know exact share 
names. 
Comment 7 Bastien Nocera 2010-09-04 12:03:04 UTC
Reopening bug, seeing as it's not actually fixed.
Comment 8 john 2011-05-08 15:07:59 UTC
(In reply to comment #0)
> smb://wyatt contains a share with more than 13 characters in the name (from
> smb.conf "Just_to_test_a_really_long_name")
> 
> The new gnome-vfs smb: method (based on libsmbclient) can't get the complete
> name of the share if it is longer than 13 characters (it gets "Just
Comment 9 john 2011-05-08 15:10:24 UTC
(In reply to comment #8)
> (In reply to comment #0)
> > smb://wyatt contains a share with more than 13 characters in the name (from
> > smb.conf "Just_to_test_a_really_long_name")
> > 
> > The new gnome-vfs smb: method (based on libsmbclient) can't get the complete
> > name of the share if it is longer than 13 characters (it gets "Just

I WANT MY MONEY