-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
SMB File Share enumerating everything as folders #5340
Comments
Summoning @icewind1991 as this might be his area of expertise |
Can you try connecting to the smb share using |
It download the text file fine - no EOL character, so, prompt came out on a same line straight after. Appears to look all correct? - And sorry, I'm a sysadmin, but, never used Samba/smbclient directly (other than indirectly on a NAS/appliance)... Please let me know if I did it wrong or if I should be testing another way |
Ok - I am totally confused. Still getting this issue, but I wanted to experiment as I really want to get this working. The main shared folder is on a DFS root, I thought maybe that is causing issues (I remember a SAMBA bug a few years ago). I created a new share outside of DFS - Works fine. I created a subfolder called test in DFS - Same bug. I created a subfolder called test2 in DFS, Set external storage from / to /test2 - the share works fine I then changed external storage from /test2 to / - now when I browse, I can go to the test2 subfolder fine, but everything else returns the same bug/problem... After a few minutes, I go back/hit refresh - I now have the same problem and all files are showing up as a directory again Any advice? Is DFS shares just not supported or is there anyway to get this working? |
@wilhil can you also post the output of |
@icewind1991 - Sorry, please can you give a bit more info - is that a smbclient command or something else? I'm looking/experimenting now... |
This is for the two files in the root - I am guessing the attribute D is the problem? SMBClient does allow me to download and view the files fine (well, only tested with a few text files) as the earlier picture shows. This looks more promising in a non DFS share coming from the same server. Any idea what is causing this? |
I have the same issue when accessing my Nextcloud via WebDAV using an iOS app like Documents or Goodreader. DOCs and PDFs are shown as folders when in a subfolder: The first screenshot shows the first level of the sync folder "CM" - everything is fine (PDFs are shown with the right icon, no file extension. And they actually open). The second Screenshot shows a subfolder called "2007.09. ..." with PDFs. Instead of the files, folders are shown with the files' names and a ".pdf" extension. If you click on the folders, it's shown empty. |
Maybe there's a way @icewind1991 could get access to a server that has this issue from somebody who experiences the bug? Or can you reproduce it, Robin? |
I can provide access - just let me know. |
@icewind1991 ping ;-) |
I think, this issue is still open? |
As I cannot reproduce the original issue anymore using latest samba, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen. |
I had a look a couple of months ago and it was still happening. Please note, for me originally, this was not an issue with SMB itself, it worked fine when mounting directly at the CLI. this seemed strictly to be an issue when going to a DFS share. |
Define DFS? |
Windows Distributed File System - https://docs.microsoft.com/en-us/windows-server/storage/dfs-namespaces/dfs-overview At large clients, we typically use a DFS over a standard file share for redundancy. I always thought the DFS was simply server to server and clients connected the normal way. In fact, Linux/Mac clients seem to work fine, as do many third party tools (As you can see above, I used cat on a file without issue)... It's purely nextcloud for some reason sees the files as folders! |
Thanks! :) |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
Steps to reproduce
Expected behaviour
I should see all files and folders listed.
Actual behaviour
Everything appears as folders - if I click on a folder, it enumerates. If I click on a file, I get an error and it takes me back to the first page after login.
Server configuration
Operating system:
Ubuntu 16.04 LTS
Web server:
Apache
Database:
Sqlite3 (testing only)
PHP version:
7.0.18
Nextcloud version: (see Nextcloud admin page)
Nextcloud 12.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
Where did you install Nextcloud from:
home page
Signing status:
Signing status
No errors have been found.
List of activated apps:
App list
Enabled:
Disabled:
Nextcloud configuration:
Config report
{
"system": {
"instanceid": "ocgg72f2njgu",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"xx.xx.xx.xx"
],
"datadirectory": "/var/www/html/nextcloud/data",
"overwrite.cli.url": "http://xx.xx.xx.xx/nextcloud",
"dbtype": "sqlite3",
"version": "12.0.0.29",
"installed": true
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/...
no
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM
oc_appconfig
WHEREappid
= 'user_ldap';Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Insert your webserver log here
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
The text was updated successfully, but these errors were encountered: