Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix intermittent validation issues in source view #1294

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

SanojPunchihewa
Copy link
Contributor

@SanojPunchihewa SanojPunchihewa commented Apr 22, 2024

Purpose

Fix intermittent validation issues in source view.

When a comment is added inside a nested mediator like clone, the current mediator was not added to the stack which has led to validation issues.

<clone>
    <target>
        <sequence>
            <property action="remove" name="Content-Encoding" scope="transport"/>
        </sequence>
    </target>
    <target>
        <sequence>
            <sequence key="Sequence_1"/>
            <property expression="get-property('value')" name="uri.var.value" scope="default" type="STRING"/>
            <property action="remove" name="Content-Encoding" scope="transport"/>
            <header expression="get-property('XSRF_TOKEN')" name="X-XSRF-TOKEN" scope="transport"/>
            <!--Set Cookie header -->
            <call>
                <endpoint>
                    <http method="get" uri-template="some_url">
                    </http>
                </endpoint>
            </call>
        </sequence>
    </target>
</clone>

Fixes: wso2/product-micro-integrator#3313

@SanojPunchihewa SanojPunchihewa merged commit 3a904e6 into wso2:main Apr 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intermittent issue in Integration Studio when using clone mediators
2 participants