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

server returns status code 500 when creating token for non-existent user (Impersonation) #10815

Open
Tracked by #10619
nirajacharya2 opened this issue Dec 31, 2024 · 0 comments
Labels

Comments

@nirajacharya2
Copy link
Contributor

Describe the bug

creating auth-app token for an non-existent user gives 500 status code.
https://owncloud.dev/services/auth-app/#via-impersonation-api

Steps to reproduce

1.create an auth-app token

curl -kv -XPOST 'https://localhost:9200/auth-app/tokens?expiry=72h&userName=mosss' -uadmin:admin

Expected behavior

the server should return something like 404

Actual behavior

the server return 500 status code

 TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/1.1 500 Internal Server Error
< Content-Length: 0

Setup

env

OCIS_ADD_RUN_SERVICES=auth-app
AUTH_APP_ENABLE_IMPERSONATION=true

ownCloud Web UI 11.0.6
Infinite Scale 7.0.0+42014d70c0 Community

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

No branches or pull requests

1 participant