Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20507

Some documents with special characters cannot be indexed by solr6

    Details

      Description

      [Description]

      When uploading certain files to alfresco which have special characters in their filename, search services (solr6) cannot index the document.

      [Steps to reproduce]

      • Install alfresco 5.2.3 using the installer
      • Install alfresco search services 1.3.0.1 using the latest distribution
      • Configure alfresco 5.2.3 to use search services 1.3.0.1
      • Start alfresco and search services 
      • Login to share as the admin user

      [Expected Behaviour]

      Files are uploaded and eventually indexed

      [Observed Behaviour]

      Files are uploaded but never indexed

      [Analysis to date]

      Looking at the search services logs it can be seen that the files uploaded fail to index with the error below:

       

      WARN (SolrTrackingPool-workspace-SpacesStore-2-MetadataTracker-3) [ ] o.a.s.SolrInformationServer Node index failed and skipped for 1353899 in Tx 807555 org.json.JSONException: Illegal escape. at 3636 [character 255 line 78] at org.json.JSONTokener.syntaxError(JSONTokener.java:433) at org.json.JSONTokener.nextString(JSONTokener.java:290) at org.json.JSONTokener.nextValue(JSONTokener.java:361) at org.json.JSONArray.<init>(JSONArray.java:116) at org.json.JSONTokener.nextValue(JSONTokener.java:367) at org.json.JSONObject.<init>(JSONObject.java:215) at org.json.JSONTokener.nextValue(JSONTokener.java:364) at org.json.JSONArray.<init>(JSONArray.java:116) at org.json.JSONTokener.nextValue(JSONTokener.java:367) at org.json.JSONObject.<init>(JSONObject.java:215) at org.alfresco.solr.client.SOLRAPIClient.getNodesMetaData(SOLRAPIClient.java:875) at org.alfresco.solr.SolrInformationServer.indexNode(SolrInformationServer.java:1919) at org.alfresco.solr.SolrInformationServer.indexNodes(SolrInformationServer.java:2658) at org.alfresco.solr.tracker.MetadataTracker$NodeIndexWorkerRunnable.doWork(MetadataTracker.java:882) at org.alfresco.solr.tracker.AbstractWorkerRunnable.run(AbstractWorkerRunnable.java:45) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) 2019-04-03 07:33:50.106 ERROR (SolrTrackingPool-workspace-SpacesStore-1-MetadataTracker-3) [ ] o.a.s.SolrInformationServer SolrInformationServer problem org.json.JSONException: Illegal escape. at 3636 [character 255 line 78] at org.json.JSONTokener.syntaxError(JSONTokener.java:433) at org.json.JSONTokener.nextString(JSONTokener.java:290) at org.json.JSONTokener.nextValue(JSONTokener.java:361) at org.json.JSONArray.<init>(JSONArray.java:116) at org.json.JSONTokener.nextValue(JSONTokener.java:367) at org.json.JSONObject.<init>(JSONObject.java:215) at org.json.JSONTokener.nextValue(JSONTokener.java:364) at org.json.JSONArray.<init>(JSONArray.java:116) at org.json.JSONTokener.nextValue(JSONTokener.java:367) at org.json.JSONObject.<init>(JSONObject.java:215) at org.alfresco.solr.client.SOLRAPIClient.getNodesMetaData(SOLRAPIClient.java:875) at org.alfresco.solr.SolrInformationServer.indexNodes(SolrInformationServer.java:2562) at org.alfresco.solr.tracker.MetadataTracker$NodeIndexWorkerRunnable.doWork(MetadataTracker.java:882) at org.alfresco.solr.tracker.AbstractWorkerRunnable.run(AbstractWorkerRunnable.java:45) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748)

       

      When we test the same alfresco version but using solr4 the same files are indexed without a problem so it might be a regression issue.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  jportillo Jose Portillo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel