Skip to content

[Bug] Incorrect attribute assignment in BROADCAST strategy of AbstractHttpSinkHandler #5177

Closed
@cnzakii

Description

@cnzakii

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Mac

EventMesh version

master

What happened

In the BROADCAST strategy of AbstractHttpSinkHandler, the attributes map is updated within the loop instead of being assigned once before the loop. This causes a logic error that may prevent the callback operation from executing properly.

Expected behavior:

The attributes.put(MultiHttpRequestContext.NAME, new MultiHttpRequestContext(urls.size())) statement should be placed outside the loop to ensure that the attribute is set only once, rather than being overwritten in each iteration.

Image

How to reproduce

None

Debug logs

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueIssues for first-time contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions