*** The wcm.io Project is closing down this JIRA Instance in favor of GitHub issues. *** Please use the corresponding GitHub projects to report issues - or the mailing list for general discussion.

wcmio-content-package-maven-plugin is using the vault user for checking OSGi bundle status

Description

In WTOOL-61, a differentation between the users used for deploying a content package, and the users used for the OSGi console was made.

However, upon testing this feature, it seems I overlooked something: The wcmio-content-package-maven-plugin is doing bundle status checks with the same user that is used to deploy the packages:

[INFO] --- wcmio-content-package-maven-plugin:1.7.6:install (default-cli) @ com.sligro.website.cms.complete --- [INFO] Check bundle activation status... [INFO] ERROR: HTTP call to http://publish.localhost.com:4503/system/console/bundles/.json failed with status 500 Server Error [INFO] <html> [INFO] <head> [INFO] <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> [INFO] <title>Error 500 Server Error</title> [INFO] </head> [INFO] <body><h2>HTTP ERROR 500</h2> [INFO] <p>Problem accessing /system/console/bundles/.json. Reason: [INFO] <pre> Server Error</pre></p><h3>Caused by:</h3><pre>org.apache.sling.api.auth.NoAuthenticationHandlerException [INFO] at org.apache.sling.auth.core.impl.SlingAuthenticator.login(SlingAuthenticator.java:588) [INFO] at org.apache.sling.extensions.webconsolesecurityprovider.internal.SlingWebConsoleSecurityProvider2.authenticate(SlingWebConsoleSecurityProvider2.java:91) [INFO] at org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext.handleSecurity(OsgiManagerHttpContext.java:103) [INFO] at org.apache.felix.http.base.internal.service.ServletContextImpl.handleSecurity(ServletContextImpl.java:406) [INFO] at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:58) [INFO] at org.apache.felix.http.base.internal.dispatch.Dispatcher$1.doFilter(Dispatcher.java:146) [INFO] at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager$2.doFilter(WhiteboardManager.java:1002) [INFO] at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:326) [INFO] at org.apache.felix.http.base.internal.handler.PreprocessorHandler.handle(PreprocessorHandler.java:136) [INFO] at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager$2.doFilter(WhiteboardManager.java:1008) [INFO] at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:97) [INFO] at org.apache.felix.http.base.internal.handler.PreprocessorHandler.handle(PreprocessorHandler.java:136) [INFO] at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager$2.doFilter(WhiteboardManager.java:1008) [INFO] at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager.invokePreprocessors(WhiteboardManager.java:1012) [INFO] at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:91) [INFO] at org.apache.felix.http.base.internal.dispatch.DispatcherServlet.service(DispatcherServlet.java:49) [INFO] at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [INFO] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873) [INFO] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) [INFO] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) [INFO] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1701) [INFO] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) [INFO] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345) [INFO] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) [INFO] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) [INFO] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1668) [INFO] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) [INFO] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) [INFO] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) [INFO] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220) [INFO] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [INFO] at org.eclipse.jetty.server.Server.handle(Server.java:502) [INFO] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370) [INFO] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267) [INFO] at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) [INFO] at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [INFO] at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [INFO] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [INFO] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [INFO] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [INFO] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [INFO] at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [INFO] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) [INFO] at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) [INFO] at java.lang.Thread.run(Thread.java:748) [INFO] </pre> [INFO] [INFO] </body> [INFO] </html> [INFO] [INFO] --------------- [INFO] HTTP call failed, try again (1/24) after 5 second(s)... [INFO] ERROR: HTTP call to http://publish.localhost.com:4503/system/console/bundles/.json failed with status 500 Server Error [INFO] <html> [INFO] <head> [INFO] <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> [INFO] <title>Error 500 Server Error</title> [INFO] </head> [INFO] <body><h2>HTTP ERROR 500</h2> [INFO] <p>Problem accessing /system/console/bundles/.json. Reason: [INFO] <pre> Server Error</pre></p><h3>Caused by:</h3><pre>org.apache.sling.api.auth.NoAuthenticationHandlerException [INFO] at org.apache.sling.auth.core.impl.SlingAuthenticator.login(SlingAuthenticator.java:588) [INFO] at org.apache.sling.extensions.webconsolesecurityprovider.internal.SlingWebConsoleSecurityProvider2.authenticate(SlingWebConsoleSecurityProvider2.java:91) [INFO] at org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext.handleSecurity(OsgiManagerHttpContext.java:103) [INFO] at org.apache.felix.http.base.internal.service.ServletContextImpl.handleSecurity(ServletContextImpl.java:406)

I believe this would also require parameters to the content package maven plugin, to also use a different user for the OSGi console checks.

Activity

Show:

Henry Kuijpers May 7, 2020 at 9:15 AM

For some reason I cannot get this working, it’s probably due to a conflict with our internal Nexus that is set up as a mirror of everything.

The changes do look good however, so once it is released I should be able to test it completely and I think it will work fine.

Stefan Seifert May 7, 2020 at 8:44 AM

Henry Kuijpers May 7, 2020 at 8:33 AM

Where can I find the published snapshot?

Stefan Seifert May 5, 2020 at 9:00 PM

you're right - please give it a try with aem-global-parent 1.4.9-SNAPSHOT

Fixed

Details

Assignee

Reporter

Components

Priority

Created April 30, 2020 at 8:43 PM
Updated May 7, 2020 at 9:15 AM
Resolved May 5, 2020 at 9:00 PM