Skip to content
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.

Spaces in author name causes 500 Error in suggestions/author endpoint #13

Open
bilalesi opened this issue Dec 2, 2024 · 0 comments
Open

Comments

@bilalesi
Copy link

bilalesi commented Dec 2, 2024

Description:
When making a request to /api/literature/suggestions/author, spaces in the name parameter cause a 500 error. For example:
• /api/literature/suggestions/author?name=jing%20yuan&limit=100 returns a 500 error.
• /api/literature/suggestions/author?name=jing&limit=100 works correctly.

Adding a space (e.g., “jing y”) triggers the issue. This appears to be related to how spaces in the name parameter are handled.

Steps to Reproduce:
1. Make a request to /api/literature/suggestions/author with a name containing a space (e.g., jing yuan).
2. Observe the 500 error response.

Expected Behavior:
The API should handle spaces in the name parameter and return suggestions as expected.

Actual Behavior:
The API returns a 500 error when spaces are included in the name parameter.

Additional Context:
This might be related to encoding or input sanitization issues.

@bilalesi bilalesi changed the title Spaces in author name causes 500 Error in /api/literature/suggestions/author Spaces in author name causes 500 Error in suggestions/author endpoint Dec 2, 2024
@KeremKurban KeremKurban self-assigned this Dec 2, 2024
@KeremKurban KeremKurban removed their assignment Dec 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants