Fix 401 returned by PAP 53/120753/2
authorsebdet <sebastien.determe@intl.att.com>
Wed, 21 Apr 2021 09:52:50 +0000 (11:52 +0200)
committerS�bastien Determe <sebastien.determe@intl.att.com>
Wed, 21 Apr 2021 09:55:23 +0000 (09:55 +0000)
The direct call from Policy clamp Ui to Pap returns 401 because UI info are forwarded by Camel

Issue-ID: POLICY-3203
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Id24b45afc05b2d308f6062b22d9e2b4a040f1d93

src/main/resources/clds/camel/rest/clamp-api-v2.xml

index 50e8d58..bba76f7 100644 (file)
             </route>
         </delete>
 
-        <put uri="/v2/policies/pdpDeployment"
-             type="com.google.gson.JsonElement"
-             consumes="application/json">
+        <put uri="/v2/policies/pdpDeployment" type="com.google.gson.JsonElement" consumes="application/json">
             <route>
+                <removeHeaders pattern="*"/>
                 <doTry>
                     <to
                             uri="bean:org.onap.policy.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Pdp group deployment update')"/>