Skip to main content
Level 4
October 20, 2023
Solved

Error 422: Unprocessable content

Servlet POST call, getting error code 422: Unprocessable content.

 

Context: I added a resources folder in my core folder. 

Question: Do I need to make any filter changes in dispatcher or any other file to allow access to that folder while POST call?

 

Folder structure for resources folder is - 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aanchal-sikka
aanchal-sikkaAccepted solution
Community Advisor
October 20, 2023

Thanks for the clarification @goyalkritika .

 

You need not whitelist on dispatcher. Dispatcher doesn't even know about it.

 

If the services inside this bundle are able to access the files in resources folder. Thats enough.

If it works on local, should work on server too

 

Aanchal Sikka

3 replies

aanchal-sikka
Community Advisor
Community Advisor
October 20, 2023

Hello @goyalkritika 

 

Core is a bundle in AEM. Trying to understand, why would a POST call, put anything in the resources folder of Core bundle.

Translate
Aanchal Sikka
Level 4
October 20, 2023

It is a read operation on resources folder, and not a write one.

Translate
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
October 20, 2023

Thanks for the clarification @goyalkritika .

 

You need not whitelist on dispatcher. Dispatcher doesn't even know about it.

 

If the services inside this bundle are able to access the files in resources folder. Thats enough.

If it works on local, should work on server too

 

Translate
Aanchal Sikka