Expand my Community achievements bar.

SOLVED

Error 422: Unprocessable content

Avatar

Level 5

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 - 

goyalkritika_0-1697780880662.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

3 Replies

Avatar

Community Advisor

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.


Aanchal Sikka

Avatar

Level 5

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

Avatar

Correct answer by
Community Advisor

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