SMB External Storage not Working when using Failover Cluster #21994
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
bug
needs info
stale
Ticket or PR with no recent activity
Hello
We have run into a similar problem as issue #3789 when using a failover cluster for the file server since in this setup backwards 8.3 compatibility cannot be enabled on the shares.
We've managed to find a workaround modifying the source code so that it doesnt rely on the "allinfo" command via smbclient but on "dir", as the former does not work on shares without 8.3 compatibility.
I leave the code below for review. It'd be great if this fix was merged into the code base as it seems we are not the only ones with this issue.
====================================================================
FILE: apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php
Added function dirRoot:
Comment: This function is a helper function that is meant to do the same as the dir function, but restricted to the case of listing the root directory. It could be unified with the dir function but doing so would require modifying the behaviour of this for this special case. This function uses parseRootDir which is explained below.
Modified the stat function, as follows:
Comment:
=====================================================================
FILE: apps/files_external/3rdparty/icewind/smb/src/Wrapped/Parser.php
Added function parseRootDir
Comment:
cheers,
Leandro.-
The text was updated successfully, but these errors were encountered: