Skip to content

Repository name with commas can't be retrieved #40817

@jen-huang

Description

@jen-huang

Add a repository with commas in name:

POST /_snapshot/test,with,comma
{
  "type" : "fs",
  "settings" : {
    "location" : "/tmp/es-backups"
  }
}

Attempting to retrieve information about this repository returns an error:

 GET /_snapshot/test,with,comma

or encoded

 GET /_snapshot/test%2Cwith%2Ccomma

returns

{
  "error" : {
    "root_cause" : [
      {
        "type" : "repository_missing_exception",
        "reason" : "[test] missing"
      }
    ],
    "type" : "repository_missing_exception",
    "reason" : "[test] missing"
  },
  "status" : 404
}

Could we disallow commas in repository name to prevent this from happening?

Metadata

Metadata

Assignees

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