truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.14k stars 617 forks source link

Traefik: Unable to save config with Custom Request/Response Headers #10511

Closed sselph closed 1 year ago

sselph commented 1 year ago

App Name

Traefik

SCALE Version

22.02.3

App Version

2.10.1_18.1.1

Application Events

NA

Application Logs

NA

Application Configuration

image

Describe the bug

Placing a value in the new custom header middleware and attempting to save results in the following JS console error.

TypeError: Cannot read properties of undefined (reading '0')
    at app-schema.service.ts:272:36
    at Array.map (<anonymous>)
    at Ae.serializeFormList (app-schema.service.ts:270:17)
    at Ae.serializeFormValue (app-schema.service.ts:232:19)
    at app-schema.service.ts:248:26
    at Array.forEach (<anonymous>)
    at Ae.serializeFormGroup (app-schema.service.ts:245:29)
    at app-schema.service.ts:273:21
    at Array.map (<anonymous>)
    at Ae.serializeFormList (app-schema.service.ts:270:17)

Debugging seems to point to a potential issue in the how the config is parsed. The line that fails is the following and fieldSchemaNode.schema has no items

// TODO: Consider refactoring.
if (fieldSchemaNode?.schema?.items[0]?.schema?.type === ChartSchemaType.Dict) {
    return this.serializeFormGroup(listItem, schema);
}

To Reproduce

  1. Goto Traefik
  2. Edit Config
  3. Add a config under Middleware for Custom Request Headers or Custom Response Headers
  4. Click Save
  5. Nothing happens

Expected Behavior

I would expect the config to be saved and a new middleware value to be available .

Screenshots

NA

Additional Context

NA

I've read and agree with the following

stavros-k commented 1 year ago

Upstream bug that is fixed already in the next release

truecharts-admin commented 1 year ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists