Project

General

Profile

Actions

Bug #36215

closed

foreman_webhooks UI crashes if too much select-items are specified

Added by Markus Bucher about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

While testing #36166 foreman_webhooks-plugin crashes with the following error message after trying to create a new Webhook.
The tested REX-PR adds more events that can be selected from the webhooks-UI.
The hypothesis is that the used Form-elements throw this error if the number of select-items are "too much".
It worked before, when the number of events was ~50 and failed when the REX-PR increased the number of events to ~100.

MyError: The push method cannot be invoked on an Immutable data structure.
    in TypeaheadContainer(WrappedTypeahead) (created by FieldInner)
    in div (created by Col)
    in Col (created by FormField)
    in div (created by FormGroup)
    in FormGroup (created by FormField)
    in FormField (created by FieldInner)
    in FieldInner (created by Context.Consumer)
    in FormikConnect(FieldInner) (created by ForemanFormikField)
    in ForemanFormikField (created by WebhookFormTabs)
    in div (created by WebhookFormTabs)
    in section (created by Context.Consumer)
    in TabContentBase (created by ForwardRef)
    in ForwardRef (created by Tabs)
    in Tabs (created by WebhookFormTabs)
    in WebhookFormTabs (created by WebhookForm)
    in form (created by Form)
    in Form (created by Formik)
    in Formik (created by ForemanForm)
    in ForemanForm (created by WebhookForm)
    in WebhookForm (created by ConnectedWebhookForm)
    in ConnectedWebhookForm (created by WebhookCreateModal)
    in div (created by ModalBody)
    in ModalBody (created by ForemanModal)
    in div (created by CustomModalDialog)
    in div (created by CustomModalDialog)
    in div (created by CustomModalDialog)
    in CustomModalDialog (created by Modal)
    in Transition (created by Fade)
    in Fade (created by DialogTransition)
    in DialogTransition (created by Modal)
    in RefHolder (created by Modal)
    in div (created by Modal)
    in Portal (created by Modal)
    in Modal (created by Modal)
    in Modal (created by ForemanModal)
    in ForemanModal (created by ConnectedForemanModal)
    in ConnectedForemanModal (created by WebhookCreateModal)
    in WebhookCreateModal (created by WebhooksIndexPage)
    in WebhooksIndexPage (created by Context.Consumer)
    in Route
    in Switch (created by ForemanSwitcher)
    in ForemanSwitcher (created by AppSwitcher)
    in AppSwitcher (created by ReactApp)
    in ErrorBoundary (created by ReactApp)
    in div (created by LayoutContainer)
    in LayoutContainer (created by Layout)
    in Layout (created by ConnectedLayout)
    in ConnectedLayout (created by ReactApp)
    in Router (created by ConnectedRouter)
    in ConnectedRouter (created by Context.Consumer)
    in ConnectedRouterWithContext (created by ConnectFunction)
    in ConnectFunction (created by ReactApp)
    in ApolloProvider (created by ReactApp)
    in div (created by ReactApp)
    in ReactApp (created by I18nProviderWrapper(ReactApp))
    in IntlProvider (created by I18nProviderWrapper(ReactApp))
    in I18nProviderWrapper(ReactApp) (created by StoreProvider(I18nProviderWrapper(ReactApp)))
    in Provider (created by StoreProvider(I18nProviderWrapper(ReactApp)))
    in StoreProvider(I18nProviderWrapper(ReactApp)) (created by DataProvider(StoreProvider(I18nProviderWrapper(ReactApp))))
    in DataProvider(StoreProvider(I18nProviderWrapper(ReactApp)))

Actions #1

Updated by Markus Bucher about 1 year ago

  • Found in Releases Nightly added
Actions #2

Updated by Oleh Fedorenko about 1 year ago

  • Status changed from New to Assigned
  • Assignee set to Oleh Fedorenko
Actions #3

Updated by Oleh Fedorenko about 1 year ago

  • Project changed from Foreman to Webhooks
  • Category deleted (Web Interface)
  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot about 1 year ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_webhooks/pull/56 added
Actions #5

Updated by Oleh Fedorenko 12 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF