ocis icon indicating copy to clipboard operation
ocis copied to clipboard

All Space Members should be able to create `internal` links

Open tbsbdr opened this issue 10 months ago • 9 comments

Description

User Stories

  • As a Space member I want to create ~~internal links~~ some link so that I can send a "pointer" to my colleagues who are already member of that space/share.

Value

  • collaboration

Acceptance Criteria

  • Any Space Member (Viewer, Editor ...) should be able to create internal links

Definition of ready

  • [ ] Everybody needs to understand the value written in the user story
  • [ ] Acceptance criteria have to be defined
  • [ ] All dependencies of the user story need to be identified
  • [ ] Feature should be seen from an end user perspective
  • [ ] Story has to be estimated
  • [ ] Story points need to be less than 20

Definition of done

  • Functional requirements
    • [ ] Functionality described in the user story works
    • [ ] Acceptance criteria are fulfilled
  • Quality
    • [ ] Code review happened
    • [ ] CI is green (that includes new and existing automated tests)
    • [ ] Critical code received unit tests by the developer
  • Non-functional requirements
    • [ ] No sonar cloud issues
  • Configuration changes
    • [ ] The next branch of the ocis charts is compatible

tbsbdr avatar Apr 25 '24 07:04 tbsbdr

@micbar tbh I wonder why it is they way it is currently. is this actually a bug?

tbsbdr avatar Apr 25 '24 07:04 tbsbdr

This currently works as designed. Links are bound to the "can share permission". If we grant that to the users, everybody can share.

micbar avatar Apr 26 '24 14:04 micbar

hm, yes.. anything we can provide like we had for the private link would be good.

rephrased the userstory:

  • As a Space member I want to create ~~internal links~~ some link so that I can send a "pointer" to my colleagues who are already member of that space/share.

tbsbdr avatar Apr 26 '24 14:04 tbsbdr

Space member can send the url of the space, like: https://host.docker.internal:9200/files/spaces/project/s1 if another space member has access -> space should be open

ScharfViktor avatar Apr 29 '24 09:04 ScharfViktor

This currently works as designed.

I'm not entirely sure that is correct. At least the code is aware that private links do not require some permissions. https://github.com/cs3org/reva/blob/edge/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go#L71

Maybe the fact that it still checks for the ocs share permission in that case is just a bug?

kobergj avatar May 02 '24 12:05 kobergj

I'm not entirely sure that is correct. At least the code is aware that private links do not require some permissions. https://github.com/cs3org/reva/blob/edge/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go#L71

Maybe the fact that it still checks for the ocs share permission in that case is just a bug?

Actually, I'm pretty sure this is a bug. The code states it here: https://github.com/cs3org/reva/blob/edge/internal/grpc/services/publicshareprovider/publicshareprovider.go#L219

kobergj avatar May 02 '24 12:05 kobergj

@kobergj

"All users should create internal links" That comment is true as far as the user permissions are involved.

But on the resource, they also need the AddGrant permission. In their own personal spaces, they have that permission. But not in project spaces.

micbar avatar May 02 '24 12:05 micbar

But on the resource, they also need the AddGrant permission. In their own personal spaces, they have that permission. But not in project spaces.

Yes I know. But looking at the code making exceptions for internal links I would rather consider this a bug.

But I'm not fighting over this. If you say this a feature - it is a feature :+1:

kobergj avatar May 02 '24 12:05 kobergj

Chat in person with @kobergj

Solution: We will adapt the logic.

micbar avatar May 02 '24 13:05 micbar

Fix in progress https://github.com/cs3org/reva/pull/4633/commits/4ec7ca5370097689903c334d6573a705082d1ca7

micbar avatar Jun 19 '24 20:06 micbar

Rebased my reva PR

micbar avatar Jul 08 '24 10:07 micbar

@dragonchaser @fschade @rhafer review is now possible.

micbar avatar Jul 09 '24 13:07 micbar

Brought in via #9708

micbar avatar Jul 29 '24 19:07 micbar