Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
PSHREYASHOLLA
Senior Boarder
Senior Boarder
Posts: 47
Joined: Thu Dec 22, 2016 4:18 am

Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

Post by PSHREYASHOLLA » Fri Mar 16, 2018 9:07 am

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?

jllort
Moderator
Moderator
Posts: 10267
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

Post by jllort » Sat Mar 17, 2018 8:16 am

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 )

PSHREYASHOLLA
Senior Boarder
Senior Boarder
Posts: 47
Joined: Thu Dec 22, 2016 4:18 am

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

Post by PSHREYASHOLLA » Tue Mar 20, 2018 4:46 am

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).

PSHREYASHOLLA
Senior Boarder
Senior Boarder
Posts: 47
Joined: Thu Dec 22, 2016 4:18 am

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

Post by PSHREYASHOLLA » Thu Mar 22, 2018 6:39 am

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.

jllort
Moderator
Moderator
Posts: 10267
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

Post by jllort » Fri Mar 23, 2018 6:26 pm

First must add the group and then you are able to set properties, as you indicated.

PSHREYASHOLLA
Senior Boarder
Senior Boarder
Posts: 47
Joined: Thu Dec 22, 2016 4:18 am

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

Post by PSHREYASHOLLA » Tue Mar 27, 2018 4:30 am

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:

jllort
Moderator
Moderator
Posts: 10267
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

Post by jllort » Wed Mar 28, 2018 3:30 pm

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.


sochoa
Junior Boarder
Junior Boarder
Posts: 37
Joined: Thu May 02, 2013 3:26 am

Re: Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

Post by sochoa » Tue May 15, 2018 4:28 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests