chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.-M. Kubek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-969) OpenCmis Bridge : NPA with child.getPaths()
Date Sat, 06 Feb 2016 14:57:39 GMT
J.-M. Kubek created CMIS-969:
--------------------------------

             Summary: OpenCmis Bridge :  NPA with child.getPaths()
                 Key: CMIS-969
                 URL: https://issues.apache.org/jira/browse/CMIS-969
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-bridge
    Affects Versions: OpenCMIS 0.13.0
         Environment: Client 0.13.0  / bridge 0.13.0
            Reporter: J.-M. Kubek
            Priority: Minor


Hi,

The following code raises an NPA when using opencmls bridge  with atompub binding. The bridge
is using  the stock SimpleForwardingCmisService.

There is no problem when connecting directly to the target cmis service (nuxeo 7.10).

public void BridgeNPA () {
		
		Folder rootFolder = directCmisSession.getRootFolder();
		Folder subFolder = FileUtils.createFolder(rootFolder, "TestNPA", "cmis:folder");
		FileUtils.createTextDocument(subFolder.getId(), "test.txt", "dummy content", "cmis:document",
VersioningState.MAJOR, directCmisSession);
		cmisSession.clear();
		
		OperationContext opContext =  OperationContextUtils.createMaximumOperationContext();
		ItemIterable<CmisObject> childrenWithOpContext = subFolder.getChildren(opContext);
		for (CmisObject child: childrenWithOpContext) {
			if (child instanceof Document){
				((Document) child).getPaths();
			}
		}
		/* The same without opContext
		ItemIterable<CmisObject> children = subFolder.getChildren();
		
		for (CmisObject child: children) {
			if (child instanceof Document){
				((Document) child).getPaths();
			}
		}
		*/
	}



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

Mime
View raw message