Ramya created OLINGO-1421: ----------------------------- Summary: Handling incorrect message in UriHelperImpl Key: OLINGO-1421 URL: https://issues.apache.org/jira/browse/OLINGO-1421 Project: Olingo Issue Type: Bug Components: odata4-server Reporter: Ramya Assignee: Ramya
In UriHelperImpl class, when property is null, an exception is thrown. There is only 1 argument passed to the Message Key. However, the actual error message is expecting 2 arguments which is throwing the exception Missing replacement for place holder in message 'The value '%2$s' is not valid for property '%1$s'.' for following arguments '[ID] Error at at org.apache.olingo.server.core.uri.UriHelperImpl.findPropertyRefValue(UriHelperImpl.java:127) ~[odata-v4-lib-1.2.0-20200114.114227-90.jar:?] at org.apache.olingo.server.core.uri.UriHelperImpl.buildKeyPredicate(UriHelperImpl.java:88) ~[odata-v4-lib-1.2.0-20200114.114227-90.jar:?] -- This message was sent by Atlassian Jira (v8.3.4#803005)