Import mount.json - generating new keys

9.1.x

#1

We are in the process of implementing a new OwnCloud 9.1.4 server. We do have a very old OwnCloud server, but we are unable to upgrade and so have set up a new service. We are trying to add external file locations that are sftp. The existing SSH keys from Owncloud 8 don't work when imported, so we have attempted to remove them.

I can't find the proper syntax to simply ignore the existing mount information and use the create functionality for creating new SFTP spaces with keys.

Steps to reproduce
1. Use owncloud 8.1 mount.json file, remove SSH keys
2. import using occ in owncloud 9.1.4

Expected behaviour
I would anticipate it would add the mount and generate new keys based on the authentication mechanism chosen.

Actual behaviour
It imports but doesn't generate new Keys. Keys are generated when you go to the personal page.

Server configuration
Operating system: Centos 7
Web server: Apache
Database: Mysql
PHP version: 5.4
ownCloud version (see ownCloud admin page): 9.1.4
Updated from an older ownCloud or fresh install: fresh install
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): none


#2

I have attempted to use files_external:create for publickey::rsa and it doesn't generate the keys either. When I do this and attempt to verify it fails due to lack or a private key.