Skip to content

RDKBWIFI-538: Reject webconfig set when the owning handler is not registered yet - #1304

Open
dkyncu wants to merge 1 commit into
rdkcentral:developfrom
dkyncu:fix_webconfig_set_silent_drop
Open

RDKBWIFI-538: Reject webconfig set when the owning handler is not registered yet#1304
dkyncu wants to merge 1 commit into
rdkcentral:developfrom
dkyncu:fix_webconfig_set_silent_drop

Conversation

@dkyncu

@dkyncu dkyncu commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

During startup the webconfig south element is registered with the bus mux before the WifiCtrl component maps its user set handler. A set arriving in that window hit "if (user_cb->set_handler != NULL)" with no else branch, so rbus_set_handler returned success while silently dropping the payload. The EasyMesh agent's Vap subdocs sent right after WSC M2 were lost this way and onboarding deadlocked. Return bus_error_destination_not_found so the setter learns the delivery failed.

…istered yet

During startup the webconfig south element is registered with the bus mux
before the WifiCtrl component maps its user set handler. A set arriving in
that window hit "if (user_cb->set_handler != NULL)" with no else branch, so
rbus_set_handler returned success while silently dropping the payload. The
EasyMesh agent's Vap subdocs sent right after WSC M2 were lost this way and
onboarding deadlocked. Return bus_error_destination_not_found so the setter
learns the delivery failed.

Signed-off-by: Durmus Koyuncu <durmus.kyncu.kd@gmail.com>
Copilot AI review requested due to automatic review settings July 29, 2026 12:20
@dkyncu
dkyncu requested a review from a team as a code owner July 29, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a startup race in the RDKB RBUS “set” callback path where a set request could arrive before the owning component’s set_handler is mapped, causing the payload to be silently dropped while still returning success. The change makes the failure explicit by returning a destination-not-found error so the setter can retry or handle delivery failure.

Changes:

  • Add an explicit else branch when user_cb->set_handler is not registered to reject the set instead of silently succeeding.
  • Log a clear error message indicating the handler is not registered yet (startup window).
  • Return RBUS_ERROR_DESTINATION_NOT_FOUND via bus_error_destination_not_found conversion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Nikita-Hakai Nikita-Hakai added the community contribution Contributions from community. label Jul 30, 2026
@dkyncu

dkyncu commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Hi @mateuszCieslak-GL

Could you please review this? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community contribution Contributions from community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants