-
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
after renaming resource as sharer the receiver cannot access it by WebDAV using the new name #8242
Comments
Similar findings with search also #7262 |
do we use anywhere web uses We raised the same issue here and after a long time we closed it as is: #6376 |
The moodle plugin is doing that using the PHP-SDK.
and
But in this issue here, the IS a rename happening on the recipient side. So as I understand #6376 |
@individual-it I made the fix, that makes |
CI is pass |
So now, the rename won't be populated to the receiver. With fix (#8246): <d:href>/dav/spaces/{virtual-share-drive-id}/afolder</d:href>
<d:propstat>
<d:prop>
<oc:name>afolder</oc:name>
<d:displayname>afolder</d:displayname>
</d:prop>
</d:propstat> Before: <d:href>/dav/spaces/{virtual-share-drive-id}/afolder</d:href>
<d:propstat>
<d:prop>
<oc:name>afolder-renamed</oc:name>
<d:displayname>afolder-renamed</d:displayname>
</d:prop>
</d:propstat> |
Great!
|
Needs clarification. |
|
yes, when a sharer shares a resource to a sharee, the sharee sees the name of the resource at that time. The sharee keeps seeing that name in the future, even if the sharer renames or moves the resource. That is the "traditional" oC10 behavior that is preserved in ocis. |
@phil-davis Thanks for posting the expected behavior. I can confirm that for ocis. |
This feature is there to avoid naming collisions. The WebDAV listing of the Share Jail should NEVER have any naming collisions. |
For https://localhost:9200/remote.php/webdav/Shares
https://localhost:9200/remote.php/dav/files/<username>/Shares <d:href>/remote.php/dav/files/<username>/Shares/afolder</d:href>
<d:propstat>
<d:prop>
<oc:name>afolder-renamed</oc:name>
<d:displayname>afolder-renamed</d:displayname>
</d:prop>
</d:propstat> CC @2403905 . Should we re-open the issue? |
Describe the bug
After the sharer changed the name of a shared resource, the receiver can see the new name, but cannot access it by using the new name.
d:href
in the WebDAV response stays the old one, and that is how the resource can be accessedSteps to reproduce
curl -XPROPFIND -uuu1:uu1 https://host.d'ocker.internal:9200/dav/spaces/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668' -k | xmllint --format -
Expected behavior
d:href
element andoc:name
should correlateActual behavior
d:href
shows the old nameoc:name
the current oneresponse (shortened)
Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
PROXY_ENABLE_BASIC_AUTH=true OCIS_INSECURE=true PROXY_HTTP_ADDR=0.0.0.0:9200 OCIS_URL=https://host.docker.internal:9200 PROXY_TRANSPORT_TLS_KEY=../ocis.pem PROXY_TRANSPORT_TLS_CERT=../ocis.crt ./bin/ocis server
The text was updated successfully, but these errors were encountered: