arcane icon indicating copy to clipboard operation
arcane copied to clipboard

🚀 1.0 Preview Feedback: Create user failed

Open ethancls opened this issue 1 year ago • 7 comments

Feedback & Suggestions

When creating a new user, it fails with a HTTP 400 error

Here the log from the container :

time=2025-08-17T20:53:57.523654951Z
level=INFO
msg=HTTP request
status=400
method=POST
path=/api/users
query=
ip=11.11.11.11
user_agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Safari/605.1.15
latency=161012
bytes_out=50

Here from the dev console :

[Error] API Error [POST /users]: – {status: 400, data: {error: "Invalid request format", success: false}, message: "Request failed with status code 400"}
	(fonction anonyme) (BjIeepxc.js:6:5312)

But the update of the existing admin is working (mail, display name, password, username is locked)

Steps To Reproduce (if reporting an issue)

No response

Expected Behavior (if reporting an issue)

No response

Actual Behavior (if reporting an issue)

No response

Screenshots

No response

Arcane Version

v1.0.0-preview

Operating System

Linux

Browser

Safari

Docker Version

28.3.3

Additional Context

No response

ethancls avatar Aug 17 '25 20:08 ethancls

Can you try this again with the latest image?

kmendell avatar Aug 21 '25 18:08 kmendell

No, it does not work

The body :

{
      "username":"test",
      "displayName":"test",
      "email":"",
      "roles":["user"],
      "passwordHash":"testesttest",
      "requirePasswordChange":false
} 

The response from /api/users

{
    "error": "Invalid request format",
    "success": false
}

ethancls avatar Aug 21 '25 18:08 ethancls

Are you entering a email in the form? or intentionally leaving it blank? If blank can you try entering one? im not in a spot where i can investigate much right now otherwise i would.

kmendell avatar Aug 21 '25 20:08 kmendell

{
     "username":"testuser",
     "displayName":"Test User",
     "email":"[email protected]",
     "roles":["user"],
     "passwordHash":"test123@",
     "requirePasswordChange":false
}

Even with mail or in admin mode it dont work :( always a invalid request format

ethancls avatar Aug 21 '25 20:08 ethancls

I just pushed some changes and the build should be done in a few minutes, can you try it again please once that new build is ready?

kmendell avatar Aug 21 '25 23:08 kmendell

Its working now but the rbac is broken, connected as user i can access admin and change my user as administrator but create/update is working with all fields thanks

ethancls avatar Aug 22 '25 00:08 ethancls

RBAC is not implemented yet , its just a placeholder, i havent got around to implementing it yet. It should be there once i finish all of this for the official 1.0 release.

kmendell avatar Aug 22 '25 00:08 kmendell