Existing WebDAV custom properties don't display
Opened this issue · 3 comments
I've added custom properties with WebDAV PROPPATCH, but they aren't visible to customproperties... how can I make them visible?
I'm using the latest v23 release of Nextcloud. It seems to work even though it hasn't been officially marked as working yet.
Here's an example PROPFIND list of properties (I've added some ud_* entries) that won't display in the "Properties" tab:
<d:prop>
<d:getlastmodified>Fri, 25 Mar 2022 14:45:05 GMT</d:getlastmodified>
<d:getcontentlength>1523</d:getcontentlength>
<d:getcontenttype>text/plain</d:getcontenttype>
<oc:permissions>SGNVW</oc:permissions>
<d:resourcetype/>
<d:getetag>"5cecfb6863ed5223c875982ddd56483e"</d:getetag>
<oc:ud_orig_hostname>myhost</oc:ud_orig_hostname>
<oc:ud_orig_path>/etc/usb_modeswitch.conf</oc:ud_orig_path>
<oc:ud_orig_mtime>1520346351</oc:ud_orig_mtime>
<oc:ud_orig_size>1523</oc:ud_orig_size>
<oc:ud_retention_days>77</oc:ud_retention_days>
<oc:ud_submit_time>1648219505</oc:ud_submit_time>
</d:prop>
Also, if I create a "well known" custom property using the Custom Properties panel in Settings, and set that property on a document, I can't seem to figure out how to retrieve it using a PROPFIND call. I tried oc:propname/, , etc., and they are returned as "not found".
It appears that when you have set up the well-known property in the Basic Settings, and then do a PROPPATCH on a doc that includes the custom property, a new row is created where the userid column in the oc_properties table is left blank and thus isn't found when that user looks at the doc properties Details page.