[Bug:] Broken files-plugin with backends Owncloud & SMB in package-build 'files-2.1.0.130' (or earlier)
-
Hello folks,
updating to current files-plugin-package 2.1.0.130 leads to several issues and entirely breaks Webapp’s Owncloud and SMB-connectivity on CentOS 6.91) Error 500 on webapp load, configured files-accounts not visible in settings, no access to files possible.
Reason incomplete definition of abstract class :"NOTICE: PHP message: PHP Fatal error: Class Files\Backend\Owncloud\Backend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Files\Backend\iFeatureSharing::shareeDetails) in /usr/share/kopano-webapp/plugins/filesbackendOwncloud/php/class.backend.php on line 1264"
If we add the missing implementation of
shareeDetails
with empty body infilesbackendOwncloud/php/class.backend.php
,public function shareeDetails() { }
the above problems disappear and backend owncloud seems to work again:
2) smb-access with fallback “wrapping smbclient” breaks on browsing directory:
Possible reason: Memoryleak:"NOTICE: PHP message: [BACKEND_SMB]: Share path set to /" "NOTICE: PHP message: [BACKEND_SMB]: libsmbclient-php not available, falling back to wrapping smbclient" "NOTICE: PHP message: [BACKEND_SMB]: SMB Share openened successfully!" "NOTICE: PHP message: [BACKEND_SMB]: [LS] start for dir: /" "NOTICE: PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 72 bytes) in /usr/share/kopano-webapp/plugins/filesbackendSMB/php/lib/SMB/src/Connection.php on line 43"
3) smb-access with libsmbclient.so fails if account is configured with root “/” as share-path:
Reason: Invalid UNC-path-construction:"NOTICE: PHP message: [BACKEND_SMB]: Share path set to //" "NOTICE: PHP message: [BACKEND_SMB]: Opening a nativ smb connection via libsmbclient-php" "NOTICE: PHP message: [BACKEND_SMB]: SMB Share openened successfully!" "NOTICE: PHP message: [BACKEND_SMB]: [LS] start for dir: /" "NOTICE: PHP message: [BACKEND_SMB]: LS failed: Icewind\SMB\Exception\Exception Object" "(" " [message:protected] => Unknown error (8216) for smb://localhost////" " [string:Exception:private] => " " [code:protected] => 8216" " [file:protected] => /usr/share/kopano-webapp/plugins/filesbackendSMB/php/lib/SMB/src/NativeState.php" " [line:protected] => 66" " [trace:Exception:private] => Array" " (" " [0] => Array" " (" " [file] => /usr/share/kopano-webapp/plugins/filesbackendSMB/php/lib/SMB/src/NativeState.php" " [line] => 72" " [function] => handleError" " [class] => Icewind\SMB\NativeState" " [type] => ->" " [args] => Array" " (" " [0] => smb://localhost////" " )" "" " )" "" " [1] => Array" " (" " [file] => /usr/share/kopano-webapp/plugins/filesbackendSMB/php/lib/S..." "NOTICE: PHP message: [ERROR][AccountStore] Account check failed: Unknown error (8216) for smb://localhost////"
4) End of report ;-)
Best regards,
++ umgfoin. -
Commit 806a95d673e
willwould fix all above issues,
but it is missing in package-build files-2.1.0.130.++umgfoin.