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

JS error "Invalid array length" #586

Closed
Wadeck opened this issue Feb 25, 2021 · 2 comments
Closed

JS error "Invalid array length" #586

Wadeck opened this issue Feb 25, 2021 · 2 comments

Comments

@Wadeck
Copy link

Wadeck commented Feb 25, 2021

This request for example: https://plugins.jenkins.io/ui/search/?sort=installed&categories=&labels=ui&view=Tiles&page=50&query= leads to a regular page to load, then JS magic happened and the page becomes blank.

RangeError: Invalid array length
    at t.a.pageRange (Pages.jsx:21)
    at t.a.render (Pages.jsx:42)
[...]

Easy to reproduce, just look for any plugin, use the last page (50), then click on a category on the left => blank page.
This is not problematic with "Android development" but is with "List view column plugins", so it seems the code is buggy ;)

@halkeye
Copy link
Member

halkeye commented Feb 25, 2021

Thats so weird. It doesn't break at all in dev mode. I'm going to have to dig into this.

@halkeye
Copy link
Member

halkeye commented Feb 25, 2021

Okay, tracked it down. It based on the original plugin site's pagination system. I replaced it with a module that handles it and edge cases way better.

I have a PR ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants