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

404 error if username contains a dot #484

Closed
NWylynko opened this issue Mar 25, 2020 · 2 comments
Closed

404 error if username contains a dot #484

NWylynko opened this issue Mar 25, 2020 · 2 comments
Labels

Comments

@NWylynko
Copy link

if a user sets there username so it contains a dot, the api will return a 404 error when requesting the user data. i set my username to nick14.4 but when i send a request to http://conduit.productionready.io/api/profiles/nick14.4 it returns a 404. on the demo website going to a users page that has a dot in the username just kicks you back to the home page. for example if u go to my profile https://demo.realworld.io/#/@nick14.4 it just redirects to https://demo.realworld.io/#/

@ambrt
Copy link

ambrt commented Jun 2, 2021

There something slightly different going on. Basically the api is cutting the name of user after dot.
so for example "asdf.asdf" is retrieved as "asdf".

If someone will happen to be named "asdf.asdf" he will get profile of different user named just "asdf"

@geromegrignon
Copy link
Contributor

Closing this issue as the new temporary server (https://realworld-temp-api.herokuapp.com/api) doesn't include this bug.

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

3 participants