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

fix(API): encodeURIComponent for each path element #8646

Merged
merged 2 commits into from
Jan 20, 2021

Conversation

christopherthielen
Copy link
Contributor

@christopherthielen christopherthielen commented Oct 12, 2020

Re-submittal of reverted PR #8586

I chose to make the first .one()/.all() exempt from encoding so legacy code like API.one('/foo/bar').one(param) will still work.

@christopherthielen christopherthielen added the ready to merge Reviewed and ready for merge label Jan 20, 2021
@mergify mergify bot merged commit e78115e into spinnaker:master Jan 20, 2021
caseyhebebrand added a commit that referenced this pull request Jan 21, 2021
b0139a6 feat(core/loadBalancer): Filter by load balancer type (#8850)
5e45b85 feat(core/pipeline): Add the ability to disable base os options (#8851)
dde8513 fix(core/pipelines): break and wrap long comments text (#8748)
e78115e fix(API): encodeURIComponent for each path() element (#8646)
mergify bot pushed a commit that referenced this pull request Jan 21, 2021
b0139a6 feat(core/loadBalancer): Filter by load balancer type (#8850)
5e45b85 feat(core/pipeline): Add the ability to disable base os options (#8851)
dde8513 fix(core/pipelines): break and wrap long comments text (#8748)
e78115e fix(API): encodeURIComponent for each path() element (#8646)
@jervi
Copy link
Contributor

jervi commented Jan 26, 2021

@christopherthielen This PR breaks fetching of builds from (some?) CI systems, at least Travis but probably also Jenkins. To reproduce, start a manual execution of a pipeline with a build trigger set.
image
This is the call that fails: https://github.com/spinnaker/deck/blob/master/app/scripts/modules/core/src/ci/igor.service.ts#L36
job here can contain slashes that should not be urlEncoded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Reviewed and ready for merge target-release/1.25
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants