Uploaded image for project: 'Hybrid Application Console'
  1. Hybrid Application Console
  2. HAC-2809

UseK8sWatchResource forms partially encoded query strings parameters.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Core
    • None
    • False
    • False
    • None

      Description:

      Using MatchExpression selector in UseK8sWatchResource method does not completely encode the URL query string parameters.

      eg:

       matchExpressions: [
              {
                key: appstudio.openshift.io/component,
                operator: 'In',
                values: components?.map((c) => c.metadata.name),
              },
            ], 

      results in partially encoded query string parameters in URL :

      https://console.dev.redhat.com/api/k8s/apis/tekton.dev/v1beta1/namespaces/mreid1/pipelineruns?labelSelector=appstudio.openshift.io%2Fcomponent%20in%20(2023-app-devfile-sample-python-basic-3vph-sample)&limit=250

       

      If the resource name starts with numbers (2023-app) and then this is API request is failing with 403 Access denied errors.

            spadgett@redhat.com Samuel Padgett
            karthik.jk Karthik Jeeyar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: