Skip to content

Ballerina HTTP service hangs for request with no matching resource path and an authorization header #8634

@TharmiganK

Description

@TharmiganK

Area

Area/Library

Description

$Subject

Note: This is not reproducible with Ballerina SwanLake Update 11 or higher versions

Steps to Reproduce

Run the following Ballerina service:

import ballerina/http;

service / on new http:Listener(9090) {

    resource function get hello/[string name]() returns string {
        return "Hello, " + name;
    }
}

Try to invoke with the below cURL request:

curl 'http://localhost:9090/hello/123/456' --header 'Authorization: Bearer xxxxx' -v

Version

Ballerina - 2201.8.x, 2201.9.x and 2201.10.x

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions