Skip to content

Fix OCS Share API path response#25003

Merged
PVince81 merged 3 commits into
masterfrom
fix_ocs_path_response
Jun 10, 2016
Merged

Fix OCS Share API path response#25003
PVince81 merged 3 commits into
masterfrom
fix_ocs_path_response

Conversation

@rullzer

@rullzer rullzer commented Jun 7, 2016

Copy link
Copy Markdown
Contributor

Fixes #24997

There are only 3 possible types of users that can request a share via the OCS Share API:

  • owner
  • inituator
  • recipient

Else they won't find the share.
This makes sure we get the share for the current user. So that the path is always something meaningfull for that user.

CC: @nickvergessen @PVince81 @icewind1991 @scriptPilot

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

check for non empty result from getById ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah right... in case of messed up shares... yeah lets check that...

rullzer added 3 commits June 7, 2016 15:09
A share can only be requested by 3 'types' of people

* owner
* initiator
* recipient

So we have to get the path as the current user. Since that is the only
path that has any meaning to the user.
@rullzer
rullzer force-pushed the fix_ocs_path_response branch from 88b5756 to 72c5535 Compare June 7, 2016 13:09
@rullzer

rullzer commented Jun 7, 2016

Copy link
Copy Markdown
Contributor Author

This basically obsoletes the 'target' in the OCS SHare API response.

@PVince81

PVince81 commented Jun 8, 2016

Copy link
Copy Markdown
Contributor

Tested, works 👍

@rullzer also observed on 9.0, please backport after review

CC @dragotin @DeepDiver1975

@PVince81

Copy link
Copy Markdown
Contributor

Need seconds reviewer @ChristophWurst @nickvergessen @DeepDiver1975 @owncloud/sharing

@icewind1991

Copy link
Copy Markdown
Contributor

👍 looks good

@PVince81
PVince81 merged commit 14fde66 into master Jun 10, 2016
@PVince81
PVince81 deleted the fix_ocs_path_response branch June 10, 2016 14:49
@PVince81

Copy link
Copy Markdown
Contributor

@rullzer please backport to 9.0

@rullzer

rullzer commented Jun 10, 2016

Copy link
Copy Markdown
Contributor Author

Backport in #25067

@lock

lock Bot commented Aug 5, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shared from you view shows wrong folder names

5 participants