Highlighted

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

vinaykumart6335

29-09-2017

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

Replies

Highlighted

vinaykumart6335

01-10-2017

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

Highlighted

Veena_Vikram

MVP

01-10-2017

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 ?

Highlighted

vinaykumart6335

01-10-2017

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