Skip to content

ApplicationSet not found Toast #23571

@jaqxues

Description

@jaqxues

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

We use applications and applicationsets in any namespace. Using these in non-default namespaces leads to bugs in the UI. On /applications/<namespace-of-app>/<app-name>, we get Failed to load data, please try again. on the top left (next to Sync status), as well as a toast error message "ApplicationSet not found", as in the image below.

The generated network request is going to https://argocd.<...>/api/v1/applicationsets/<app-set-name>?namespace=<app-set-namespace>. However, according to https://cd.apps.argoproj.io/swagger-ui, the query parameter namespace should be appsetNamespace. The network request returns a 404, but works with this modification. I think this request is generated here, and it should suffice to rename namespace to appsetNamespace here:

// Potential fix
 .query({appsetNamespace: namespace}) 

To Reproduce

Setup ArgoCD for applications and applicationsets in any namespace, generate an application from an applicationset in the non-default namespace.

Expected behavior

No error, query correct.

Screenshots

Image

Version
Unfortunately, we have issues with the offline_access scope in our Keycloak, so I cannot argocd login. The version on the UI is however v3.1.0+414d9eb.

Paste the output from `argocd version` here.

Logs

Paste any relevant application logs here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponent:application-setsBulk application management relatedcomponent:uiUser interfaces bugs and enhancements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions