Bug 1964980 - If loading dynamic plugin times out, the UI throws a syntax error
Summary: If loading dynamic plugin times out, the UI throws a syntax error
Keywords:
Status: CLOSED DUPLICATE of bug 1964941
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-26 13:24 UTC by Tomas Jelinek
Modified: 2021-05-26 18:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-26 18:35:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tomas Jelinek 2021-05-26 13:24:41 UTC
Description of problem:
The timeout for loading a dynamic plugin is hardcoded 10 seconds. If the plugin does not load in this time, the UI receives an incomplete JS and fails on syntax error.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. have a dynamic plugin which loads longer than 10 seconds
2. load the UI

Actual results:
1: The UI fails on a syntax error
2: There is no way to configure a longer timeout - e.g. no command line option while starting the bridge process to workaround the issue
3: The 10s timeout feels like a bit too small for larger production setups

Expected results:
1: The UI will log an error saying that the plugin failed to load due to a timeout
2: There is a command line option to run the bridge with a longer timeout
3: The default timeout is much longer than 10s. 

Additional info:
The timeout is in pkg/server/server.go

Comment 1 Samuel Padgett 2021-05-26 18:35:28 UTC
Looks like this is the same as bug 1964941.

*** This bug has been marked as a duplicate of bug 1964941 ***


Note You need to log in before you can comment on or make changes to this bug.