Skip to content

"gatewaySetting" is serialized incorrectly inside "connectionParameterSets" #9559

Description

@afreeman-sherwin

Severity

P2 - High (Major functionality broken)

Describe the Bug with repro steps

Expected Behavior

When a selected parameter set contains gatewaySetting, LogicAppsUX should serialize it using the gateway-compatible connectionParameters shape, or the gateway connection API should accept the connectionParametersSet representation.

Actual Behavior

A custom connector using connectionParameterSets cannot create an on-premises gateway connection because the selected gateway parameters are serialized as connectionParametersSet values.

Reproduction

Define a parameter set containing authType and gatewaySetting:

{
  "name": "gateway-noauth",
  "uiDefinition": {
    "displayName": "Gateway",
    "description": "Connect through the on-premises gateway."
  },
  "parameters": {
    "authType": {
      "type": "string",
      "uiDefinition": {
        "displayName": "Authentication Type",
        "description": "No authentication",
        "constraints": {
          "required": "true",
          "allowedValues": [
            {
              "text": "No authentication",
              "value": "anonymous"
            }
          ]
        }
      }
    },
    "gateway": {
      "type": "gatewaySetting",
      "gatewaySettings": {
        "dataSourceType": "CustomConnector",
        "connectionDetails": []
      },
      "uiDefinition": {
        "displayName": "Gateway",
        "description": "Select a gateway.",
        "constraints": {
          "required": "true",
          "capability": ["gateway"]
        }
      }
    }
  }
}

Actual Payload

LogicAppsUX submits:

{
  "properties": {
    "connectionParametersSet": {
      "name": "gateway-noauth",
      "values": {
        "authType": {
          "value": "anonymous"
        },
        "gateway": {
          "value": {
            "id": "/providers/Microsoft.PowerApps/gatewayClusters/<gateway-id>"
          }
        }
      }
    }
  }
}

The request fails with:

The 'authType' connection parameter is null or invalid for the on-premise connection request.

Working Payload

The Power Platform custom connector wizard creates successful gateway connections using:

{
  "properties": {
    "connectionParameters": {
      "authType": "anonymous",
      "gateway": {
        "id": "/providers/Microsoft.PowerApps/gatewayClusters/<gateway-id>"
      }
    }
  }
}

Relevant Code

libs/designer-v2/src/lib/ui/panel/connectionsPanel/createConnection/createConnectionInternal.tsx

The current parameter-set serializer wraps every parameter in a value object:

values: Object.fromEntries(
  Object.keys(filteredParameterValues).map((key) => [
    key,
    { value: filteredParameterValues[key] },
  ])
)

This serialization is incompatible with the gateway connection API's expected flat connectionParameters contract.

What type of Logic App Is this happening in?

Standard (Portal)

Are you experiencing a regression?

No response

Which operating system are you using?

Windows

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

Yes

Workflow JSON

Screenshots or Videos

No response

Environment

  • Microsoft Power Automate
  • Custom connector deployed with paconn
  • Microsoft on-premises data gateway, standard mode

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ConnectionsIssues with connector integrations and authenticationbugSomething isn't workingneeds-investigationBug needs initial investigationpriority:highCritical issues needing immediate attention

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions