dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Cannot fetch api/v1/settings/pinner - breaks listing elements

Open mtz29 opened this issue 7 years ago • 7 comments

Installation method: cli kubectl
Kubernetes version: v1.15.3
Dashboard version: v2.0.0-beta5+0.g93474e5
Operating system: Ubuntu 18.04.2 LTS
Node.js version ('node --version' output): n/a
Go version ('go version' output): n/a
Steps to reproduce
  1. Use incognito mode to force fresh session opening
  2. Login with the config
  3. Go to Custom Resources Definition
  4. Go to overview
Observed result

Missing items in the lists

Expected result

Lists containing all the items

Comments

After first login, there's query /api/v1/settings/pinner with 401 response, which triggers script exception:

Uncaught TypeError: Cannot read property 'length' of undefined
    at t.isPinned (main.d9fca64efc90054cfeab.js:1)
    at t.isPinned (main.d9fca64efc90054cfeab.js:1)
    at Object.updateDirectives (main.d9fca64efc90054cfeab.js:1)
    at Object.updateDirectives (main.d9fca64efc90054cfeab.js:1)
    at Eb (main.d9fca64efc90054cfeab.js:1)
    at Pb (main.d9fca64efc90054cfeab.js:1)
    at Ib (main.d9fca64efc90054cfeab.js:1)
    at Eb (main.d9fca64efc90054cfeab.js:1)
    at Pb (main.d9fca64efc90054cfeab.js:1)
    at Rb (main.d9fca64efc90054cfeab.js:1)

After refreshing website everything comes back to normal.

Screenshot_20191112_145847

mtz29 avatar Nov 12 '19 15:11 mtz29

Latest beta5 added support to K8S v1.16. This partially breaks compatibility with v1.15 and older K8S versions due to some breaking changes in client-go.

https://github.com/kubernetes/dashboard/releases/tag/v2.0.0-beta5

As you can see in the compatibility matrix, we do not guarantee full compatibility. If this will happen with K8S v1.16+ then it will be a bug. Reopen if you encounter the same issue with newer K8S.

/close

floreks avatar Nov 12 '19 16:11 floreks

@floreks: Closing this issue.

In response to this:

Latest beta5 added support to K8S v1.16. This partially breaks compatibility with v1.15 and older K8S versions due to some breaking changes in client-go.

https://github.com/kubernetes/dashboard/releases/tag/v2.0.0-beta5

As you can see in the compatibility matrix, we do not guarantee full compatibility. If this will happen with K8S v1.16+ then it will be a bug.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Nov 12 '19 16:11 k8s-ci-robot

Latest beta5 added support to K8S v1.16. This partially breaks compatibility with v1.15 and older K8S versions due to some breaking changes in client-go.

https://github.com/kubernetes/dashboard/releases/tag/v2.0.0-beta5

As you can see in the compatibility matrix, we do not guarantee full compatibility. If this will happen with K8S v1.16+ then it will be a bug. Reopen if you encounter the same issue with newer K8S.

/close

Issue persists in 1.16.2

mtz29 avatar Nov 12 '19 17:11 mtz29

/open

mtz29 avatar Nov 12 '19 17:11 mtz29

/reopen

floreks avatar Nov 12 '19 17:11 floreks

@floreks: Reopened this issue.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Nov 12 '19 17:11 k8s-ci-robot

Uncaught TypeError: Cannot read property 'length' of undefined
    at t.isPinned (main.d9fca64efc90054cfeab.js:1)
    at t.isPinned (main.d9fca64efc90054cfeab.js:1)
    at Object.updateDirectives (main.d9fca64efc90054cfeab.js:1)
    at Object.updateDirectives (main.d9fca64efc90054cfeab.js:1)
    at Eb (main.d9fca64efc90054cfeab.js:1)
    at Pb (main.d9fca64efc90054cfeab.js:1)
    at Ib (main.d9fca64efc90054cfeab.js:1)
    at Eb (main.d9fca64efc90054cfeab.js:1)
    at Pb (main.d9fca64efc90054cfeab.js:1)
    at Rb (main.d9fca64efc90054cfeab.js:1)

Does this mean that we need to make an empty judgment on the object that gets the length property in the front-end script code? @floreks

zehuaiWANG avatar Nov 14 '19 02:11 zehuaiWANG