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

Bug: POST CustomCharacter endpoints returns 409 error #430

Closed
BillTheBeast opened this issue Feb 10, 2025 · 2 comments
Closed

Bug: POST CustomCharacter endpoints returns 409 error #430

BillTheBeast opened this issue Feb 10, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@BillTheBeast
Copy link

What doesn't work?

POST CustomCharacter endpoints returns 409 error.

HTTP/1.1 409 Conflict: {"errors":[{"response":"NOT_UNIQUE","status":409,"message":"Field "name" with value "null" already exists","name":"","reason":"NOT_UNIQUE","field":"name","value":null,"additional":{"key":"name","value":null},"statusCode":409,"objectType":"APIError"}],"statusCode":409}

This means that because the POST endpoint only takes CharacterID and level. One cannot provide name to it (and even if you try is doesn't receive it)
This means that player cannot provide

What is the endpoint and method? (if applicable)

Endpoint: CustomCharacter/

Method: POST

How can it be reproduced?

  1. Try to send character data to CustomCharacter endpoints while logged in (ie. have AccessToken) and one CustomCharacter has already been created.

What should it do instead?

Allow us to add a new CustomCharacter recardless if the name isn't unique.

@MikhailDeriabin
Copy link
Member

@BillTheBeast

It is probably due to old database schema wasn't updated. It should not return 409 normally. I will have a look at it now

@MikhailDeriabin MikhailDeriabin moved this from Backlog to In progress in Altzone-Server Feb 11, 2025
@MikhailDeriabin
Copy link
Member

Now it is fixed by updating DB schema

@github-project-automation github-project-automation bot moved this from In progress to Done in Altzone-Server Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants