Skip to content

Conversation

@josbol
Copy link
Contributor

@josbol josbol commented Oct 17, 2025

Small improvement to the ProcessAuthorization method in FunctionsAuthorizeBindingProvider. It adds a null check for the FunctionNameAttribute to prevent potential null reference exceptions.

Reason: The functions registered by Microsoft.Azure.WebJobs.Extensions.OpenApi 1.5.1 do not have any function name attributes (at least, that's what it looks like when debugging).

Added null check for nameAttr before registration.

At least in the case of the endpoints added by Microsoft.Azure.WebJobs.Extensions.OpenApi, the attribute is not present.
…ttribute

Add null check for FunctionNameAttribute
Added a new entry for version 4.2.1 detailing a check for FunctionNameAttribute during binding execution in InProcess mode.
@artmasa artmasa merged commit 167cb9c into dark-loop:master Oct 22, 2025
1 check passed
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.

2 participants