[NoMerge] StringValues convert to Empty Array#330
Conversation
|
Heads up, the original change was reverted. We'll reintroduce it more cautiously by doing full universe builds before merging. |
|
@benaadams this change matches our best theory on how to mitigate the risks of the other changes. Can you cherry pick your prior commits back into this PR? Have you run a full universe build before? |
Never :) Sounds big... |
|
Will have a browse at https://github.com/aspnet/Universe |
|
The gist is that you make your changes in your branch and push them. Then you clone universe including submodules, update the Common submodule to point at your branch/commit, and then build the root universe. |
654c885 to
f21bab9
Compare
|
Know what I need installed for IISIntegration? |
|
Ah, ok |
|
Is there a way to get Universe builds to log? When it goes wrong I just get a thousand lines of red, but can't scroll back to see what the initial error was as it fills the console buffer pretty fast |
|
Pipe to file? |
|
Use |
|
Piror to change, Think this is just it being grumpy Need to find what fails with change |
|
A lot of test errors seem to be
|
|
@Tratcher public static TheoryData<string, StringValues, StringValues> NullHeaderData
{
get
{
var dataset = new TheoryData<string, StringValues, StringValues>();
// Unknown headers
dataset.Add("NullString", (string)null, (string)null);
dataset.Add("EmptyString", "", "");
dataset.Add("NullStringArray", new string[] { null }, "");
dataset.Add("EmptyStringArray", new string[] { "" }, "");
dataset.Add("MixedStringArray", new string[] { null, "" }, new string[] { "", "" });
// Known headers
dataset.Add("Location", (string)null, (string)null);
dataset.Add("Location", "", (string)null);
dataset.Add("Location", new string[] { null }, (string)null);
dataset.Add("Location", new string[] { "" }, (string)null);
dataset.Add("Location", new string[] { "a" }, "a");
dataset.Add("Location", new string[] { null, "" }, (string)null);
dataset.Add("Location", new string[] { null, "", "a", "b" }, new string[] { "a", "b" });
return dataset;
}
} |
|
Actually with aspnet/HttpAbstractions#1010 it might bring them completely inline |
|
Except dropping nulls from arrays that contain values also; which it does for known headers (backed that change out in the previous PR) |
* Ensures our build stays clean of NuGet warnings

/cc @halter73 @Tratcher @dougbu