Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Datasource GET api does not work as expected if name has capital character #2196

Closed
penghuo opened this issue Oct 3, 2023 · 0 comments
Labels
bug Something isn't working v2.11.0 Issues targeting release v2.11.0

Comments

@penghuo
Copy link
Collaborator

penghuo commented Oct 3, 2023

What is the bug?

POST {{baseUrl}}/_plugins/_query/_datasources
Content-Type: application/x-ndjson

{
  "name": "myS3",
  "description": "",
  "connector": "S3GLUE",
  "allowedRoles": [],
  "properties": {
  }
}

GET {{baseUrl}}/_plugins/_query/_datasources/myS3

{
  "status": 404,
  "error": {
    "type": "DataSourceNotFoundException",
    "reason": "There was internal problem at backend",
    "details": "DataSource with name myS3 doesn\u0027t exist."
  }
}

What is the expected behavior?

GET {{baseUrl}}/_plugins/_query/_datasources/myS3

return datasource

{
  "name": "myS3",
  "description": "",
  "connector": "S3GLUE",
  "allowedRoles": [],
  "properties": {
  }
}

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

@penghuo penghuo added bug Something isn't working untriaged v2.11.0 Issues targeting release v2.11.0 and removed untriaged labels Oct 3, 2023
@penghuo penghuo removed the untriaged label Oct 3, 2023
@penghuo penghuo closed this as completed Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.11.0 Issues targeting release v2.11.0
Projects
None yet
Development

No branches or pull requests

1 participant