Skip to content

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

Merged
ssoroka merged 3 commits intoinfluxdata:masterfrom
medains:master
Oct 7, 2020
Merged

Multiple escaping occurs on Jenkins URLs at certain folder depth#8048
ssoroka merged 3 commits intoinfluxdata:masterfrom
medains:master

Conversation

@medains
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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