0

I am trying to issue the following query using Apache Olingo for OData using Java:

URI customersUri = client.newURIBuilder(serviceRoot)
          .appendEntitySetSegment("Customers")
          .filter("CustomerID eq 'Joe'")
          .build();

The expected query string that I want is: $filter=CustomerID eq 'Joe'

However, when the library builds the above URI, the actual query string becomes like this:

%24filter%3DCustomerID+eq+%27Joe%27

Now, the problem is that when I use this query string for my OData Service, it seems that it does not accept the plus (+) signs. However, when removing the plus signs and use space instead, it works
Any help about this or recommendations please? Thanks

user3423878
  • 51
  • 2
  • 8

1 Answers1

0

This is a bug that was fixed in the V4 4.0.0-beta-03 release. Maybe your client library is out of date.

lencharest
  • 2,825
  • 2
  • 15
  • 22