Expand my Community achievements bar.

SOLVED

Need to enable http put but disable webdav

Avatar

Employee

We have a connector which uploads file using Asset API HTTP Put to upload any new assets into AEM OnPrem.
The issue we are facing is when we disable WebDAV in AEM, the HTTP PUT also stops. 
Is there a way to allow to upload assets via HTTP PUT while keeping WebDAV disabled.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

What API are you using to upload? How do the requests look like?

 

Jörg

View solution in original post

6 Replies

Avatar

Correct answer by
Employee Advisor

What API are you using to upload? How do the requests look like?

 

Jörg

Avatar

Employee
Hello Jörg , it is HttpPut api with the file and put request entity, HttpPut put = new HttpPut(makeHttpUrl(url)); put.setEntity(new FileEntity(new File(diskPath))); try (CloseableHttpResponse response = HttpClientFactory.executeRequest(put)) Thanks Regards

Avatar

Employee Advisor
But what are the URLs you are PUTting onto?

Avatar

Employee
It would be something like PUT aem://<server>:<port>/content/dam/test.xml

Avatar

Employee Advisor
This functionality is provided by the WebDAV Bundle. But you could think about switching to "normal" POST Requests, which would then be handled by the Sling Post Servlet (see documentation there). And of course there is the specialized Assets HTTP API (see https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?l...)