Skip to content

non personal spaces need no owner - #3091

Merged
micbar merged 1 commit into
cs3org:edgefrom
micbar:space-owner
Jul 29, 2022
Merged

micbar merged 1 commit into
cs3org:edgefrom
micbar:space-owner

Conversation

@micbar

@micbar micbar commented Jul 20, 2022 •

Copy link
Copy Markdown
Member

Description

Project spaces should not have a real user as an owner.

That fixes the bug when the space creator leaves the space and is no longer granted access to the space.

@butonic @kobergj @dragotin

Solution approach

Public links will become the new unified links. Therefore they will have a longer lifecycle than public links.
Inside a space, we need a stable way to access a public link regardless of the users which can join or leave the space at any time.

This PR assigns an owner with the spaceID as UserID and type invalid as a space owner. In this way, the public link scoped token authentication can work in the same way like inside of a personal space.

@C0rby JFYI

@micbar
micbar force-pushed the space-owner branch 2 times, most recently from 5c1fe2b to d38592a Compare July 22, 2022 13:11
@micbar
micbar marked this pull request as ready for review July 22, 2022 13:14
@micbar
micbar requested review from a team, glpatcern, ishank011 and labkode as code owners July 22, 2022 13:14
@micbar
micbar requested review from butonic, kobergj and rhafer July 22, 2022 13:15
@micbar
micbar requested a review from dragotin July 22, 2022 14:37
Comment thread pkg/utils/utils.go Resolved
Comment thread pkg/utils/utils.go Resolved
Comment thread pkg/utils/utils.go Resolved
@butonic

butonic commented Jul 25, 2022

Copy link
Copy Markdown
Contributor

I like the concept, however, naming is hard. I don't think this is a 'virtual' user. Conceptually, it represents no user, aka nobody in unix ... well ... in unix nobody should never 'own' any files or folders ...

Comment thread pkg/utils/utils.go Resolved
Comment thread pkg/utils/utils.go Resolved
@micbar
micbar marked this pull request as draft July 25, 2022 11:53
@micbar

micbar commented Jul 25, 2022

Copy link
Copy Markdown
Member Author

After checking the public link auth, this needs another approach.

@micbar
micbar force-pushed the space-owner branch 6 times, most recently from f1514eb to 6ab8cd4 Compare July 26, 2022 16:11
@micbar

micbar commented Jul 26, 2022 •

Copy link
Copy Markdown
Member Author

@butonic @kobergj @dragotin

Solution approach

Public links will become the new unified links. Therefore they will have a longer lifecycle than public links.
Inside a space, we need a stable way to access a public link regardless of the users which can join or leave the space at any time.

This PR assigns an owner with the spaceID as UserID and type invalid as a space owner. In this way, the public link scoped token authentication can work in the same way like inside of a personal space.

@C0rby JFYI

@micbar micbar changed the title non personal spaces need virtual owner non personal spaces need no owner Jul 26, 2022
@micbar
micbar marked this pull request as ready for review July 26, 2022 16:35
@micbar
micbar marked this pull request as draft July 26, 2022 16:36
@micbar
micbar force-pushed the space-owner branch 3 times, most recently from 3e79826 to d3797f0 Compare July 27, 2022 20:06
@micbar
micbar marked this pull request as ready for review July 28, 2022 07:00
@micbar
micbar force-pushed the space-owner branch 2 times, most recently from 4f9f9f4 to 063b4f0 Compare July 28, 2022 15:10
@micbar
micbar marked this pull request as draft July 28, 2022 15:34
@butonic

butonic commented Jul 28, 2022

Copy link
Copy Markdown
Contributor

While I am not happy with using an invalid user type, we can update the CS3 api with a new USER_TYPE_SPACE_OWNER ... hm maybe we should then use 8 (the next free int, which would be assigned to USER_TYPE_SPACE_OWNER) before merging this?

@micbar

micbar commented Jul 29, 2022

Copy link
Copy Markdown
Member Author

@butonic done

@micbar
micbar marked this pull request as ready for review July 29, 2022 06:57
@micbar
micbar requested a review from phil-davis July 29, 2022 06:59
@micbar
micbar merged commit 7886cc2 into cs3org:edge Jul 29, 2022
@micbar
micbar deleted the space-owner branch July 29, 2022 07:28
@micbar micbar mentioned this pull request Aug 11, 2022
25 of 26 tasks
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.

4 participants