Skip to content

Removing volumes #46800

@bsponge

Description

@bsponge

Description

I'm not sure if this is a bug.

resp, err := cli.delete(ctx, "/volumes/"+volumeID, query, nil)

Shouldn't volumeID be escaped as it is used directly in URL?
I mean something like this:

resp, err := cli.delete(ctx, "/volumes/"+url.QueryEscape(volumeID), query, nil)

Reproduce

does not apply

Expected behavior

does not apply

docker version

does not apply

docker info

does not apply

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiAPIarea/volumesVolumeskind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.status/0-triage

    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