-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[full-ci] feat: allow editing of public link shared single files #40264
Conversation
Would be good to get some acceptance test coverage on this ..... @phil-davis THX |
I will look in the morning. |
https://drone.owncloud.com/owncloud/core/36485/9/5
test-javascript failed - @DeepDiver1975 I will let you adjust those tests. |
https://drone.owncloud.com/owncloud/core/36485/10/7
@DeepDiver1975 - I will let you sort out the PHP unit tests. |
88fa451
to
c5040ab
Compare
The permissions handling seems a bit strange:
The webUI is asking for permissions 15, and getting back permissions 3. |
This behavior did not really change in this PR. Before this change when requesting 3 one would only get 1 in the response |
Yes, before this change, requesting anything other than 1 resulted in 1 or an error. So, I guess you want to keep the old behavior that requesting 3 returned permission 1 only - so that any existing clients that are "silly" and currently routinely request "3" will still get the same behavior. |
The code in #40269 should be passing now. I made a few comments there. The test scenario at the API level works. The webUI works manually when I use it to create Download/View/Edit public links (I can add a UI test for that "whenever" early next week) But when I browse in a private window to a Download/View/Edit public link I just get a page that lets me download. I can upload with a
(2) might be a bit tricky - the file on the server might be a LibreOffice document |
for the time being collabora is the only reasonable use case - we will enhance this over time. |
OK - I will make the UI test scenario use direct API requests to verify that the Download/View/Edit link works after being created in the UI. |
c5040ab
to
9895f1c
Compare
@DeepDiver1975 I have all the test code working in PR #40269 Can I rebase this PR and cherry-pick the test code into here? Or you can do it. The only code change that I need to make was 430abcb - please have a look. After that, all tests pass. |
look good - thx |
As you wish - I have only limited time available at the moment. THX |
50e81be
to
df8fd0b
Compare
df8fd0b
to
cc31f90
Compare
💥 Acceptance tests pipeline cliMain-mariadb10.2-php7.4 failed. The build has been cancelled. |
3d9bdef
to
91b9c31
Compare
91b9c31
to
8b92375
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
Add option to share a single file via public link with write permissions
Related Issue
https://github.com/owncloud/enterprise/issues/5274
How Has This Been Tested?
Note: there is no web UI to make use of this directly - when browsing to the public link, the standard page for viewing and downloading is shown. The purpose of this enhancement is to allow other clients to be able to edit single files in public links.
Types of changes
Checklist: