Hello,
A while ago, we conducted a proof of concept (POC) using WKND, successfully logging into the WKND site on publish using a username and password. However, it has abruptly ceased functioning and now returns a 204 No Content error.
Only log observed in dispatcher is
"POST /system/sling/login/j_security_check HTTP/1.1" 204 - "https://publish-p47369-e228224.adobeaemcloud.com/content/wknd/language-masters/en/magazine.html"
Following config us available on the dispatcher
# Allow j_security check for login
/0103 { /type "allow" /method "POST" /url "/system/sling/login/j_security_check" }
What might we be overlooking?
Solved! Go to Solution.
I got to know from wknd tech team that the request was hitting the line https://github.com/adobe/aem-guides-wknd/blob/main/dispatcher/src/conf.d/available_vhosts/wknd.vhost...
RewriteRule "^(.*)" - [R=204,L]
I got to know that this will be addressed in the upcoming release.
Are you storing user credentials in publisher instance?
Thanks
@aanchal-sikka did you find a resolution to this issue? I'm also facing the same error with wknd code deployed on AEM as a cloud. One interesting observation is when I trigger the same post request through Postman /system/sling/login/j_security_check, the request does reach AEM publish and I get a 200OK with site content served
204 No Content response indicates that the server processed the request successfully but has no content to send back. This is often used for actions that modify data without returning a specific payload. In this case, it suggests that the login attempt itself might have gone through, but the expected response (e.g., a redirect or user session information) is missing. Some potential causes and solutions to explore:
Authentication Mechanism:
Dispatcher Caching:
WKND Integration:
Content Path:
Cross-Origin Resource Sharing (CORS):
/0103
block) and adjust as needed.Views
Replies
Total Likes
HI @aanchal-sikka
Do you see any error in the log?
Do you have sticky session if you are using multi-pub setup?
Seems like issue is due to logout/not having valid session.
There is an issue with aem login specifically in publish as soon as we done with the ui.config build in publish instance. This issue is with Adobe Experience Manager 2023.12.14697.20231215T125030Z-231200 AEM instance
The issue is with com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformerFactory.cfg.json configuration on line
"linkcheckertransformer.stripHtmltExtension": true
@aanchal-sikka Were you able to fix this?
Views
Replies
Total Likes
I got to know from wknd tech team that the request was hitting the line https://github.com/adobe/aem-guides-wknd/blob/main/dispatcher/src/conf.d/available_vhosts/wknd.vhost...
RewriteRule "^(.*)" - [R=204,L]
I got to know that this will be addressed in the upcoming release.
Thanks for sharing @MadhuGubby .