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

OCS fixes for create public link #798

Merged
merged 3 commits into from
Jun 3, 2020
Merged

OCS fixes for create public link #798

merged 3 commits into from
Jun 3, 2020

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Jun 3, 2020

  • Return 404 if the target of createPublicLinkShare does not exist.
  • Added default permission in case none was passed in the requested
  • Fixed name field handling to get it from the share object and include it in the response even when empty (to be compliant with the old behavior)
  • Fixed owner user id in response to not include IDP/domain (to be compliant with old behavior) OCS share response contains domain name owncloud/ocis-reva#245

@refs FYI

Return 404 if the target of createPublicLinkShare does not exist.
Added default permission in case none was passed in the requested
@PVince81 PVince81 requested a review from labkode as a code owner June 3, 2020 09:35
@PVince81
Copy link
Contributor Author

PVince81 commented Jun 3, 2020

Discovered that "not found" issue when running the tests tests/acceptance/features/apiSharePublicLink1/createPublicLinkShare.feature:212 but omitting the SKELETON_DIR path, so no file was present for share creation.

For the perm issue, once the file exists but no permission field is given in tests/acceptance/features/apiSharePublicLink1/createPublicLinkShare.feature:212 the "Atoi" would fail due to empty string.

With these fixes the test tests/acceptance/features/apiSharePublicLink1/createPublicLinkShare.feature:212 goes further and bumps against further issues to be fixed separately.

Vincent Petry added 2 commits June 3, 2020 12:04
OCS response now uses the name field from the share object instead of
the one from the request.
The old OCS Share API did include the name field even when empty.
Local public shares must not include the IDP in the user id field.
@PVince81
Copy link
Contributor Author

PVince81 commented Jun 3, 2020

fixed the lint issue

I've added a bunch of additional fixes, see top post

@PVince81 PVince81 changed the title OCS public link add default perm + 404 handling OCS fixes for create public link Jun 3, 2020
@labkode labkode merged commit 9b9f2e5 into cs3org:master Jun 3, 2020
C0rby pushed a commit to owncloud/reva that referenced this pull request Jun 30, 2020
* OCS public link add default perm + 404 handling

Return 404 if the target of createPublicLinkShare does not exist.
Added default permission in case none was passed in the requested

* OCS fix name field handling

OCS response now uses the name field from the share object instead of
the one from the request.
The old OCS Share API did include the name field even when empty.

* OCS remove domain name for local public share

Local public shares must not include the IDP in the user id field.
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