-
Notifications
You must be signed in to change notification settings - Fork 189
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
Error when user upload files into the folder Shares #2322
Comments
I wonder how ownCloud10 should behave?
What should happen? Should
If (1) then I will have more questions about what should happen if Alice deletes the share, and Brian no longer has any received shares. |
After discussing with @micbar, we found the problem. Expected behavior: Expected test result 5566 will be also changed |
In oC10 API and UI a user can create their own files/folders in the "Shares" folder. Those persist, even when the user no longer has any received shares. What do we do about the existing oC10 behavior? Does "web" need to understand that on oC10 the "Shares" folder can be written to directly, but on OCIS it cannot be written to directly? |
Web will understand the correct webdav permissions Needs a backend fix |
Should we move this issue to the oCIS repo then? @micbar |
already there #2322 |
Regarding #2322 (comment): I don't know how far the discussions outside of this ticket went. In the scenario you describe, I would expect
Does that make sense for everyone or am I missing something? |
I will adjust the API test expectations - one scenario for oC10 expected behavior and another scenario for OCIS expected behavior. And then we will need 2 different scenarios in web that have the expected behavior of the UI when running with an oC10 server and with an OCIS server - I will leave that for @ScharfViktor to write and tag them so that they run in the appropriate pipelines in CI. |
@ScharfViktor @phil-davis I changed the "expected behavior" |
I have a PR in Reva which fixes it. CURLRequest
Result<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns">
<d:response>
<d:href>/dav/files/einstein/Shares/</d:href>
<d:propstat>
<d:prop>
<oc:id>MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU3OmY0MjQ4MDBmLTc5YjItNDZhNi05NzQ2LTFmM2I4MmEwYjViYw==</oc:id>
<oc:fileid>MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU3OmY0MjQ4MDBmLTc5YjItNDZhNi05NzQ2LTFmM2I4MmEwYjViYw==</oc:fileid>
<d:getetag>"05e827b715f0da007b7adc800703bb1e"</d:getetag>
<oc:permissions></oc:permissions>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<oc:size>0</oc:size>
<d:getlastmodified>Tue, 27 Jul 2021 14:38:25 GMT</d:getlastmodified>
<oc:favorite>0</oc:favorite>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/dav/files/einstein/Shares/NewFolder/</d:href>
<d:propstat>
<d:prop>
<oc:id>MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU3OjNjY2RhNzUyLWFiMWQtNGEzMS05YWFkLWVjNjA2ZmY4MDZkYw==</oc:id>
<oc:fileid>MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU3OjNjY2RhNzUyLWFiMWQtNGEzMS05YWFkLWVjNjA2ZmY4MDZkYw==</oc:fileid>
<d:getetag>"74d129b6a9a38d48976c1dee64a9bd53"</d:getetag>
<oc:permissions>S</oc:permissions>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<oc:size>0</oc:size>
<d:getlastmodified>Tue, 27 Jul 2021 14:37:49 GMT</d:getlastmodified>
<oc:favorite>0</oc:favorite>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus> WebUI |
Describe the bug
User try upload file/folder or create new folder into folder Shares.
A test is written that demonstrates the error. The test will work when the bug is fixed
Steps to reproduce
Expected behavior
If the user cannot upload or create items, the webUI should not offer the button.
Actual behavior
User cannot upload or create new object in the folder Shares
![Screenshot 2021-07-25 at 23 48 23](https://user-images.githubusercontent.com/84779829/126914540-71b0aa59-7579-4cb7-9a0e-d668f96f5185.png)
Setup
Please describe how you started the server and provide a list of relevant environment variables.
The text was updated successfully, but these errors were encountered: