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

urlencode download suffix #1327

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Conversation

LawyZheng
Copy link
Collaborator

@LawyZheng LawyZheng commented Dec 5, 2024

Important

Encode download_suffix in BaseTaskBlock to prevent invalid path styles.

  • Behavior:
    • Encode download_suffix using urllib.parse.quote in format_potential_template_parameters() in BaseTaskBlock to prevent invalid path styles.

This description was created by Ellipsis for 06ab839. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 06ab839 in 12 seconds

More details
  • Looked at 21 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/models/block.py:250
  • Draft comment:
    Consider using quote_plus instead of quote if spaces in the download_suffix should be encoded as + instead of %20.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of quote with safe="" is correct for encoding the download suffix, but it might be more appropriate to use quote_plus if spaces need to be encoded as + instead of %20. This depends on the intended use of the encoded string.

Workflow ID: wflow_dQXJJs6pVl4fZAsj


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@LawyZheng LawyZheng merged commit da4e145 into main Dec 5, 2024
2 checks passed
@LawyZheng LawyZheng deleted the lawy/url-encode-download-suffix branch December 5, 2024 16:54
satansdeer pushed a commit to satansdeer/skyvern that referenced this pull request Dec 12, 2024
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.

1 participant