Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    [Bug:] Broken files-plugin with backends Owncloud & SMB in package-build 'files-2.1.0.130' (or earlier)

    Plugins for Kopano WebApp
    1
    2
    1156
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • umgfoin
      umgfoin last edited by umgfoin

      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.9

      1) 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.

      1 Reply Last reply Reply Quote 0
      • umgfoin
        umgfoin last edited by umgfoin

        Commit 806a95d673e will would fix all above issues,
        but it is missing in package-build files-2.1.0.130.

        ++umgfoin.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post