Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1421

Handling incorrect message in UriHelperImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • odata4-server
    • None

    Description

      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:?]

      Attachments

        Activity

          People

            ramya.vasanth Ramya
            ramya.vasanth Ramya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: