Skip to content

fix(evs): allow SendEventWithAppID for caller own AppId during startup - #2820

Open
philphauler wants to merge 1 commit into
nasa:devfrom
philphauler:fix-2663-evs-illegal-appid
Open

fix(evs): allow SendEventWithAppID for caller own AppId during startup#2820
philphauler wants to merge 1 commit into
nasa:devfrom
philphauler:fix-2663-evs-illegal-appid

Conversation

@philphauler

Copy link
Copy Markdown
Contributor

Fixes #2663

During cFE startup, ES/EVS tasks call SendEventWithAppID before full registration. If AppID equals caller AppId via EVS_GetCurrentContext, proceed instead of ILLEGAL_APP_ID. Prevents startup event loss.

AI Used: y - reviewed.

@philphauler
philphauler force-pushed the fix-2663-evs-illegal-appid branch from d9a8083 to 742f2b4 Compare August 29, 2026 14:42
@dzbaker

dzbaker commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

@philphauler Thank you for your contribution. Please resolve the workflow failures.

…tartup

During cFE startup ES/EVS tasks may call SendEventWithAppID before full registration. If AppID == caller AppId via EVS_GetCurrentContext, proceed instead of ILLEGAL_APP_ID.
@philphauler
philphauler force-pushed the fix-2663-evs-illegal-appid branch from 742f2b4 to 66b61e3 Compare August 31, 2026 15:22

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There seem to be two issues in the new startup branch. The current source contains literal backslashes in CFE_RESOURCEID_TEST_EQUAL\(callerAppId, AppID\), which will not compile. More importantly, on a caller-ID match it sets Status = CFE_SUCCESS but never routes callerAppData through the filtering/generation path, so the API reports success without emitting the event. Could the caller context be fed through the normal event path instead?

@philphauler

Copy link
Copy Markdown
Contributor Author

Onnit will fix 🫡🙌

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unregistered AppId error with CFE_EVS_SendEventWithAppID() during cFE task startup

3 participants