'LikeIgnoreCase' can not be found in rest-api

  • KM03690628
  • 14-Aug-2020
  • 22-Oct-2020


'LikeIgnoreCase' is not the correct operator in rest-api.jar The correct one should be "likeCaseInsensitive" 'LikeIgnoreCase' is part of WS-api but not rest-api


If we are trying to use LikeIgnoreCase Operator to get details through REST API.
we will failed to get response due to the below error:

at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@78396a4a; line: 23, column: 52] (through reference chain: com.hp.ucmdb.rest.bridge.topology.TopologyQuery["nodes"]->java.util.ArrayList[1]->com.hp.ucmdb.rest.bridge.topology.QueryNode["attributeConditions"]->java.util.ArrayList[0]->com.hp.ucmdb.rest.bridge.topology.AttributeCondition["operator"])]]></data>

If you are using 10.3x,  checking the logs, you will see the message like this:

Can not construct instance of com.hp.ucmdb.rest.bridge.topology.AttributeConditionOperator from String value 'LikeIgnoreCase': value not one of declared Enum instance names: [isNull, equals, isNotEqualTo, like, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, in, containsAny, contains


1> The operator "LikeIgnoreCase" belong to WS-API but not REST-API.
2> The correct operator name in REST-API should be "likeCaseInsensitive". But this operator only available after 10.3x.

So customer need to upgrade uCMDB to get the new feature