Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-549

Wrong credentials not correctly managed by CMIS Connector

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • ManifoldCF 0.6
    • ManifoldCF 1.0
    • CMIS connector
    • None

    Description

      If you try to register a CMIS Connection with wrong credentials the CmisPermissionDeniedException is not managed, the UI remain without any output and it returns the following exception in the log file:

      84334 [qtp1595252236-192] WARN org.eclipse.jetty.servlet.ServletHandler - /mcf-crawler-ui/execute.jsp
      org.apache.jasper.JasperException: An exception occurred processing JSP page /viewconnection.jsp at line 108
      
      105: 			{
      106: 				try
      107: 				{
      108: 					connectionStatus = c.check();
      109: 				}
      110: 				finally
      111: 				{
      
      
      Stacktrace:
      	at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:288)
      	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)
      	at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:709)
      	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:680)
      	at org.apache.jsp.execute_jsp._jspService(execute_jsp.java:392)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
      	at org.eclipse.jetty.server.Server.handle(Server.java:349)
      	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
      	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)
      	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.ClassCastException: org.apache.chemistry.opencmis.commons.exceptions.CmisPermissionDeniedException cannot be cast to java.lang.Error
      	at org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.getSession(CmisRepositoryConnector.java:437)
      	at org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.checkConnection(CmisRepositoryConnector.java:517)
      	at org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector.check(CmisRepositoryConnector.java:374)
      	at org.apache.jsp.viewconnection_jsp._jspService(viewconnection_jsp.java:331)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
      	... 47 more
      
      

      Attachments

        Activity

          No work has yet been logged on this issue.

          People

            piergiorgiolucidi@gmail.com Piergiorgio Lucidi
            piergiorgiolucidi@gmail.com Piergiorgio Lucidi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: