Hello all,

We are working on a CMIS repository server and we have been using chemistry 
0.8.0 for some time.
Recently we have upgraded to the latest version 0.10.0 and we have found some 
unexpected behaviour.

Our goal is to comply with CMIS 1.0, so what I have made is to throw an 
exception in those parts of the code related to CMIS 1.1, eg:

In our class that implements 
org.apache.chemistry.opencmis.commons.definitions.TypeDefinition:
@Override
public TypeMutability getTypeMutability() {
       throw new UnsupportedOperationException("getTypeMutability(): Operation 
not available. CMIS 1.1");
}


My surprise when I try to connect to the server and I get the previous 
exception.
In the class org.apache.chemistry.opencmis.commons.impl.WSConverter about line 
980, we could see:

if (typeDefinition.getTypeMutability() != null) {
TypeMutability typeMutability = typeDefinition.getTypeMutability();

At this point, I suppose you know the version of CMIS implemented by the server,
Is there any way to check the CMIS version before using TypeMutability?

Regards.

Jorge MARTIN CUERVO
[cid:image001.gif@01CCF6D0.4613B970]
European Commission
DG TRADE
Unit A4
CHAR 02/077
B-1049 Brussels/Belgium
+32 2 298 86 27
jorge.martin-cue...@ext.ec.europa.eu<mailto:jorge.martin-cue...@ext.ec.europa.eu>

Reply via email to