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

fixes for handling LinkIds #211

Merged
merged 9 commits into from
Oct 2, 2023
Merged

fixes for handling LinkIds #211

merged 9 commits into from
Oct 2, 2023

Conversation

robfitzgerald
Copy link
Collaborator

this PR contains two fixes for buggy behavior surrounding LinkIds:

  • removes the use of literal_eval in link_id. this was probably intended to coerce values to be an integer, but creates an unnecessary security issue (code injection) and seems to fail with python 3.10 for handling both strings and ints. this is the desired behavior, since Haversine LinkIds are \w+-\w and Osm LinkIds are \d+-\d+.
  • adds a specialized extract_node_ids_int operation for OSM networks for this exact case
  • some logging added around building OSM networks

Copy link
Collaborator

@nreinicke nreinicke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call on pulling out the literal_eval, I had forgotten that even existed down there. Everything else looks good too

@robfitzgerald robfitzgerald merged commit c353d05 into main Oct 2, 2023
5 checks passed
@robfitzgerald robfitzgerald deleted the rjf/remove-eval branch October 2, 2023 22:16
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