I am following given documentation to create a global synapse mediator, but it seems that my mediator is not used. When I upload the same mediator XML to the API on publisher, works properly.
My XML meditor:
<?xml version="1.0" encoding="UTF-8"?>
<sequence xmlns="http://ws.apache.org/ns/synapse" name="WSO2AM--Ext--In">
<property name="X-Client-Remote-Addr" expression="get-property('axis2', 'REMOTE_ADDR')" scope="transport"/>
<property name="X-Client-Forwarded-For" expression="$trp:X-Forwarded-For" scope="transport"/>
</sequence>
The API handlers sequence is the default, using org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler like this documentation. This handler should be the responsible to apply global mediators.
Is there some known bug with a workaround or, maybe, did I some mistake?