Skip to content

fix(dotcli): Fix error when pulling folder with parentheses #32258

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

Merged
merged 6 commits into from
Jun 2, 2025

Conversation

gortiz-dotcms
Copy link
Contributor

@gortiz-dotcms gortiz-dotcms commented May 28, 2025

Problem

The code was getting the folder as an asset when it had parentheses or a special character on the name, because it was trying to do a replace on the name with the replaceFirst function, which handles the first argument as a regex, so as the name has a special character (in this scenario parentheses), it was recognizing it as a regex which led to be treated as an asset, and finally throwing Asset not found error

Fix

Pattern.quote was added to handle the string as literal

This PR fixes: #32075

@erickgonzalez erickgonzalez added this pull request to the merge queue Jun 2, 2025
Merged via the queue into main with commit 8b29fe1 Jun 2, 2025
37 checks passed
@erickgonzalez erickgonzalez deleted the issue-32075-dot-cli-parentheses-issue branch June 2, 2025 16:26
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.

When a folder contains Parentheses dotCLI pulls error.
3 participants