Express (Distributed operating systems), v8.0 > Secure applications and their environment > Authenticate users > Select a registry or repository > Manage realms in a federated repository > Virtual member manager > Troubleshoot and Support > Support issues and limitations > General issues and limitations
No error message generated during a read operation
A read operation that requests a nonexisting property returns an empty result.
Read operations such as search or get do not return error messages if:
- the property you requested does not exist or the property name is not valid
- you do not have permission to read the property
Write operations such as create or update do throw exceptions.
Example
Request a get for an nonexisting property:
DataObject root = SDOHelper.createRootDataObject(); DataObject entity = SDOHelper.createEntityDataObject(root, null, DO_PERSON); entity.createDataObject(DO_IDENTIFIER).set(PROP_UNIQUE_NAME, "uid=SalesManager,cn=users,dc=yourco,dc=com"); DataObject propCtrl = SDOHelper.createControlDataObject(root, null, DO_PROPERTY_CONTROL); propCtrl.getList(PROP_PROPERTIES).add("sn"); propCtrl.getList(PROP_PROPERTIES).add("uid"); propCtrl.getList(PROP_PROPERTIES).add("cn"); propCtrl.getList(PROP_PROPERTIES).add("NOPROP"); root = service.get(root);For this particular example the sample input data graph is:<?xml version="1.0" encoding="UTF-8"?> <sdo:datagraph xmlns:xsi="//www.w3.org/2001/XMLSchema-instance" xmlns:sdo="commonj.sdo" xmlns:wim="//www.ibm.com/websphere/wim"> <wim:Root> <wim:entities xsi:type="wim:PersonAccount"> <wim:identifier uniqueName="uid=SalesManager,cn=users,dc=yourco,dc=com"/> </wim:entities> <wim:controls xsi:type="wim:PropertyControl"> <wim:properties>sn </wim:properties> <wim:properties>uid </wim:properties> <wim:properties>cn </wim:properties> <wim:properties>NOPROP </wim:properties> </wim:controls> </wim:Root> </sdo:datagraph>The resulting output data graph is:<sdo:datagraph xmlns:xsi="//www.w3.org/2001/XMLSchema-instance" xmlns:sdo="commonj.sdo" xmlns:wim="//www.ibm.com/websphere/wim"> <wim:Root> <wim:entities xsi:type="wim:PersonAccount"> <wim:identifier externalName="uid=SalesManager,cn=users,dc=yourco,dc=com" repositoryId="LDAP1" uniqueId="5e846c20-a1b4-4bfc-bce2-1f841d762f9a" uniqueName="uid=SalesManager,cn=users,dc=yourco,dc=com"/> <wim:uid>SalesManager </wim:uid> <wim:cn>Sales Manager </wim:cn> <wim:sn>SalesMgrSn </wim:sn> </wim:entities> </wim:Root> </sdo:datagraph>The requested property NOPROP is not returned nor is an error message generated.
Parent topic: General issues and limitations