Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

\/system/console/bundles.jsp throws org.apache.sling.api.auth.NoAuthenticationHandlerException: null

Avatar

Former Community Member

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

10 Replies

Avatar

Level 10

Can you access the System console via the web interface?

Avatar

Former Community Member

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

Avatar

Community Advisor

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 ?

Avatar

Former Community Member

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

Avatar

Community Advisor

is that double l in localhost by mistake ??

Avatar

Community Advisor

.... ok.. we may need some more CURL expert advice here. I am not so expert in this one..

Avatar

Community Advisor

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

Avatar

Level 7

I tried your command and getting 401..