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

Multiple escaping occurs on Jenkins URLs at certain folder depth #8048

Merged
merged 3 commits into from
Oct 7, 2020

Conversation

medains
Copy link
Contributor

@medains medains commented Aug 28, 2020

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated. (no applicable)
  • Has appropriate unit tests.

Appending when the capacity of the slice does not change results in a reference to the same location in memory, resulting in the call to PathEscape on combinedEscaped changing the contents of jr.parents mysteriously.

Co-author: @hansnqyr
@medains medains changed the title Multiple escaping occurs on Jenkins URLs at certain folder depth WIP: Multiple escaping occurs on Jenkins URLs at certain folder depth Aug 28, 2020
@medains medains changed the title WIP: Multiple escaping occurs on Jenkins URLs at certain folder depth Multiple escaping occurs on Jenkins URLs at certain folder depth Aug 28, 2020
@JS1010111
Copy link
Contributor

Please someone merge this PR.

I have compiled this branch and tested the fix with lots of weird (production) paths and folder depths including spaces, hyphens and special chars. Worked flawlessly.

Thank you @medains !

@zak-pawel
Copy link
Collaborator

Tested few mine job paths - seems to work.
LGTM 👍

@ssoroka ssoroka merged commit 7f7703b into influxdata:master Oct 7, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
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.

4 participants