Skip to content

Url parse incorrect logic #203

@HO-COOH

Description

@HO-COOH

See here

If we construct a url with

    minio::s3::BaseUrl base_url{ "https://1.2.3.4" };

Then the std::getline call will return the entire string "1.2.3.4" then std::stoi("1.2.3.4") returns 1 as port, which is obviously wrong. It should simply NOT parse the port if : is not found in the url, and let user specify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions