Hi,
I try to use 2 targets when i call at proxy from Postman for "task" the url in trace is repeated but only when my url in proxy use this part
?$filter=((Status%20eq%20%27READY%27))
if only use this http://poc.clients.test/poc/tasks.svc/TaskCollection
The proxy work.
What is the problem with this???
Routh rule
<RouteRule name="Task"> <Condition>(proxy.pathsuffix MatchesPath "/task") and (request.verb = "GET")</Condition> <TargetEndpoint>Task</TargetEndpoint> </RouteRule>
The other tarjet
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <TargetEndpoint name="Task"> <PreFlow name="PreFlow"> <Request> <Step> <Name>JavaScript-1</Name> </Step> </Request> <Response/> </PreFlow> <HTTPTargetConnection> <URL>http://poc.clients.test/poc/tasks.svc/TaskCollection?$filter=((Status%20eq%20%27READY%27))</URL> </HTTPTargetConnection> </TargetEndpoint>
The java script policy
context.setVariable("target.copy.pathsuffix", false);
Result trace section
http://poc.clients.test/poc/tasks.svc/TaskCollection?$filter=((Status%20eq%20%27READY%27))/poc/tasks.svc/TaskCollection?%24filter=%28%28Status%20eq%20%27READY%27%29%29
Expeted result
http://poc.clients.test/poc/tasks.svc/TaskCollection?$filter=((Status%20eq%20%27READY%27))
Thanks and Regards.
Answer by Dino
·
Mar 17, 2018 at 01:48 PM
I have reproduced the problem.
The error is in the Trace display.
The actual call does not duplicate the path.
I've filed a bug. b/75354830
Thanks for reporting this.
request.uri is not being evaluated in reports 1 Answer
One Proxy end point with different target endpoints 1 Answer
Appending keycode to Path on Request URL via Assign Message Policy 1 Answer
Empty Path element in targetendpoint adding additional urlencoded characters 1 Answer
Change Target URL while using target server configuration 3 Answers