Nextcloud plugin woes
Posted: Tue Apr 04, 2017 4:02 pm
We have trouble with the brand new ZimbraDrive plugin for Nextcloud.
(We followed instructions here: https://wiki.zimbra.com/wiki/Zimbra_Dri ... mbra_Drive)
The plugin does not seem to be able to save its configuration. The configuration under Admin settings turn into blank again if you leave the page.
So I tried to get around the problem by typing the url directly into the PHP code responsible for generating the URL based on those values.
nextcloud/apps/zimbradrive/lib/Auth/OC_User_Zimbra.php:
```php
$this->url = sprintf("https://zebra.csc.fi:443/service/extens ... braBackend");
// "http" . ($this->use_ssl ? "s" : ""),
// $this->zimbra_url,
// $this->zimbra_port
// );
```
This does get us further. However, still when I select 'Drive' tab in the Web client we get this in the Nextcloud logs:
`Error index Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO `oc_zimbradrive_users` ( `uid`, `display_name` ) VALUES( ?, ? )' with params [null, null]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null`
So no luck there. Latter one could depend on the first problem saving the settings in the first place. Anyone else in the same boat?
(We followed instructions here: https://wiki.zimbra.com/wiki/Zimbra_Dri ... mbra_Drive)
The plugin does not seem to be able to save its configuration. The configuration under Admin settings turn into blank again if you leave the page.
So I tried to get around the problem by typing the url directly into the PHP code responsible for generating the URL based on those values.
nextcloud/apps/zimbradrive/lib/Auth/OC_User_Zimbra.php:
```php
$this->url = sprintf("https://zebra.csc.fi:443/service/extens ... braBackend");
// "http" . ($this->use_ssl ? "s" : ""),
// $this->zimbra_url,
// $this->zimbra_port
// );
```
This does get us further. However, still when I select 'Drive' tab in the Web client we get this in the Nextcloud logs:
`Error index Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO `oc_zimbradrive_users` ( `uid`, `display_name` ) VALUES( ?, ? )' with params [null, null]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null`
So no luck there. Latter one could depend on the first problem saving the settings in the first place. Anyone else in the same boat?