Hi Baptiste,

The patch is not complete; other changes need to be made as well to fix the
ticket.  But if you are using trunk, you do not need to apply any patch;
it's already committed.

Thanks,
Karl



On Fri, Aug 8, 2014 at 7:36 AM, Baptiste Berthier <[email protected]>
wrote:

>
> Hi,
>
> I follow the answer of Karl Wright mentionned at
> https://issues.apache.org/jira/i#browse/CONNECTORS-1002 with this content
> :
>
> So I understand that the internal metadata does not make it through from
> Alfresco into CMIS.
>
> The CMIS connector working against an Alfresco repository depends
> completely on Alfresco's implementation of CMIS. It is not clear how
> complete Alfresco's implementation is. The CMIS connector code seems like
> it would definitely pick up most properties, PROVIDED they are explicitly
> mentioned in the CMIS query you provide:
>
> //properties
>
> List<Property<?>> properties = document.getProperties();
>
> String id = StringUtils.EMPTY;
>
> for (Property<?> property : properties) {
>
> String propertyId = property.getId();
>
> if(CmisRepositoryConnectorUtils.existsInSelectClause(cmisQuery,
> propertyId)){
>
> if (propertyId.endsWith(Constants.PARAM_OBJECT_ID))
>
> id = (String) property.getValue();
>
>  This is from roughly line 1129 of CMISRepositoryConnector.java. If you
> can't figure out what is going on, you can modify this code to add
> System.out.println() statements that should shed some light on the problem.
>
> Please also note that the CMIS connector may not be resilient against
> changes to the query string. To be sure, you may want to delete your old
> job and create a new job with the changed query string, to be sure
> everything that needs to be recrawled actually gets reprocessed. I will
> create a different ticket to cover that issue.
>
> I have modified the code in ManifoldCF but when I compile with ant in the
> folder apache-manifoldcf-1.6.1\connector\cmis, I have the following error
> in
> CMISRepositoryConnector.java :
>
> "error : cannot find symbol
>
> [javac]
> if(CmisRepositoryConnectorUtils.existsInSelectClause(cmisQuery,
> propertyId)){
>
> [javac] symbol : variable cmisQuery
>
> [javac] location : class CmisRepositoryConnector
>
> [javac] 1 error
>
> Build failed
>
> I don't know what I have to do to correct this error which appears during
> compilation.
>
> Thanks for your answer
>
> Baptiste
>
>

Reply via email to