SOVLED: Kopano files not working anymore after upgrade to UCS 4.2

kopano
samba
ucs-4-2

#1

I have just upgraded to UCS 4.2.

Now i can not access kopano files with kopano webapp anymore. I use SMB as backend.

Apache logs the following error:

[Wed Apr 12 07:08:12.784189 2017] [:error] [pid 9584] [client my.public.client.ip:37988] PHP Notice:  Use of undefined constant BASE_PATH - assumed 'BASE_PATH' in /usr/share/kopano-webapp/plugins/files/php/Files/Backend/class.backendstore.php on line 8, referer: https://my.host/webapp/
[Wed Apr 12 07:08:12.784709 2017] [:error] [pid 9584] [client my.public.client.ip:37988] [DBG][BackendStore] Searching for external backends in /usr/share/kopano-webapp/plugins/, referer: https://my.host/webapp/
[Wed Apr 12 07:08:12.784979 2017] [:error] [pid 9584] [client my.public.client.ip:37988] [DBG][BackendStore] Registering backend: FTP, referer: https://my.host/webapp/
[Wed Apr 12 07:08:12.785205 2017] [:error] [pid 9584] [client my.public.client.ip:37988] [DBG][BackendStore] Registering backend: Webdav, referer: https://my.host/webapp/
[Wed Apr 12 07:08:12.786456 2017] [:error] [pid 9584] [client my.public.client.ip:37988] [DBG][BackendStore] Registering external backend: SMB, referer: https://my.host/webapp/
[Wed Apr 12 07:08:12.787072 2017] [:error] [pid 9584] [client my.public.client.ip:37988] [DBG][BackendStore] Registering external backend: Owncloud, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.290781 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [DBG][AccountStore] Found 1 accounts., referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.291925 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [DBG][BackendStore] Searching for external backends in /usr/share/kopano-webapp/plugins/, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.292811 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [DBG][BackendStore] Registering backend: FTP, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.293680 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [DBG][BackendStore] Registering backend: Webdav, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.295120 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [DBG][BackendStore] Registering external backend: SMB, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.296408 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [DBG][BackendStore] Registering external backend: Owncloud, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.297553 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [BACKEND_SMB]: Share path set to ablage, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.298616 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [BACKEND_SMB]: Opening a nativ smb connection via libsmbclient-php, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.299629 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [BACKEND_SMB]: SMB Share openened successfully!, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.300365 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [BACKEND_SMB]: [LS] start for dir: /, referer: https://my.host/webapp/
[Wed Apr 12 07:08:19.374296 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [BACKEND_SMB]: LS Forbidden: Icewind\\SMB\\Exception\\ForbiddenException Object\n(\n    [path:protected] => smb://my.server.ip/ablage/\n    [message:protected] => Invalid request for smb://my.server.ip/ablage/\n    [string:Exception:private] => \n    [code:protected] => 13\n    [file:protected] => /usr/share/kopano-webapp/plugins/filesbackendSMB/php/lib/SMB/src/NativeState.php\n    [line:protected] => 42\n    [trace:Exception:private] => Array\n        (\n            [0] => Array\n                (\n                    [file] => /usr/share/kopano-webapp/plugins/filesbackendSMB/php/lib/SMB/src/NativeState.php\n                    [line] => 72\n                    [function] => handleError\n                    [class] => Icewind\\SMB\\NativeState\n                    [type] => ->\n                    [args] => Array\n                        (\n                            [0] => smb://my.server.ip/ablage/\n                        )\n\n                )\n\n            [1] => Array\n                (\n                    [file] => /usr/share/kopano-webapp/plugins/filesbackendSMB/php/lib/SMB/src/NativeState.php\n                    [line] => 101\n                    [function] => testResult\n                    [class] => Icewind\\SMB\\NativeState\n                    [type] => ->\n                    [args] => Array\n                        (\n                            [0] => \n                            [1] => smb://my.server.ip/ablage/\n                        )\n\n                )\n\n            [2] => Array\n                (\n                    [file] => /usr/share/kopano-webapp/plugins/filesbackendSMB/php/lib/SMB/src/NativeShare.php\n                    [line] => 89\n                    [function] => opendir\n                    [class] => Icewind\\SMB\\NativeState\n                    [type] => ->\n                    [args] => Array\n                        (\n                            [0] => smb://my.server.ip/ablage/\n                        )\n\n                )\n\n            [3] => Array\n                (\n                    [file] => /usr/share/kopano-webapp/plugins/filesbackendSMB/php/class.backend.php\n                    [line] => 398\n                    [function] => dir\n                    [class] => Icewind\\SMB\\NativeShare\n                    [type] => ->\n                    [args] => Array\n                        (\n                            [0] => /\n                        )\n\n                )\n\n            [4] => Array\n                (\n                    [file] => /usr/share/kopano-webapp/plugins/files/php/Files/Core/class.accountstore.php\n                    [line] => 223\n                    [function] => ls\n                    [class] => Files\\Backend\\SMB\\Backend\n                    [type] => ->\n                    [args] => Array\n                        (\n                            [0] => /\n                        )\n\n                )\n\n            [5] => Array\n                (\n                    [file] => /usr/share/kopano-webapp/plugins/files/php/Files/Core/class.accountstore.php\n                    [line] => 104\n                    [function] => checkBackendConfig\n                    [class] => Files\\Core\\AccountStore\n                    [type] => ->\n                    [args] => Array\n                        (\n                            [0] => Files\\Backend\\SMB\\Backend Object\n                                (\n                                    [formConfig:Files\\Backend\\SMB\\Backend:private] => Array\n                                        (\n                                            [labelAlign] => left\n                                            [columnCount] => 1\n                                            [labelWidth] => 80\n                                            [defaults] => Array\n                                                (\n                                                    [width] => 292\n                                                )\n\n                                        )\n\n                                    [formFields:Files\\Backend\\SMB\\Backend:private] => Array\n                                        (\n                                            [0] => Array\n                                                (\n                                                    [name] => server_address\n                                                    [fieldLabel] => Server address\n                                                    [editor] => Array\n                                                        (\n                                                            [allowBlank] => \n                                                        )\n\n                                                )\n\n                                            [1] => Array\n                                                (\n                                                    [name] => server_path\n                                                    [fieldLabel] => Share path\n                                                    [editor] => Array\n                                                        (\n                                                            [allowBlank] => \n                                                        )\n\n                                                )\n\n                                            [2] => Array\n                                                (\n                                                    [name] => workgroup\n                                                    [fieldLabel] => Workgroup (optional)\n                                                    [editor] => Array\n                                                        (\n                                                            [ref] => ../../workgroupField\n                                                            [allowBlank] => 1\n                                                        )\n\n                                                )\n\n                                            [3] => Array\n                                                (\n                                                    [name] => user\n                                                    [fieldLabel] => Username\n                                                    [editor] => Array\n                                                        (\n                                                            [ref] => ../../usernameField\n                                                            [allowBlank] => \n                                                        )\n\n                                                )\n\n                                            [4] => Array\n                                                (\n                                                    [name] => password\n                                                    [fieldLabel] => Password\n                                                    [editor] => Array\n                                                        (\n                                                            [ref] => ../../passwordField\n                                                            [inputType] => password\n                                                            [allowBlank] => \n                                                        )\n\n                                                )\n\n                                            [5] => Array\n                                                (\n                                                    [name] => use_zarafa_credentials\n                                                    [fieldLabel] => Use Kopano credentials\n                                                    [editor] => Array\n                                                        (\n                                                            [xtype] => checkbox\n                                                            [listeners] => Array\n                                
[Wed Apr 12 07:08:19.375492 2017] [:error] [pid 10722] [client my.public.client.ip:37990] [ERROR][AccountStore] Account check failed: Unauthorized. Wrong username or password., referer: https://my.host/webapp/

SOLVED: Nowadays i have to add the WORKGROUP in the kopano files dialog for each backend. This is new.