Skip to content
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

Update OCM shares to last version of CS3APIs #3646

Merged
merged 46 commits into from
Feb 15, 2023

Conversation

gmgigi96
Copy link
Member

@gmgigi96 gmgigi96 commented Feb 8, 2023

This PR updates the OCM share implementation after the changes in cs3org/cs3apis#199, cs3org/OCM-API#54 and cs3org/OCM-API#57.

In particular:

  • Introduced the concept of allowing multiple protocols in the OCM shares
  • Refactor the ocmcore and ocmshareprovider, simplifying the single drivers, now just repositories, and implemented common logic at provider level.
  • Implemented WebDAV access method for an OCM share (Webapp and Transfer later in an other PR)
  • Add command ocm-share-get <id> and ocm-share-get-received <id> to get the information of a single OCM share
  • Written integration tests

The sharedSecret returned with the WebDAV protocol is still with owner permissions on the home folder that created the share. Will follow up an other PR with a proper OCM scoped token.

@gmgigi96 gmgigi96 marked this pull request as draft February 8, 2023 11:02
@gmgigi96 gmgigi96 changed the title [WIP] Refactor OCM shares Update OCM shares to last version of CS3APIs Feb 8, 2023
@cs3org cs3org deleted a comment from update-docs bot Feb 8, 2023
@gmgigi96
Copy link
Member Author

gmgigi96 commented Feb 8, 2023

@michielbdejong can you review? This is touching even the nextcloud driver for the ocm shares

@gmgigi96 gmgigi96 marked this pull request as ready for review February 8, 2023 17:53
Copy link
Member

@glpatcern glpatcern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let's go ahead with this large change that already includes several unit tests, but we need to test in QA now.

The transfer (or datatx) OCM shares where also refactored and will need some testing as well in the context of ScienceMesh (cc @redblom).

All OCM-related APIs are much clearer now, and a CLI is also available, which eases further developments.

@glpatcern glpatcern merged commit 94ced01 into cs3org:master Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants