I can POST, PUT, and DELETE in the postman using Asset API on my localhost.
However, I am able to POST the asset from the postman to the Author Dev server using Asset API. PUT and DELETE methods, on the other hand, return 501 status codes and a NOT implemented error.
Solved! Go to Solution.
@kbitra1998 did you configure Filter Methods in Apache Sling Referrer Filter configuration on Author Dev server where you're testing? Please compare the Filters section with your local.
Hope this helps.
Can you check
Yes, we have allowed the PUT and DELETE request in CSRF also.
To track the request, I am not able to see the PUT or DELETE request in access.log or request.log
But I can see the POST request in access.log.
Hi @Vijayalakshmi_S ,
I apologize for the delay in replying.
Yes, it is behind the dispatcher.
So far, I've made the following observations.
1. When we use the POST API, we get a 201 created status in the response header.
I was also able to see requests in the request log as well. I have attached the screenshot below for your reference
2. However, when we use the PUT/DELETE API, we get a 501 Not Implemented status in the response header.
I am unable to see requests in the request log as well. I have attached the screenshot below for your reference
As far as I am aware, We're simply utilizing Akamai for the publish instance, not the author instance.
I hope my observations are useful to you.
No worries, Thanks for the inputs.
Can you confirm for sure Akamai is not utilized for Author and yet to see the Server as AkamaiGHost (Akamai Global Host) in Response ?
I think it is utilized and PUT/DELETE is not allowed at Akamai level (It is disabled by default)
Hi @kbitra1998 ,
In general if the Author is connected with Dispatcher and project uses CDN, sitemap.xml also get behind it.
Can you confirm with any other url also if that the same behavior you are seeing.
Hi @tb1687196 ,
My use case is that I want to create an asset in the dam folder using asset API, and sitemap.xml is merely name conservation. I can create the asset with a POST request, but I can't use PUT/DELETE requests to update or delete assets in the dam, even though they operate properly in my local host.