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

New UI makes it impossible to add certificates to connections with certificate stores

    XMLWordPrintableJSON

Details

    • Important

    Description

      (1) Create a Sharepoint repository connection
      (2) Click on the Server tab
      (3) Try to add a certificate by finding a valid cert and clicking the "Add" button

      A 500 error is returned. The exception trace looks like this:

      Caused by: java.lang.NullPointerException
              at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106)
              at org.apache.manifoldcf.crawler.connectors.sharepoint.SharePointReposit
      ory.processConfigurationPost(SharePointRepository.java:2359)
              at org.apache.manifoldcf.core.interfaces.ConnectorFactory.processThisCon
      figurationPost(ConnectorFactory.java:95)
              at org.apache.manifoldcf.crawler.interfaces.RepositoryConnectorFactory.p
      rocessConfigurationPost(RepositoryConnectorFactory.java:163)
              at org.apache.jsp.execute_jsp._jspService(execute_jsp.java:313)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
      .java:388)
      

      It looks like the rendering flow is no longer the same, and therefore the certificate store is not loaded into the local variable that the processConfigurationPost() method is expecting to find it in.

      The connector code can be rewritten for the connectors where this happens but frankly this will cause many of the connector UI's out there to break badly. Is there another way to address this?

      Attachments

        1. CONNECTORS-1423.patch
          1.0 kB
          Karl Wright
        2. Sharepoint_Certificate.png
          106 kB
          Kishore Kumar
        3. WebCrawler_Certificate_Tab.png
          68 kB
          Kishore Kumar

        Activity

          People

            kishorekumar Kishore Kumar
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: