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

It can deploy the illegal code via VSCode without validation error. #1224

Open
nobuko-yamada opened this issue Sep 13, 2024 · 4 comments
Open
Labels

Comments

@nobuko-yamada
Copy link

nobuko-yamada commented Sep 13, 2024

Describe the Bug with repro steps

It isn't efficient.

For example, we can deploy the code unexpectedly like below including terminate action within ForEach.

image

Only after the opening from AzurePortal, we can find the validation error of the code.

image

What type of Logic App Is this happening in?

Standard (VSCode)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "For_each": {
                "type": "Foreach",
                "foreach": "@range(0,3)",
                "actions": {
                    "Terminate": {
                        "type": "Terminate",
                        "inputs": {
                            "runStatus": "Failed",
                            "runError": {
                                "code": "9",
                                "message": "error"
                            }
                        }
                    }
                },
                "runAfter": {}
            }
        },
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "type": "Request",
                "kind": "Http"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "parameters": {}
    },
    "kind": "Stateful"
}

Screenshots or Videos

No response

Browser

via VSCode.

Additional context

No response

@nobuko-yamada nobuko-yamada changed the title It can deploy the irregal code via VSCode without validation error. It can deploy the illegal code via VSCode without validation error. Sep 14, 2024
@ccastrotrejo ccastrotrejo self-assigned this Sep 23, 2024
@ccastrotrejo
Copy link

Hi @nobuko-yamada thanks for raising this isssue. I will take a look on how we can validate the workflow.json before deploying it

@ccastrotrejo
Copy link

Hi @nobuko-yamada I will make the update to validate the workflow definition while saving it when using the Designer locally and prior deploying it. I am working with the BE team right now to make the right changes for it. I will update the issue as soon as I have the fix

@nobuko-yamada
Copy link
Author

nobuko-yamada commented Sep 24, 2024 via email

@ccastrotrejo ccastrotrejo removed their assignment Oct 29, 2024
@ccastrotrejo ccastrotrejo transferred this issue from Azure/LogicAppsUX Oct 29, 2024
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

3 participants