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
{{ message }}
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: