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

I can create a user with a line break in the username and it doesn't warn me of this #16651

Open
svidovich opened this issue Jul 28, 2022 · 0 comments

Comments

@svidovich
Copy link

My Environment

  • ArangoDB Version: 3.9.1
  • Deployment Mode: Helm on K8s
  • Deployment Strategy: Official Kubernetes Operator
  • Configuration: Nothing interesting
  • Infrastructure: K8S
  • Operating System:
  • Total RAM in your machine: 32Gb
  • Disks in use: SSD
  • Used Package: curl

Component, Query & Data

Affected feature:
User creation

Steps to reproduce

  1. Create a user with a supported API or cURL or something that includes a line break at the end of the name

image

Problem:

Later, I went to curl my baby user but I got 404: baby does not exist. This is because I needed to curl my baby\n user instead.

curl -X PUT http://arangodb.127-0-0-1.nip.io/_api/user/baby/database/customer_baby --data '{"grant": "rw"}' --user root:4b166d06daad024cf4277048f73bfe85d13ff394ee0873e5a82deee02c85c8ac 

{"code":404,"error":true,"errorMessage":"user not found","errorNum":1703}%

Expected result:
I... don't even know. Maybe we should get yelled at if we try and make a user with line breaks / other special characters in the username? I don't know how you guys want to handle this. It's somewhat confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant