-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Folder download (.zip) from SMB/CIFS storage not possible #24497
Comments
The SMB uri in the owncloud.log looks rather strange. It says "Documents" twice, which is not supposed to be there (as I understand). |
Works for me with 9.0.2, I'm able to download a folder "/smb/pics" that is on an SMB storage. Please try running |
Runnung
The filename contains a Geman umlaut, however, I suppose this is not what causes the problem. Other files with umlauts are scanned just fine. |
There is a very specific case where umlauts can go wrong (#21365). If this file was created directly on the SMB storage (without going through ownCloud) from a Mac computer, it is likely that the encoding used for umlauts is not compatible. |
Thanks again for the quick reply! I renamed that file and the scanner went on this time.
The user whose files are scanned does not have permissions to open that directory, but shouldn't the scanner just skip it? And why the error code always seems to be 22, even for these seemingly unrelated issues? |
I'd expect the scanner to skip these, but "Unknown error" shouldn't happen. Normally the SMB library would convert known errror to PHP exceptions like "ForbiddenException" but it doesn't do here. @icewind1991 any clues about the error code ? |
I encounter the same problem when trying to create new file or folder, and also when upload a file. They all trigger some "Error 22". |
The error code is likely decimal, so in hex it's 0x0016. From looking at https://msdn.microsoft.com/en-us/library/ee441884.aspx it looks like it matches either "An unknown SMB command code was received by the server." or "STATUS_INVALID_DEVICE_STATE". Please make sure you have Samba >= 4.2.8 and preferable also have the php5-libsmbclient module. |
The SMB server is running samba 4.2.9 (an update to 4.2.11 went horriby wrong last weekend, so I went back to that version, for the time being). |
Is there a way to log the smbclient commands that owncloud is executing? |
When php5-libsmbclient is installed, the Icewind/SMB library doesn't use the command line @icewind1991 can you advice ? Any debug mode ? |
Can I use the Icewind/SMB library without |
Hmmm, not sure how it would behave. I thought the |
Oh, I'm sorry, of course I removed |
Small Update: |
I think php5-libsmbclient converts an unexpected error to the error code 22. Is it possible to get a .pcap file with the network trace? Wireshark can help there. |
Hi, I got the same problem when i try to download a folder from SMB share on a fresh install: Download link generated: Error code: |
Update: Working with no errors: Not working: Looks like the colon in the folder name are messing things up. |
The "issue" with the colon is known. We're still figuring out the best way to handle this. There are issues with several characters in the filenames when accessing to a windows machine. The problem is that we can't detect if we're connecting to windows or not, and in addition windows ignores filenames containing those characters. The list of forbidden chars are: |
@jvillafanez @SergioBertolinSG @davitol are you able to reproduce this locally ? |
Cannot reproduce the bug. oC version 8.2.4. Samba version 4.3.11-Ubuntu
The folder is downloaded OK in .tar (in the issue title it is said that it generates a .zip file) OOTH about the colon symbol in the name: Trying to create a folder in oC webUI with a colon in the name is not possible as @jvillafanez said in #24497 (comment) This is the log generated trying to create this folder:
If you create the folder with colon in the name in the SMB backend, it is "renamed" in oC webUI. |
likey an environment issue, please upgrade everything: Samba, libsmbclient, php-libsmbclient and try again with at least OC 9.1.4. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
Actual behaviour
Server configuration
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/...
SMB
Are you using encryption: yes/no
NO
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP
LDAP configuration (delete this part if not used)
The text was updated successfully, but these errors were encountered: