Bug 54182 - [smbro] Konqueror: smb:// file browsing/manipulation has a 62 character limit in path and filename.
Summary: [smbro] Konqueror: smb:// file browsing/manipulation has a 62 character limi...
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: smb (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-06 02:07 UTC by Joseph Jamieson
Modified: 2003-09-22 09:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Jamieson 2003-02-06 02:07:36 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.2 
OS:          Linux

This may be related to Bug #49833, but I couldn't be certain.

When browsing a windows share, with smb://server/share, there appears to be a 62 character limit on the path and filename combination, for everything past the share name.

For example:

smb://server/share/1234567890123456789012345678901234567890123456789012345678.txt

is accessable.

smb://server/share/12345678901234567890123456789012345678901234567890123456789.txt

is not.   Also:

smb://server/share/folder/123456789012345678901234567890123456789012345678901.txt

Is accessable, whereas:

smb://server/share/folder/1234567890123456789012345678901234567890123456789012345678.txt

Is not.

I've tested it against many windows machines of various versions.   I can browse to and retrieve all these files using the same credentials in smbclient's command line interface, and I can use the "get" command to retrieve paths/filenames over 62 characters no problem.

smbclient is version 2.2.7a.

Either way it's a pretty major annoyance, as it's easy to have 62 character lengths with long directory names and long file names.
Comment 1 Alexander Neundorf 2003-03-20 22:43:53 UTC
Which smb-ioslave do you use ? 
Does it link to libsmbclient.so ? (try ldd kio_smb.so to find out) 
 
Alex 
Comment 2 Joseph Jamieson 2003-03-21 02:09:05 UTC
I don't know.  Here is the output of that command:

        libkio.so.4 => /usr/kde/3.1/lib/libkio.so.4 (0x40021000)
        libkdeui.so.4 => /usr/kde/3.1/lib/libkdeui.so.4 (0x402f6000)
        libfam.so.0 => /usr/lib/libfam.so.0 (0x40585000)
        libkdesu.so.4 => /usr/kde/3.1/lib/libkdesu.so.4 (0x4058e000)
        libkdecore.so.4 => /usr/kde/3.1/lib/libkdecore.so.4 (0x405a8000)
        libDCOP.so.4 => /usr/kde/3.1/lib/libDCOP.so.4 (0x40748000)
        libdl.so.2 => /lib/libdl.so.2 (0x4077c000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x4077f000)
        libkdefx.so.4 => /usr/kde/3.1/lib/libkdefx.so.4 (0x40790000)
        libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0x407b8000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x40e1d000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40e48000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40e57000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40e67000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40f47000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40f50000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40f67000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40fb7000)
        libutil.so.1 => /lib/libutil.so.1 (0x40fc0000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-
gnu/3.2.2/libstdc++.so.5 (0x40fc3000)
        libm.so.6 => /lib/libm.so.6 (0x4108e000)
        libc.so.6 => /lib/libc.so.6 (0x410b0000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-
gnu/3.2.2/libgcc_s.so.1 (0x411d9000)
        libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x411e2000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libmng.so.1 => /usr/lib/libmng.so.1 (0x411fb000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4123e000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0x4125f000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x412ac000)
        libXft.so.1 => /usr/X11R6/lib/libXft.so.1 (0x412c2000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x412d1000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x4132b000)
        libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x41333000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x417c5000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x4181c000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x41846000)

I am running Gentoo, everything is compiled from source.  Samba is v2.2.7a.

I'll run any command you want and post the results here.
Comment 3 Stephan Kulow 2003-03-24 22:56:43 UTC
this works in the smb-libsmb btw 
Comment 4 Alexander Neundorf 2003-03-26 23:06:22 UTC
I tested it here with  
smb://hammer/test/tmp/12345678901234567890123456789012345678901234567890123456abcdefg.txt 
and had no problems. 
Please send me the debug output of the smb-ioslave. 
 
Alex 
Comment 5 Joseph Jamieson 2003-03-27 23:19:57 UTC
Sure, what do I type?  I'm not a linux dummy but I've never done a debug of 
anything.   If I have to re-compile something with debugging support I can do 
that.

I'm not imagining this problem, honest =)
Comment 6 Joseph Jamieson 2003-03-27 23:28:00 UTC
ps.  I just shared out (on a windows XP machine, and again on a W2K machine) 
the same filename:

smb://metis/test/tmp/12345678901234567890123456789012345678901234567890123456ab
cdefg.txt 

If I try to copy the file, the dialogue box will appear but stay at 0% 
forever.   If just browsing the "tmp" folder there, konqueror won't hang but 
the gear keeps spinning because it's trying to generate a preview and it can't.

Anyways I'd like to send debug output from smb-ioslave but you'll have to tell 
me what to do.
Comment 7 Stephan Kulow 2003-09-14 12:56:26 UTC
please update samba to 3.0rc4 and KDE 3.1.4, then it should work :) 
Comment 8 Joseph Jamieson 2003-09-14 19:32:53 UTC
Nice, I will.   Good thing I run Gentoo =)
Comment 9 Joseph Jamieson 2003-09-21 20:44:18 UTC
Indeed, this seems to work quite well now with KDE 3.1.4 and Samba 3.0rc4.   Was
it a problem with KDE or Samba?
Comment 10 Stephan Kulow 2003-09-22 09:45:24 UTC
as a matter of fact your actual bug is most likely a problem with KDE. But now that you use 
3.0, we can use the better KDE solution as samba 2 sucks. But thanks for reporting, it works