LAPI-BUG in UpdateObjectInfo (Java) on alias objects
Hello.I have problems updating ObjectInfo of an alias. With all other objects there is no problem (since patch of april).Updating ObjectInfo of an alias with correct volumeID or volumeID 0 throws an exception while updating ObjectInfo with explizit false volumeIDs don't throw an exception!Can someone explain this? Is there a patch for this or where can I fix the problem by hand until the patch is released?See the java code and the console output below:Java code:import com.opentext.api.*;public class VeryLowLevelTest{ public static void main(String[] args) { LLSession m_llSession=null; LAPI_DOCUMENTS m_documents=null; LLValue value=new LLValue(); m_llSession=new LLSession("q8t43", 2099, "ECIP", "user1", "user1"); m_documents=new LAPI_DOCUMENTS(m_llSession); m_documents.GetObjectInfo(0, 21416, value); System.out.println("ObjectSubType: "+value.toString("subtype")+" (Alias)"); System.out.println("ObjectID: "+value.toString("id")); System.out.println("VolumeID: "+value.toInteger("volumeid")); System.out.println("\nTrying to update ObjectInfo with volumeID 0"); System.out.println(">m_documents.UpdateObjectInfo(0, 21416, value);"); try { m_documents.UpdateObjectInfo(0, 21416, value); System.out.println("Succeded."); } catch (Exception e) { System.out.println("Exception occured: "+e); } System.out.println("\nTrying to update ObjectInfo with correct volumeID "+value.toInteger("volumeid")); System.out.println(">m_documents.UpdateObjectInfo(value.toInteger('volumeid'), 21416, value);"); try { m_documents.UpdateObjectInfo(value.toInteger("volumeid"), 21416, value); System.out.println("Succeded."); } catch (Exception e) { System.out.println("Exception occured: "+e); } System.ou?t.println("\nAnd now trying to updateObjectInfo with FALSE volumeID 123"); System.out.println(">m_documents.UpdateObjectInfo(123, 21416, value);"); try { m_documents.UpdateObjectInfo(123, 21416, value); System.out.println("Succeded, but should not!"); } catch (Exception e) { System.out.println("Exception occured: "+e); } }}Console output:ObjectSubType: 1 (Alias)ObjectID: 21416VolumeID: -19034Trying to update ObjectInfo with volumeID 0>m_documents.UpdateObjectInfo(0, 21416, value);Exception occured: com.opentext.api.LLIllegalOperationException: get(name) not implemented for this datatypeTrying to update ObjectInfo with correct volumeID -19034>m_documents.UpdateObjectInfo(value.toInteger('volumeid'), 21416, value);Exception occured: com.opentext.api.LLIllegalOperationException: get(name) not implemented for this datatypeAnd now trying to updateObjectInfo with FALSE volumeID 123>m_documents.UpdateObjectInfo(123, 21416, value);Succeded, but should not!