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

Add fix to handle improperly parsed station names from getStation #963

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

andreleblanc11
Copy link
Member

Spawned from my audit script.

It saw a bulletin , a UECN99, crashing sr3 on the new NCP servers. Turns out the getStation method inside sarracenia/bulletin.py is technically wrong and Sundew has a way of handling these errors better than sr3.

I added a fix where we only want alphanumeric data to pass through for the station (3 to 5 characters). This fixes this issue but its possible that other non-valid alphanumeric stations pass through. Only time will tell.

FYI : The Sundew way of handling the error could not be found.

@petersilva petersilva merged commit d2a9b08 into development Mar 8, 2024
27 of 37 checks passed
@petersilva petersilva changed the title Add fix to handle unproperly parsed station names from getStation Add fix to handle improperly parsed station names from getStation Mar 9, 2024
@petersilva petersilva deleted the am_handle_bad_stations branch March 24, 2024 17:06
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.

2 participants