Skip to content

io.ReadAll error ignored in feedback handler (line 526) #1873

@rishi-jat

Description

@rishi-jat

User Request

Type: bug
Submitted by: @rishi-jat
Console Request ID: 55f1e71f-ea9a-47bb-b2ab-dd3654b51a73

Description

What happened:
In pkg/api/handlers/feedback.go at line 526, body, _ := io.ReadAll(resp.Body) discards the error. A partial response is silently treated as complete.

What I expected:
Check the error from io.ReadAll.

Steps to reproduce:

  1. Open pkg/api/handlers/feedback.go, line 526
  2. See body, _ := io.ReadAll(resp.Body)
  3. Error is discarded

This issue was automatically created from the KubeStellar Console.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions