Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit 340adf9

Browse files
author
J Wyman
authored
Merge pull request #605 from whoisj/create-1.15.2
Prepare v1.15.2
2 parents dcc1c26 + 557369f commit 340adf9

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

Cli-Askpass/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[assembly: AssemblyTrademark("Microsoft Corporation")]
1313
[assembly: AssemblyCulture("")]
1414
[assembly: Guid("62f52119-63d4-40a8-a9df-f1c4b473308a")]
15-
[assembly: AssemblyVersion("1.15.1.0")]
16-
[assembly: AssemblyFileVersion("1.15.1.0")]
15+
[assembly: AssemblyVersion("1.15.2.0")]
16+
[assembly: AssemblyFileVersion("1.15.2.0")]
1717
[assembly: NeutralResourcesLanguage("en-US")]
1818
[assembly: InternalsVisibleTo("Microsoft.Alm.AskPass.Test")]

Cli-CredentialHelper.Test/OperationArgumentsTests.cs

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void EmailAsUserName()
9090
var input = new InputArg
9191
{
9292
Host = "example.visualstudio.com",
93-
Password = "ḭncorrect",
93+
Password = "incorrect",
9494
Path = "path",
9595
Protocol = Uri.UriSchemeHttps,
9696
Username = "[email protected]"
@@ -121,6 +121,34 @@ public void EmailAsUserName()
121121
Assert.Equal(expected, actual, StringComparer.Ordinal);
122122
}
123123

124+
[Fact]
125+
public void UsernameWithDomain()
126+
{
127+
var input = new InputArg
128+
{
129+
Host = "example.visualstudio.com",
130+
Password = "incorrect",
131+
Path = "path",
132+
Protocol = Uri.UriSchemeHttps,
133+
Username = @"DOMAIN\username"
134+
};
135+
136+
OperationArguments cut;
137+
using (var memory = new MemoryStream())
138+
using (var writer = new StreamWriter(memory))
139+
{
140+
writer.Write(input.ToString());
141+
writer.Flush();
142+
143+
memory.Seek(0, SeekOrigin.Begin);
144+
145+
cut = new OperationArguments(memory);
146+
}
147+
148+
Assert.Equal(@"https://DOMAIN\[email protected]/path", cut.TargetUri.ToString(), StringComparer.Ordinal);
149+
Assert.Equal(input.ToString(), cut.ToString(), StringComparer.Ordinal);
150+
}
151+
124152
[Fact]
125153
public void CreateTargetUriGitHubSimple()
126154
{

Cli-CredentialHelper/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
[assembly: AssemblyTrademark("Microsoft Corporation")]
1313
[assembly: AssemblyCulture("")]
1414
[assembly: Guid("62f52119-63d4-40a8-a9df-f1c4b473308a")]
15-
[assembly: AssemblyVersion("1.15.1.0")]
16-
[assembly: AssemblyFileVersion("1.15.1.0")]
15+
[assembly: AssemblyVersion("1.15.2.0")]
16+
[assembly: AssemblyFileVersion("1.15.2.0")]
1717
[assembly: NeutralResourcesLanguage("en-US")]
1818
[assembly: InternalsVisibleTo("Microsoft.Alm.CredentialHelper.Test")]
1919
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]

Cli-Shared/OperationArguments.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ private static bool NeedsToBeEscaped(string value)
543543
{
544544
case ':':
545545
case '/':
546+
case '\\':
546547
case '?':
547548
case '#':
548549
case '[':

0 commit comments

Comments
 (0)