Repository navigation
[WiP] fix(ocm): OCM Specification Compliance - #383
MahdiBaghbani wants to merge 3 commits into
Conversation
…mmit-id-250912-115056 [tests-only][full-ci] Bump latest ocis commit id on main branch
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Co-authored-by: Roman Perekhod <2403905@gmail.com> Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
fa36b5f to
7ec2765
Compare
InviteOn OpenCloud 3 (accept receiver, token generator) side:On OpenCloud 4 (invite forwarder, token receiver) sideNOTE:same user to same user sharing fails, since the search bar for external user doesn't show Alan at all on OpenCloud 3 side: I suspect the search isn't showing the "other" Alan because of ShareOn OpenCloud 3 (share sender) side:2025-10-22T07:45:26Z DBG Sending OCM /shares POST to https://4.opencloud.cloud.test.azadehafzar.io/ocm/shares:
{
"shareWith": "848221b4-08a2-4155-958a-891b840a36c8@4.opencloud.cloud.test.azadehafzar.io",
"name": "op-to-op-diff-user.txt",
"description": "",
"providerId": "redact",
"owner": "b1f74ec4-dd7e-11ef-a543-03775734d0f7@https://3.opencloud.cloud.test.azadehafzar.io@3.opencloud.cloud.test.azadehafzar.io",
"sender": "b1f74ec4-dd7e-11ef-a543-03775734d0f7@https://3.opencloud.cloud.test.azadehafzar.io@3.opencloud.cloud.test.azadehafzar.io",
"ownerDisplayName": "",
"senderDisplayName": "Alan Turing",
"shareType": "user",
"expiration": 0,
"resourceType": "file",
"protocol": {
"name": "multi",
"options": {},
"webdav": {
"sharedSecret": "redact",
"permissions": [
"read"
],
"uri": "https://3.opencloud.cloud.test.azadehafzar.io/dav/ocm/redact"
}
}
}Note:First thing obvious here is that, if in the invite sequence we used This is wrong, I think that we should either:
On OpenCloud 3 (share receiver) side:NoteThis is also interesting, the user in the sender field is different from the user established in the invite sequence because (uuid@idp != uuid), UPDATE: No there isn't see code so it really doesn't matter who the sender is, whether it's a contact or not, as long as provider is authorized, anyone on that provider can send you shares. Giuseppe:
|
butonic
left a comment
There was a problem hiding this comment.
Nice!
I need to set this up and verify this live, but the PR looks solid. the base64 encoding was a hack to make sure we could differentiate the users. I'm ok with making the idp part of the opaqueid for federated users and then using the provider id as idp ... maybe a little confusing.
Do you plan to work further on this PR? if not put it on ready and I'll review it further!
|
@MahdiBaghbani is that pr ready for review? |
|
Sorry,I've been doing work on CERNBox Reva, |
|
@MahdiBaghbani thanks, will you also have a look into the tests? CI fails. we plan to have a release this week, if you find some time before end of week it will be part of it. THX |
|
ocm_invitation_test.go, Line 222: Expect(utils.UserEqual(forwardRes.UserId, federatedEinstein.Id)).To(BeTrue())
This looks a bit off to me.... Is this behaviour expected and the test needs fixing, or is the behaviour wrong? |
|
superseded by #434 |

Fixed opencloud-eu/opencloud#1671
Checklist:
Based on the:
The issue I raised has happened.
The combined goal of those 2 PRs is:
The issue:
P.S. Tests are probably still outdated or wrong