How to extract document UUID using WebDAV protocol
I'm trying to create a file interface to Alfresco repository using WebDAV interface.
I have managed to list directories or upload files, but I don't know how to perform listing or downloading of individual files because Alfresco uses UUID instead of filename in the URL of individual files (i.e. https://<host>/share/page/site/<site_name>/document-details?nodeRef=workspace://SpacesStore/1552c1ed-d744-42c2-b8e3-8eb7b7284474)
When I upload a file using WebDAV, I don't get any return value (comparing to using CMIS protocol where you get the document UUID). So I have two questions:
- 1. is there a way using WebDAV to obtain the document UUID (by knowing the physical path) ?
- 2. if not, is there a way to reference a file in Alfresco using filename instead of UUID?
As an workaround, I noticed our Alfresco server also supports WebDAV protocol so I made some quick tests where I managed to upload files and list directories, but then got stuck again at limitations caused by not being able to retrieve the UUID of individual files or folders.
The ideal scenario for us is to fix the CMIS issue, otherwise I will have to lookup up other APIs but that will take a lot of time.