tapvanvn / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Client. Query params added to URL before OClientBehavior execution #154

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create ClientBehavior that adds query param 
2. proceed the request

What is the expected output? What do you see instead?
the URL should contain added parameters.

What version of the product are you using? On what operating system?
odata4j 0.6 cxf

Please provide any additional information below.

Here is a code snippet from ODataCXFClient.doRequest

      UriBuilder uriBuilder = UriBuilder.fromPath(request.getUrl());
      for (String key : request.getQueryParams().keySet()) {
        uriBuilder = uriBuilder.queryParam(key, request.getQueryParams().get(key));
      }
      URI uri = uriBuilder.build();

      if (this.behaviors != null) {
        for (OClientBehavior behavior : behaviors)
          request = behavior.transform(request);
      }

Original issue reported on code.google.com by kisel.ev...@gmail.com on 28 Mar 2012 at 8:20

GoogleCodeExporter commented 9 years ago

Original comment by stephan....@googlemail.com on 23 Apr 2012 at 6:25

GoogleCodeExporter commented 9 years ago

Original comment by philipp.sebastian.thun on 26 Jun 2012 at 2:44