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

Fix URL Path Handling Issues in Django and Spring Analyzers #450

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

ksg97031
Copy link
Member

@ksg97031 ksg97031 commented Nov 6, 2024

This PR addresses two issues in the URL handling logic within Django and Spring analyzers.

Fixes

  • Django Analyzer: Added @visited_url_paths to track and avoid duplicate processing of URL paths, optimizing endpoint extraction.
  • Spring Analyzer: Introduced a size check for class_annotation.params[0] to prevent potential out-of-bounds errors during URL extraction.

Testing

The updates were tested to ensure accurate endpoint extraction and to prevent any unintended behavior changes.

@ksg97031 ksg97031 self-assigned this Nov 6, 2024
@github-actions github-actions bot added the 🔬 analyzer Issue for Analyzer label Nov 6, 2024
@ksg97031 ksg97031 force-pushed the fix/django-spring-url-handling branch from 40d1924 to 14c63fb Compare November 6, 2024 15:55
@ksg97031 ksg97031 merged commit 2c94d8a into dev Nov 6, 2024
10 checks passed
@ksg97031 ksg97031 deleted the fix/django-spring-url-handling branch November 6, 2024 15:58
@hahwul hahwul added this to the NextVersion milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔬 analyzer Issue for Analyzer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants