5 Replies Latest reply on Jul 10, 2013 8:23 AM by dcollie

    Granite User photo upload failing

    trench999 Level 1

      We are trying to upload user images using the Granite Operations | Users form.  We can select an image, but the site throws a 500 error and the logs are of no help.  We have tried with various image types and sizes, but have the same outcome.

       

      The error is thrown on a POST to:

       

      http:/host:4502/home/users/a/admin.rw.userprops.html

        • 1. Re: Granite User photo upload failing
          dcollie Adobe Employee

          Which CQ version?  What is the exception (if any) in the logs?  What information does a HTTP trace give (e.g. Charles HTTP Proxy)?

          • 2. Re: Granite User photo upload failing
            trench999 Level 1

            AEM 5.6.1  Standard - fresh install

             

            Log

            09.07.2013 08:17:34.176 *INFO* [171.65.70.145 [1373383054172] GET /home/users/a/admin/profile/photos/primary/image HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /home/users/a/admin/profile/photos/primary/image not found

            09.07.2013 08:17:49.486 *ERROR* [171.65.70.145 [1373383069483] POST /home/users/a/admin.rw.userprops.html HTTP/1.1] com.adobe.granite.security.user.internal.servlets.AuthorizableServlet Error while processing AuthorizableServlet POST javax.jcr.RepositoryException: The administrator user cannot be disabled.

                      at org.apache.jackrabbit.core.security.user.UserImpl.disable(UserImpl.java:134)

                      at com.adobe.granite.security.user.internal.servlets.AuthorizableServlet.update(Authorizable Servlet.java:813)

                      at com.adobe.granite.security.user.internal.servlets.AuthorizableServlet.doPost(Authorizable Servlet.java:672)

                      at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.ja va:148)

                      at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:344)

                      at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:375)

                      at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:508)

                      at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

                      at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:146)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:356 )

                      at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:168)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java :96)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:254)

                      at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

                      at com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl.doFilter(AuthoringUIModeServiceImpl.j ava:301)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:290)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:64)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:221)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:74)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.adobe.cq.history.impl.HistoryRequestFilter.doFilter(HistoryRequestFilter.java:107)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter.doFilter(CanvasPageDeleteRequ estFilter.java:88)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)

                      at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                      at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:151)

                      at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206)

                      at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)

                      at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)

                      at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)

                      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)

                      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                      at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)

                      at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                      at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                      at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:263)

                      at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                      at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                      at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55)

                      at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                      at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                      at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)

                      at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                      at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                      at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )

                      at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                      at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                      at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)

                      at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)

                      at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

                      at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)

                      at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:321)

                      at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:340)

                      at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:383)

                      at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:335)

                      at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644)

                      at java.lang.Thread.run(Thread.java:722)

            • 3. Re: Granite User photo upload failing
              dcollie Adobe Employee

              I also tried changing the "admin" user with a picture to get the same exception.   I am not sure why you are trying to change the admin user, this is a very special user and should generally  not be changed other than password.   I was able to successfully change the avatar of any other user.   Is your problem only with "admin"?   And why are you trying to add a picture anyway?

              • 4. Re: Granite User photo upload failing
                trench999 Level 1

                The reason for the image change is not important.  This is something we were trying to do and it threw an error.  It needs to have error handling that is user friendly if in fact one cannot change meta data elements of the admin or other type of users.  I also see that some of the default users get a 404 for the default avatar.  Is this expected?

                • 5. Re: Granite User photo upload failing
                  dcollie Adobe Employee

                  Your reproduction steps still are not clear (e.g. what user are you trying to update, what user are you logged in with, what instance are you on, what page are you browsing when the avatar 404 comes) . 

                   

                  From the URL that you are accessing, I assume you are using the Author instance.   In the case of some users getting a 404 for their Avatar, that is most likely correct (and intentional) if you continue to browse on the Author but the user you mention does not have the right permissions.   I would suggest to log a Daycare ticket with comprehensive steps that you are following if you continue to think this is a product problem.  

                   

                  You will not be able to update the "admin" user as it is not a standard user in the repository.