Bug 12847 - Reading from a DFS share returns wrong attributes
Reading from a DFS share returns wrong attributes
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
4.3.11
x64 Linux
: P5 critical
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-17 09:50 UTC by William Hilsum
Modified: 2017-06-17 10:59 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Hilsum 2017-06-17 09:50:49 UTC
(With Samba 4.3.11 on Ubuntu, latest version from repository)

I have a Windows Server 2016 with a DFS share.

If I use `smbclient`, everything is fine and I can browse/get the files, however, if I run `allinfo` on a file, it is returning an attribute of D instead of stream: [::$data]

If I target the same folder on the server as a non DFS share, everything works as normal.

I am not sure where this comes from the tool itself or a lower library, but, it is causing third party tools that use Samba such as Nextcloud to mark all files on a DFS share as a folder.

I am trying to manually download the latest version of Samba to see if it has been fixed - I've read all release notes (other than 2 dead links) since 4.3.11 and couldn't see a fix.

Nextcloud bug report - https://github.com/nextcloud/server/issues/5340

Thanks,

William