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

Esb Editor resets Sequence Template Parameters Attributes #1383

Open
gspadotto opened this issue Nov 2, 2024 · 1 comment
Open

Esb Editor resets Sequence Template Parameters Attributes #1383

gspadotto opened this issue Nov 2, 2024 · 1 comment
Labels

Comments

@gspadotto
Copy link

Description

When you open a Sequence Template with parameters that are mandatory, Esb Editor resets them to NOT mandatory with an empty string default value.

This is unfortunate because you risk to change the Sequence Templates without even realizing it.

This is an issue that is present since at least early 2022.

See:
#998
#1005 (Did not fix the issue)
wso2/api-manager#630

Steps to Reproduce

Create a new Sequence Template, in the source panel add mandatory parameters and save it:

<?xml version="1.0" encoding="UTF-8"?>
<template xmlns="http://ws.apache.org/ns/synapse" name="ExampleTemplateWithMandatoryParameters">
    <parameter isMandatory="true" name="myMandatoryParameter"/>
    <sequence>
       <log level="simple">
           <property name="myMandatoryParameter" expression="$func:myMandatoryParameter"/>
       </log>
    </sequence>
</template>

Now open the Sequence Template with the graphical Esb Editor, switch to the source panel, the parameters have all the
defaultValue="" isMandatory="false" attributes:

<?xml version="1.0" encoding="UTF-8"?>
<template name="ExampleTemplateWithMandatoryParameters" xmlns="http://ws.apache.org/ns/synapse">
    <parameter defaultValue="" isMandatory="false" name="myMandatoryParameter"/>
    <sequence>
        <log>
            <property expression="$func:myMandatoryParameter" name="myMandatoryParameter"/>
        </log>
    </sequence>
</template>

Version

8.3.0

Environment Details (with versions)

Integration Studio 8.3.0.202407171625

@gspadotto
Copy link
Author

Maybe @Tharsanan1 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant