You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
Sending a POST request to /v1/transactions/transfer with a valid JSON body in the regular transfer form (no sender field) will result in a 500 Internal server error response.
This in itself is an invalid value as IDs start at 1. Using this 0 value as sender ID will make the foreign key constraint fail for the same reason.
Root cause of this might be me failing to implement admin-user creation correctly, missing the read-back of the created users id into the admin user_id
The text was updated successfully, but these errors were encountered:
Problem:
Sending a
POST
request to/v1/transactions/transfer
with a valid JSON body in the regular transfer form (no sender field) will result in a500 Internal server error
response.Other Symptoms:
The server at this point throws a
java.sql.SQLIntegrityConstraintViolationException
as a result of a foreign key constraint failing.Possible cause:
Requesting all admins shows, that all admins have a
user_id
of0
.This in itself is an invalid value as IDs start at
1
. Using this0
value as sender ID will make the foreign key constraint fail for the same reason.Root cause of this might be me failing to implement admin-user creation correctly, missing the read-back of the created users id into the admin
user_id
The text was updated successfully, but these errors were encountered: