chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uwe Geisert <ugeis...@opentext.com>
Subject DotCMIS and property definitions
Date Thu, 06 Feb 2014 09:54:37 GMT
Hi,

Using the DotCMIS client library with AtomPub binding, I get
     ArgumentException("Object type must have property defintions!")
at
     DotCMIS.dll!DotCMIS.Client.Impl.AbstractCmisObject.Initialize(DotCMIS.Client.ISession
session, DotCMIS.Client.IObjectType objectType, DotCMIS.Data.IObjectData objectData, DotCMIS.Client.IOperationContext
context) Line 100      C#
     DotCMIS.dll!DotCMIS.Client.Impl.Folder.Folder(DotCMIS.Client.ISession session, DotCMIS.Client.IObjectType
objectType, DotCMIS.Data.IObjectData objectData, DotCMIS.Client.IOperationContext context)
Line 1074     C#
     DotCMIS.dll!DotCMIS.Client.Impl.ObjectFactory.ConvertObject(DotCMIS.Data.IObjectData
objectData, DotCMIS.Client.IOperationContext context) Line 332        C#
     DotCMIS.dll!DotCMIS.Client.Impl.Session.GetObject(string objectId, DotCMIS.Client.IOperationContext
context) Line 540      C#
     DotCMIS.dll!DotCMIS.Client.Impl.Session.GetObject(DotCMIS.Client.IObjectId objectId,
DotCMIS.Client.IOperationContext context) Line 504    C#
     DotCMIS.dll!DotCMIS.Client.Impl.Session.GetRootFolder(DotCMIS.Client.IOperationContext
context) Line 444   C#
     DotCMIS.dll!DotCMIS.Client.Impl.Session.GetRootFolder() Line 439   C#

I wondered why?
The server's response is okay because clients using the OpenCMIS Java client libs work fine,
also with AtomPub.

I've digged a bit in the code and found the following:

In chemistry-dotcmis-0.5-src\src\binding\converter.cs#341 the property 'Items' of class cmisTypeDefinitionType
is mapped to ITypeDefinition's PropertyDefinitions.

The XMLParser is initialized with this type cmisTypeDefinitionType (chemistry-dotcmis-0.5-src\src\binding\atompub\atompub-parser.cs#44).
Thus the 'Items' are initialized with an 'items' tag in the XML response for getTypeDefinition().
But as you will know and also can see e.g. in http://docs.oasis-open.org/cmis/CMIS/v1.1/cs01/examples/atompub/getTypeDefinition-response.log,
there is no such tag.
The property definitions are "flatly" in the type.

Could you please clarify if this is a bug in DotCMIS or is it a misunderstanding on my side?

Unfortunately I see no work-around, because DotCMIS does not support the browser-binding,
and WS-binding requires SSL, which is not acceptable in development phase.

Thanks
Uwe

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message