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
Clusters with slashes in name cannot be fetched by UI #9812
Labels
bug
Something isn't working
component:api
API bugs and enhancements
component:ui
User interfaces bugs and enhancements
Comments
10 tasks
erhudy
added a commit
to erhudy/argo-cd
that referenced
this issue
Nov 4, 2022
Fixes argoproj#9812 If a cluster name has a slash in it, the API would not be able to fetch that cluster and would display "in-cluster (undefined)" for that application. This fixes that issue by URI-encoding the cluster name on the UI side and URI-decoding the cluster name on the API side. Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com>
erhudy
added a commit
to erhudy/argo-cd
that referenced
this issue
Nov 7, 2022
Fixes argoproj#9812 If a cluster name has a slash in it, the API would not be able to fetch that cluster and would display "in-cluster (undefined)" for that application. This fixes that issue by URI-encoding the cluster name on the UI side and URI-decoding the cluster name on the API side. Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com>
crenshaw-dev
pushed a commit
that referenced
this issue
Nov 17, 2022
* fix: #9812 UI can now get clusters with slashes in name Fixes #9812 If a cluster name has a slash in it, the API would not be able to fetch that cluster and would display "in-cluster (undefined)" for that application. This fixes that issue by URI-encoding the cluster name on the UI side and URI-decoding the cluster name on the API side. Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> * Retrigger CI pipeline Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com>
crenshaw-dev
pushed a commit
that referenced
this issue
Nov 17, 2022
* fix: #9812 UI can now get clusters with slashes in name Fixes #9812 If a cluster name has a slash in it, the API would not be able to fetch that cluster and would display "in-cluster (undefined)" for that application. This fixes that issue by URI-encoding the cluster name on the UI side and URI-decoding the cluster name on the API side. Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> * Retrigger CI pipeline Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com>
crenshaw-dev
pushed a commit
that referenced
this issue
Nov 17, 2022
* fix: #9812 UI can now get clusters with slashes in name Fixes #9812 If a cluster name has a slash in it, the API would not be able to fetch that cluster and would display "in-cluster (undefined)" for that application. This fixes that issue by URI-encoding the cluster name on the UI side and URI-decoding the cluster name on the API side. Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> * Retrigger CI pipeline Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com>
crenshaw-dev
pushed a commit
that referenced
this issue
Nov 17, 2022
* fix: #9812 UI can now get clusters with slashes in name Fixes #9812 If a cluster name has a slash in it, the API would not be able to fetch that cluster and would display "in-cluster (undefined)" for that application. This fixes that issue by URI-encoding the cluster name on the UI side and URI-decoding the cluster name on the API side. Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> * Retrigger CI pipeline Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com>
ashutosh16
pushed a commit
to ashutosh16/argo-cd
that referenced
this issue
Nov 23, 2022
…goproj#9813) * fix: argoproj#9812 UI can now get clusters with slashes in name Fixes argoproj#9812 If a cluster name has a slash in it, the API would not be able to fetch that cluster and would display "in-cluster (undefined)" for that application. This fixes that issue by URI-encoding the cluster name on the UI side and URI-decoding the cluster name on the API side. Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> * Retrigger CI pipeline Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com>
emirot
pushed a commit
to emirot/argo-cd
that referenced
this issue
Jan 27, 2023
…goproj#9813) * fix: argoproj#9812 UI can now get clusters with slashes in name Fixes argoproj#9812 If a cluster name has a slash in it, the API would not be able to fetch that cluster and would display "in-cluster (undefined)" for that application. This fixes that issue by URI-encoding the cluster name on the UI side and URI-decoding the cluster name on the API side. Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> * Retrigger CI pipeline Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com> Signed-off-by: emirot <emirot.nolan@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
component:api
API bugs and enhancements
component:ui
User interfaces bugs and enhancements
Checklist:
argocd version
.Describe the bug
If a cluster name has a slash in it (and I would guess possibly other characters that need to be URL-encoded), the API will return a 403 instead of information on that cluster, presumably because it is interpreting the extra slashes as part of an API route and not the name of the cluster.
To Reproduce
in-cluster (undefined)
.Expected behavior
The cluster should be fetched as normal.
Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: