Problem accessing /system/console/configMgr/com.adobe.granite.auth.saml.SamlAuthenticationHandler | Community
Skip to main content
August 3, 2018
Question

Problem accessing /system/console/configMgr/com.adobe.granite.auth.saml.SamlAuthenticationHandler

  • August 3, 2018
  • 5 replies
  • 1851 views

Hi everybody.

So we have this script that is run when we deploy aem. But at some point it fails when it tries to do this :

curl -fsu $credential http://$host:$port/system/console/configMgr/com.adobe.granite.auth.saml.SamlAuthenticationHandler \

    -d apply=true \

    -d factoryPid=com.adobe.granite.auth.saml.SamlAuthenticationHandler \

    -d action=ajaxConfigManager \

    -d idpUrl=$idpUrl \

    -d idpCertAlias=$idpAlias \

    -d idpHttpRedirect=true \

    -d serviceProviderEntityId=logon_identifier \

    -d spPrivateKeyAlias=key \

    -d keyStorePassword=$password \

    -d groupMembershipAttribute=http://schemas.xmlsoap.org/claims/Group \

    -d handleLogout=true \

    -d logoutUrl=$idpUrl

And i'm getting this error

<html>

<head>

<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>

<title>Error 500 </title>

</head>

<body>

<h2>HTTP ERROR: 500</h2>

<p>Problem accessing /system/console/configMgr/com.adobe.granite.auth.saml.SamlAuthenticationHandler. Reason:

<pre>    java.lang.ClassCastException: org.apache.sling.i18n.impl.I18NFilter$I18NHttpServletRequest cannot be cast to org.apache.sling.api.SlingHttpServletRequest</pre></p>

<hr /><i><small>Powered by Jetty://</small></i>

</body>

</html>

Any ideas as to why this is happening?

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

smacdonald2008
August 3, 2018

Can you manually start AEM?

aantonicaAuthor
August 6, 2018

no, i can not. multiple things are set up before aem starts and it's all done by scripts.

Peter_Puzanovs
Community Advisor
Community Advisor
August 6, 2018

Dear Sir,

Have a read through this answer: cURL command to update service config property

It details how you should record your curl requests.

My expectation is that you do not have correct parameters sent with your request. Therefore, OSGi config manager fails.

Regards,

Peter

aantonicaAuthor
August 6, 2018

If you're reffering at the way the parameters are fed to the request:  https://curl.haxx.se/docs/manpage.html#-d

it's very legal.

joerghoh
Adobe Employee
Adobe Employee
August 6, 2018

This exceptions seem to be caused at around [1] (you might want to choose the right version as a tag in github); I wonder why the cast fails, because at least in trunk the type check is done.

Can you provide the version of the sling i18n bundle you are using?

Jörg

[1] sling-org-apache-sling-i18n/I18NFilter.java at master · apache/sling-org-apache-sling-i18n · GitHub