You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
If a user has a TagHelper and sets its order to int.MinValue, it'll run before the UrlResolutionTagHelper. Now, if that same TagHelper calls output.SuppressOutput() it will then force the TagHelperOutputs tag name to null. The problem this introduces is the UrlResolutionTagHelper relies on the TagName not being null when looking up corresponding attribute values for the tag so it ends up exploding here.
We should check if TagName == null and if so, bail early.
The text was updated successfully, but these errors were encountered:
Would other taghelper types be affected by this same issue? the code that has the error seems applicable in many tag helpers (do we have more cases like this on our codebase)? /cc: @NTaylorMullen
Very possible. Would have to give them a closer look or build out a sample to verify. When we wrote them initially we tried to ensure they could react to other TagHelpers in the pipeline; however, that was lower priority. We covered a lot of cases but obviously not everything 😄
If a user has a
TagHelper
and sets its order toint.MinValue
, it'll run before theUrlResolutionTagHelper
. Now, if that sameTagHelper
callsoutput.SuppressOutput()
it will then force theTagHelperOutput
s tag name tonull
. The problem this introduces is theUrlResolutionTagHelper
relies on theTagName
not beingnull
when looking up corresponding attribute values for the tag so it ends up exploding here.We should check if
TagName == null
and if so, bail early.The text was updated successfully, but these errors were encountered: