Skip to content

fix: encode ASM tag names in delete requests - #735

Open
Max Gorbuk (mkzung) wants to merge 2 commits into
censys:mainfrom
mkzung:fix/asm-delete-tag-encoding
Open

Max Gorbuk (mkzung) wants to merge 2 commits into
censys:mainfrom
mkzung:fix/asm-delete-tag-encoding

Conversation

@mkzung

Copy link
Copy Markdown

Description

Deleting the ASM tag team#1 sends team because Requests treats #1 as a URL fragment.

Changes

Encode tag names as one path segment across ASM asset types. Reject exact . and .. names before any request because URL normalization changes their route. Add regression tests for reserved characters and dot segments.

Checklist

  • Locked Ruff lint/format, mypy and lockfile checks pass.
  • Python 3.9 and 3.13: 507 passed, 14 skipped, 100% coverage on macOS arm64 in fresh environments.
  • Regression tests fail with the original code and with the dot guard removed; local HTTP roundtrips preserve names.

Linux/Windows CI and live API tag-name validation were not run. Python 3.9 emits a LibreSSL warning; HTTPS interoperability was not tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant