Layer7 API Management

  • 1.  Server Policy Falsified with Response 500

    Posted Aug 09, 2018 10:40 AM

    Getting below error while load testing guest token(grant_type=client_credentials). Even though the error is coming after disabling my custom changes.

    Gateway version : 9.2 

    OTK Version : 4.1

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>Policy Falsified</faultstring>
    <faultactor>https://localhost:8443/redis</faultactor>
    <detail>
    <l7:policyResult status="Assertion Falsified" xmlns:l7="http://www.layer7tech.com/ws/policy/fault"/>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>

    NOTE: Individual guest token generation is working fine.

    curl -X POST \
    https://localhost:8443/auth/oauth/v2/token \
    -H 'authorization: Basic <authrization key>' \
    -H 'content-type: application/x-www-form-urlencoded' \
    -d grant_type=client_credentials



  • 2.  Re: Server Policy Falsified with Response 500

    Broadcom Employee
    Posted Aug 09, 2018 10:51 AM

    Hello,

     

    Can you provide some more detail here? This error is generated from the https://localhost:8443/redis endpoint, is this an OAuth protected endpoint? You should see more details in the audit viewer or optionally, you can add the 'Customize SOAP Fault Response' assertion to the top of this policy and change the value to 'Full Detail'.

     

     

    Regards,

    Joe



  • 3.  Re: Server Policy Falsified with Response 500

    Posted Aug 10, 2018 08:51 AM

    Thank you Joe for replying 

    Facing problem while doing load testing of auth service or without auth service.

    Here are the details.

    1. Used 'Customize SOAP Fault Response' inside OTK service (out of the box)

    Step-1 : Service changes

    Step-2 : Load testing

    Response code: 500
    Response message: Internal Server Error

    Response headers:
    HTTP/1.1 500 Internal Server Error
    Server: Apache-Coyote/1.1
    Content-Type: text/xml;charset=utf-8
    Content-Length: 570
    Date: Fri, 10 Aug 2018 10:09:27 GMT
    Connection: close

     Response data:

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>Policy Falsified</faultstring>
    <faultactor>https://localhost:8443/auth/oauth/v2/token</faultactor>
    <detail>
    <l7:policyResult status="Assertion Falsified" xmlns:l7="http://www.layer7tech.com/ws/policy/fault"/>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>

    2. Used 'Customize SOAP Fault Response' inside service without any logic.

    Step-1 Created dummy service

    Step-2 After load testing

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>Policy Falsified</faultstring>
    <faultactor>https://localhost:8443/content/v1/page/header</faultactor>
    <detail>
    <l7:policyResult status="Assertion Falsified" xmlns:l7="http://www.layer7tech.com/ws/policy/fault"/>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>



  • 4.  Re: Server Policy Falsified with Response 500
    Best Answer

    Posted Aug 13, 2018 06:07 AM

    Above problem resolved. Problem due to one of the throughput quota policy assertions and resolved.