-
Notifications
You must be signed in to change notification settings - Fork 490
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
mismatch between user id in JSON response of created user and user id when looking it up in the database #2418
Comments
@scolapasta I'm going to give this to you to think about why we only see this bug with production data since I'm really not sure. I added a test in e45dd79 which you can execute by running The mismatch is making it difficult for me to write integrations tests with production data for #2036 so I'm going to match the milestone for that ticket. |
Actually the new method added to Oh, I wonder if @michbarsinai has any thoughts on this. |
We need to look at this in on the server - we're using plain JPA code there. |
@michbarsinai maybe when you're in town we'll get a production database on your laptop so we can exercise the bug there. |
I'm going to attach a tiny non-production database below that exercises this bug as of 4.2.3. I was adding and deleting a bunch of users and now this bug has appeared again. It's very mysterious to me. Anyway, once I upload the database I'm going to drop it locally because this bug is blocking my development of #2915. Here's what I'm seeing right now:
Here's a sample database to reproduce this bug: |
OK, looks good, closing. {"status":"OK","data":{"user":{"id":6,"firstName":"Pete","lastName":"Privileged","userName":"pete","affiliation":"Top","position":"The Boss","email":"pete@malinator.com"},"authenticatedUser":{"id":6,"identifier":"@pete","displayName":"Pete Privileged","firstName":"Pete","lastName":"Privileged","email":"pete@malinator.com","superuser":false,"affiliation":"Top","position":"The Boss","persistentUserId":"pete","authenticationProviderId":"builtin"},"apiToken":"a5a69e97-86c8-4934-bed8-01d6b0b625f3"}} |
I haven't committed this test yet, but I'm seeing a mismatch between the user id in JSON response of created user and user id when looking it up in the database:
The bug seems to be in the JSON response because the new method I wrote to look up the id in the database returns the right id:
So the question is why the JSON coming back from creating the user via API is off.
I'm on commit e2d4fa3 as of this writing.
The text was updated successfully, but these errors were encountered: