Empty string cannot be passed in HttpTrigger query string · Issue #683 · Azure/azure-functions-java-worker (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@lucyzhang929

Description

@lucyzhang929

Repro steps

  1. Run the following function from templates:

package com.function;

import java.util.; import com.microsoft.azure.functions.annotation.; import com.microsoft.azure.functions.*;

/**

}

  1. Send the following request: http://localhost:7071/api/HttpTriggerJava1?name=

Expected behavior

name should be set to an empty string and the function should return "Hello, "

Actual behavior

name is set to null and the function returns "Please pass a name on the query string or in the request body"

Known workarounds

None

Similar issue in PowerShell worker: Azure/azure-functions-powershell-worker#895