Describe the bug
Not sure how WebDAV E-Tags are handled but noticed the quotes of the received E-Tag from the files functions contain them.
<d:getetag>"6a351fb28bebc"</d:getetag>
maybe the quotes can be removed from here after being decoded?
|
if "d:getetag" in prop_keys: |
|
fs_node_args["etag"] = prop["d:getetag"] |
Steps/Code to Reproduce
nc = AsyncNextcloudApp()
await nc.set_user('alice')
files_handle = AsyncFilesAPI(nc._session)
fsnode_list = await files_handle.listdir(path, min(5, depth))
curl -X PROPFIND \
"http://nextcloud.local/remote.php/dav/files/admin/" -u alice:alice \
-H "Depth: 1" \
-H "Content-Type: application/xml; charset=utf-8" \
-d '<?xml version="1.0"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://nextcloud.org/ns">
<d:prop>
<d:displayname />
<d:getetag />
</d:prop>
</d:propfind>' \
-v
Expected Results
/
Actual Results
/
Setup configuration
/
Describe the bug
Not sure how WebDAV E-Tags are handled but noticed the quotes of the received E-Tag from the files functions contain them.
<d:getetag>"6a351fb28bebc"</d:getetag>maybe the quotes can be removed from here after being decoded?
nc_py_api/nc_py_api/files/_files.py
Lines 301 to 302 in 9058723
Steps/Code to Reproduce
Expected Results
/
Actual Results
/
Setup configuration
/