i18n dictionary call giving 404 on Production Environment
Hi AEM Community,
We are using i18n data dictionary in our project wherein the dictionary are hosted at the path - /apps/projName/i18n.
This node has 3 files - en-US.json and en_us.json.
On Dev and Stage environment the json is loading correctly.
On Production environment, we are getting the below errors -
GET /libs/cq/i18n/dict.en_us.json 404
GET /libs/cq/i18n/dict.en-US.json 404
If we check the error logs, we get the below entries -
06.12.2022 07:15:18.541 [cm-pxyzxyz-eabcxyz-aem-publish-5f64d868f6-hjnk6] *INFO* [163.116.195.116 [1670310918538] GET /libs/cq/i18n/dict.en_us.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /content/brandsA/us/en/libs/cq/i18n/dict.en_us.json not found
As you can see the path "/content/brandsA/us/en" is appended to the original GET Request.
The request path "/libs/cq/i18n/dict" is bound to below servlet -
ServletResource, servlet=com.adobe.granite.i18n.impl.ResourceBundleExportServlet, path=/libs/cq/i18n/dict
Hence, there are 2 queries for this error -
1. Why is SlingRequestProcessorImpl showing resource path "/content/brandsA/us/en " added to the original request path ?
2. Why are Stage and Production environments responding differently when the artifacts of Stage are what is deployed to Production in AEMaaCS ?
@arunpatidar, @joerghoh, @b_sravan, @kautuk_sahni, @markusbullaadobe, @mohit_kbansal, @bimmiso, @briankasingli
Thanks,
Rohan Garg