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

#1359, Admin UI: return empty relation when filter by invalid Remote IP #1360

Conversation

Ivanov-Anton
Copy link
Collaborator

Description

On the Logs->Api Logs index page we have "Remote IP" filter and when User filter using invalid IP somethink like "127.0.0." then YETI app returns 500 error which is wrong. I suggest to return empty relation in this case.

Additional links

closes #1359

@Ivanov-Anton Ivanov-Anton self-assigned this Oct 25, 2023
@Ivanov-Anton Ivanov-Anton changed the title #1359, remote empty relation in case when filter by invalid IP #1359, remote empty relation in case when filter by invalid Remote IP Oct 25, 2023
@Ivanov-Anton Ivanov-Anton force-pushed the YETIWEB-improve-remote-ip-filter-on-the-api-log-page branch from c6f8385 to 88648a8 Compare October 25, 2023 12:24
@Ivanov-Anton Ivanov-Anton requested review from dmitry-sinina and gigorok and removed request for gigorok and dmitry-sinina October 25, 2023 13:52
@Ivanov-Anton Ivanov-Anton marked this pull request as draft October 25, 2023 13:54
@Ivanov-Anton Ivanov-Anton force-pushed the YETIWEB-improve-remote-ip-filter-on-the-api-log-page branch from 88648a8 to 182bac1 Compare October 25, 2023 14:27
@Ivanov-Anton Ivanov-Anton marked this pull request as ready for review October 25, 2023 18:05
…lid remote_ip

On the "Logs"->"Api Logs" index page we have a "Remote IP" filter,
and when the User filters with invalid IP something like "127.0.0."
then the YETI app returns a 500 error which is wrong.
In such a case I suggest returning an empty relation in this case.
@Ivanov-Anton Ivanov-Anton force-pushed the YETIWEB-improve-remote-ip-filter-on-the-api-log-page branch from 182bac1 to 1fec27c Compare October 25, 2023 18:30
@Ivanov-Anton Ivanov-Anton changed the title #1359, remote empty relation in case when filter by invalid Remote IP #1359, Admin UI: return empty relation when filter by invalid Remote IP Oct 25, 2023
@gigorok gigorok merged commit 001fdcb into yeti-switch:master Oct 26, 2023
12 checks passed
@Ivanov-Anton Ivanov-Anton deleted the YETIWEB-improve-remote-ip-filter-on-the-api-log-page branch October 26, 2023 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

500 error when Admin try to filter Api Logs with incorrect (invalid) IP
2 participants