Azure / Azure/azure-functions-host

`System.Text.Encodings.Web` unification fails

Open
#5,555 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

With the change, https://github.com/Azure/azure-functions-host/pull/4941/files#diff-d5895fb65b7134016ebadf4693f0af87L1329-L1332 , we had to relax unification rules.

However, it looks like even `System.Text.Encodings.Web` unification fails even when the function app is targeting the exact version that Host transiently depends on.

A repro function app --
1. Create a function app, and as part of that app, create a separate Hostbuilder and a Host (may not be required, but our repro had a separate webhost).
2. Have a service that depends on `UrlEncoder` (our repro had a middleware). See it fail to resolve during runtime, but it works fine before the above change.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the unification-rule change in Azure Functions host PR 4941, especially the referenced lines 1329-1332. Reproduce the separate Hostbuilder and Host setup, then trace the runtime failure resolving UrlEncoder from System.Text.Encodings.Web. Done means the middleware resolves UrlEncoder when the function app targets the host's transient dependency version.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.