Skip to content

URI builder starts query strings with ampersand #434

@jasoncwik

Description

@jasoncwik

Describe the bug
We encountered a bug in DDN Infinia where list requests were failing. We tracked it down to an unusual URI in the format of http://server/bucket?&list-type=2&prefix=foo/. Starting a query string with an ampersand (before list-type) is unusual and broke our URI parser.

To Reproduce
Run a list objects request with the AWS plugin and trace the URI generated.

Expected behavior
The URI should not start a query string with an ampersand. The above URI should be:
http://server/bucket?list-type=2&prefix=foo/

Additional context
We have fixed our parser to handle this corner case, but have customers we cannot upgrade right now so we would like to fix it in the crate.

I have a PR I will submit shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions