This issue is observed in OPDK 4.50.00.00
When you have a empty <Path/> element in the target endpoint, the target host is appended with
/%0A%20%20%20%20/
The trace shows Request sent to target server POST https://cuidapi-legacy.prod.apps.pcfwest.prod.*******.com/%0A%20%20%20%20/api/users
The Curl in the trace also shows the same.
Is this a known issue? anyone else facing the same issue?
Its resolved when you delete the empty Path element from the target endpoint xml.
[I had a similar issue 2 years back in 4.18.05 as well]
https://community.apigee.com/questions/69864/empty-path-element-in-targetendpoint-adding-additi.html
Below is the target endpoint configuration
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <TargetEndpoint name="default"> <Description>Backend Target Service Details</Description> <FaultRules/> <Flows/> <PostFlow name="PostFlow"> <Request/> <Response> <Step> <FaultRules/> <Name>Statistics-Collector</Name> </Step> </Response> </PostFlow> <PreFlow name="PreFlow"> <Request/> <Response/> </PreFlow> <HTTPTargetConnection> <LoadBalancer> <MaxFailures>0</MaxFailures> <RetryEnabled>true</RetryEnabled> <Server name="PCF_CUID_Target"> <IsEnabled>true</IsEnabled> <IsFallback>false</IsFallback> <Weight>1</Weight> </Server> <TargetDisableSecs>300</TargetDisableSecs> </LoadBalancer> <Path/> <SSLInfo> <Ciphers/> <ClientAuthEnabled>false</ClientAuthEnabled> <Enabled>true</Enabled> <IgnoreValidationErrors>false</IgnoreValidationErrors> <Protocols/> </SSLInfo> <Properties> <Property name="success.codes">1xx,2xx,3xx,4xx,5xx</Property> </Properties> </HTTPTargetConnection> </TargetEndpoint>
Hi, did you know what is this for? What is the disadvantage in increasing the value of it?
<TargetDisableSecs>300</TargetDisableSecs>
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |