Page 1 of 1

Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

PostPosted:Fri Mar 16, 2018 9:07 am
by PSHREYASHOLLA
Hi,

We were using OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties) API to set metadata to a document in OpenKM communtity version 6.3.4 which used to get deployed on tomcat-7.0.61.

Now if we install latest community version 6.3.4, installer deploys OpenKM on tomcat-8.5.24. The API OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties) does not set the metadata to a document directly.

It expects to first add a group to the document using OKMWebservices.addGroup(String nodeId,String grpName) and then call OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties).

Please let us know if the functionality changed?

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

PostPosted:Sat Mar 17, 2018 8:16 am
by jllort
There's a bug in version 6.3.5 you must upgrade to version 6.3.6 ( that's the reason why in the same week we make both releases, we detected was an error in the OpenKM core introduced by mistake into 6.3.5 what does not allow change or add metadata and for it we released inmediatelly version 6.3.6 )

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

PostPosted:Tue Mar 20, 2018 4:46 am
by PSHREYASHOLLA
Hi Jllort,

Even after deploying 6.3.6 CE, I am facing the same issue.

The API OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties) does not set the metadata to a document directly.
Getting ,
Code: Select all
Property group not assigned to this node
	at com.openkm.sdk4j.impl.PropertyGroupImpl.setPropertyGroupPropertiesSimple(PropertyGroupImpl.java:509)
	at com.openkm.sdk4j.OKMWebservice10.setPropertyGroupPropertiesSimple(OKMWebservice10.java:665)
It expects to first add a group to the document using OKMWebservices.addGroup(String nodeId,String grpName) and then call OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties).

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

PostPosted:Thu Mar 22, 2018 6:39 am
by PSHREYASHOLLA
Hi Jllort,
As mentioned Even after deploying 6.3.6 CE, I am facing the same issue.

Please suggest me the way forward.

Thanks And Regards,
Shreyas Holla P.

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

PostPosted:Fri Mar 23, 2018 6:26 pm
by jllort
First must add the group and then you are able to set properties, as you indicated.

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

PostPosted:Tue Mar 27, 2018 4:30 am
by PSHREYASHOLLA
Hi,

Was this introduced in the latest version? As to add the group first before setting properties was not mandatory in the older releases. This will create a problem as we cannot certify our integration with a particular version.

For this One more API call needs to be done and the same will hit performance :cry:

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

PostPosted:Wed Mar 28, 2018 3:30 pm
by jllort
Please add in the issue at https://github.com/openkm/document-mana ... tem/issues and we will investigate what had happened. Please refer to this post in the issue.

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

PostPosted:Thu Mar 29, 2018 4:56 am
by PSHREYASHOLLA

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

PostPosted:Tue May 15, 2018 4:28 pm
by sochoa
Hello.

The issue has already been resolved and will be included in version 6.3.7

https://github.com/openkm/document-mana ... em/pull/68

regards