Known Issues for APIs and Custom Development

Learn about known issues and apply workarounds for APIs and custom development.

CR # Description
631457
In the Administration API, role mapping and security APIs return erroneous information.
  • Role mappings of a package – even if a logical role is not mapped to any physical roles, package-level role mapping always returns as MAPPED instead of AUTO or NONE. The affected API is SUPPackage.getRoleMapping().
  • The value of securityConfiguration in SecurityProviderVO – these APIs all return SecurityProviderVO without any values for the securityConfiguration field:
    • SUPSecurityConfiguration.getActiveAttributionProvider(String attributionProviderID)
    • SUPSecurityConfiguration.getActiveAttributionProviders()
    • SUPSecurityConfiguration.getActiveAuditProvider(String auditProviderID)
    • SUPSecurityConfiguration.getActiveAuditProviders()
    • SUPSecurityConfiguration.getActiveAuthenticationProvider(String authenticationProviderID)
    • SUPSecurityConfiguration.getActiveAuthenticationProviders()
    • SUPSecurityConfiguration.getActiveAuthorizationProvider(String authorizationProviderID)
    • SUPSecurityConfiguration.getActiveAuthorizationProviders()

Workaround: None. To review the correct role mappings, use the Sybase Control Center UI.

631327
Callbackhandler not called during execution of synchronous synchronizations

CallbackHandler.onSynchronize is only called by the asynchronous DBClass.beginSynchronize(...) method, and not by the synchronous DBClass.synchronize(...) method.

Workaround: Place the DBClass.synchronize method in a try/catch block to handle any synchronization exceptions.

620706
You cannot insert DEFAULT in the timestamp column when the API is accessing SQL Server.
Workaround: DEFAULT is a Microsoft SQL keyword, and cannot be set by the client. Instead, use this create operation:
insert into sql_date (c_datetime, c_smalldt) values(:dt1, :dt2)
619853
If the DateTime datatype Object Query parameter uses dateformat, the object query returns a null pointer exception.
For example, this select statement causes a null pointer exception:
select a.* from AllType a 
  where dateformat(a.aDateTime,'yyyy-mm-dd hh:mm:ss.sss')
  =dateformat(:aDateTime,'yyyy-mm-dd hh:mm:ss.sss') 
   or (a.aDateTime is null and CAST(:aDateTime AS datetime) is null)
Workaround: Remove dateformat from the query, such as:
select a.* from AllType a 
  where a.aDateTime=:aDateTime or (a.aDateTime is null 
   and CAST(:aDateTime AS datetime) is null)