manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONNECTORS-1077) Add activity logging for decision and exception events across all connectors
Date Tue, 21 Oct 2014 09:30:34 GMT

    [ https://issues.apache.org/jira/browse/CONNECTORS-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178177#comment-14178177
] 

Karl Wright commented on CONNECTORS-1077:
-----------------------------------------

Hi Muhammed,

{code}
@@ -547,8 +550,11 @@ public class HttpPoster
       // Reject documents that have security we don't know how to deal with in the Solr plugin!!
 Only safe thing to do.
       if (!aclType.equals(RepositoryDocument.SECURITY_TYPE_DOCUMENT) &&
         !aclType.equals(RepositoryDocument.SECURITY_TYPE_SHARE) &&
-        !aclType.startsWith(RepositoryDocument.SECURITY_TYPE_PARENT))
-        return false;
+        !aclType.startsWith(RepositoryDocument.SECURITY_TYPE_PARENT)){
+          activities.recordActivity(null,SolrConnector.INGEST_ACTIVITY,null,documentURI,activities.UNKNOWN_SECURITY,"Solr
connector rejected document that has security info which is unknown.");
+          return false;
+      }
+
     }
{code}
You probably want to print the security type in the description:

{code}
"Solr connector rejected document that has security info which Solr does not recognize: "+aclType
{code}

Thanks!

> Add activity logging for decision and exception events across all connectors
> ----------------------------------------------------------------------------
>
>                 Key: CONNECTORS-1077
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1077
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Alfresco connector
>    Affects Versions: ManifoldCF 2.0
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 2.0
>
>         Attachments: Example.patch
>
>
> Many document skip decisions or transient exceptions are only logged, and are not recorded
as history events.  This makes it necessary upon occasion to refer to the manifoldcf log for
basic diagnosis.  We should record activity events for most decisions and exceptions in the
history.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message