Hi
I'm trying to access system console through curl : curl -L -i -X POST http://admin:abc@llocalhost:4503/system/console/bundles.jsp but it throws 500 internal server
instead " 401 " but in access and request log it's showing 200
==> access.log <==
160.46.120.57 - 29/Sep/2017:12:11:03 +0200 "POST /system/console/bundles.jsp HTTP/1.1" 200 - "-" "curl/7.19.7 (x86_64-suse-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8j zlib/1.2.3 libidn/1.10"
==> request.log <==
29/Sep/2017:12:11:03 +0200 [107753] -> POST /system/console/bundles.jsp HTTP/1.1
29/Sep/2017:12:11:03 +0200 [107753] <- 200 - 8ms
Can some one suggest any pointers why this happens .
29.09.2017 12:23:58.619 *WARN* [] org.eclipse.jetty.servlet.ServletHandler /system/console/bundles.jsp
org.apache.sling.api.auth.NoAuthenticationHandlerException: null
Views
Replies
Total Likes
Can you access the System console via the web interface?
Views
Replies
Total Likes
No it throws "500" I can't acess directly in Web Interface too of system/console/bundles ,
but if we log in first to crx/de and log in then system/console/bundles is also working
Views
Replies
Total Likes
Obviously , thats how it works in the web. You have to login to the web first and then you have to navigate to system/console.... And for CURL, as far as I could remember you have to provide the username and password in the commands .. Are you doing the same ?
Views
Replies
Total Likes
Hi Veena
Yes , i'm providing the credentials in CURL
curl -L -i -X POST curl -L -i -X POST http://admin:abc@llocalhost:4503/system/console/bundles.jsp
Views
Replies
Total Likes
is that double l in localhost by mistake ??
Views
Replies
Total Likes
Hi Veena
Yeah , its just typo error
Views
Replies
Total Likes
.... ok.. we may need some more CURL expert advice here. I am not so expert in this one..
Views
Replies
Total Likes
Vinay,
Are you using the commands correctly ? I have not used curl that frequently, but I think this can help http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/
Thanks
Veena
Views
Replies
Total Likes
Yeah ! i have checked the command and it's fine .
Views
Replies
Total Likes
I tried your command and getting 401..
Views
Replies
Total Likes