Json threat protection policy with negative parameters

Hello,

I create a shared flow contain two policy Jsonthreatprotection policy and RegularExpressionProtection policy, I am calling this shared flow from my proxy  with parameters input. on some scenario I don't need to check some attributes on Json threat protection example: <ObjectEntryNameLength ref="ObjectEntryNameLength"/> so I am passing a negative value as mention on apigee documentation:<Parameter type="integer" name="ObjectEntryNameLength"> -1</Parameter>

but it seems is not working and it not take "-1" as unlimited value.

what I have to do to achieve this objective.

shared flow:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<JSONThreatProtection continueOnError="false" enabled="true" name="JT-JSONThreatProtection">
<DisplayName>JT-JSONThreatProtection</DisplayName>
<ObjectEntryNameLength ref="ObjectEntryNameLength"/>
<StringValueLength ref="StringValueLength"/>
<Source>request</Source>
</JSONThreatProtection>

from proxy call:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<FlowCallout continueOnError="false" enabled="true" name="FC-ContentValidation">
<DisplayName>FC-ContentValidation</DisplayName>
<FaultRules/>
<Parameters>
<Parameter type="integer" name="ObjectEntryNameLength">-1</Parameter>
<Parameter type="integer" name="StringValueLength">6000</Parameter>
</Parameters>
<SharedFlowBundle>Shared-ThreatProtection</SharedFlowBundle>
</FlowCallout>

thank you

0 0 95
0 REPLIES 0