-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement OCM to groups in ownCloud core #14
Comments
This will only work if the sender knows that the receiving server will know what is meant with the group name, i.e. when they share an AAI. Maybe the group name should be namespaced to a specific AAI server. |
In today's standup we decided to go ahead with this. |
@navid-dada let's work on this in pondersource/core#1 |
Unlike in Nextcloud, in OC-10 the database table schema doesn't have a 'share_type' column: | oc_share_external | CREATE TABLE `oc_share_external` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`remote` varchar(512) NOT NULL COMMENT 'Url of the remote owncloud instance',
`remote_id` varchar(255) NOT NULL DEFAULT '-1',
`share_token` varchar(64) NOT NULL COMMENT 'Public share token',
`password` varchar(64) DEFAULT NULL COMMENT 'Optional password for the public share',
`name` varchar(255) NOT NULL COMMENT 'Original name on the remote server',
`owner` varchar(64) NOT NULL COMMENT 'User that owns the public share on the remote server',
`user` varchar(64) NOT NULL COMMENT 'Local user which added the external share',
`mountpoint` varchar(4000) NOT NULL COMMENT 'Full path where the share is mounted',
`mountpoint_hash` varchar(32) NOT NULL COMMENT 'md5 hash of the mountpoint',
`accepted` int(11) NOT NULL DEFAULT 0,
`lastscan` bigint(20) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `sh_external_mp` (`user`,`mountpoint_hash`),
KEY `sh_external_user` (`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin | |
See #28 for latest progress. |
Three advantages to implementing it this way:
So I would say: |
We talked to Juan from ownCloud, he asked us to store incoming remote group shares in a separate table, put all the functionality in an app, and keep changes to ownCloud core to a minimum. |
Places where
Of these, getMountsForUser looks like it's probably what DAV uses to determine which shares to mount into the DAV file tree, right? |
|
Continuing development in https://github.com/pondersource/core/tree/surf-dev which is a combination of |
Retrieving the ShareProvider(Factory) code from |
So currently these functionalities are available:
So these functionalities should be tested and implemented if necessary:
|
So I will close this Issue. work will be continued with the above-mentioned issues. |
For now, OCM invites will be sent user-by-user, but we could start prototyping something towards milestone 4, where the OCM call from oc1 to oc2 targets a group@oc2 (or even a group@some-shared-aai) instead of a user@oc2.
The text was updated successfully, but these errors were encountered: