Skip to content

Commit a08c41c

Browse files
2021.2 Patch 5 release
1 parent 79bf5e2 commit a08c41c

21 files changed

+984
-609
lines changed

Diff for: LICENSE.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022, Perforce Software, Inc. All rights reserved.
1+
Copyright (c) 2023, Perforce Software, Inc. All rights reserved.
22

33
Redistribution and use in source and binary forms, with or without
44
modification, are permitted provided that the following conditions are met:
@@ -40,7 +40,7 @@ this program.
4040

4141
P4/P4API License
4242
-----------------------
43-
Copyright (c) 1995-2022, Perforce Software, Inc.
43+
Copyright (c) 1995-2023, Perforce Software, Inc.
4444
All rights reserved.
4545

4646
Redistribution and use in source and binary forms, with or without

Diff for: RELEASENOTES.txt

+38
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,44 @@ Key to symbols used in change notes below.
105105
** -- requires P4API.NET built with new P4API
106106
*** -- requires new p4d server program
107107

108+
--------------------------------------------------------------------------
109+
110+
Bug fixed in 2021.2 Patch 5
111+
112+
#2394629 *
113+
Property 'CommandTimeout' in class 'Connection' is marked as
114+
Obsolete, as it is no longer valid.
115+
116+
--------------------------------------------------------------------------
117+
118+
Bug fixed in 2021.2 Patch 4 (2021.2/2393847) (2023/01/18)
119+
120+
#2390047 (Job #113519) * **
121+
Fixed the issue where AccessViolationException (Attempted to
122+
read or write protected memory) was thrown while using
123+
multi-threaded environment
124+
125+
--------------------------------------------------------------------------
126+
127+
New functionality in 2021.2 Patch 3
128+
129+
#2334385 (Job #111968) * **
130+
Added support for the p4Debug.SetLevel() functionality from C++ API
131+
132+
--------------------------------------------------------------------------
133+
134+
Bugs fixed in 2021.2 Patch 3
135+
136+
#2352032 (Job #112528) * **
137+
Fixed the issue where loading p4bridge.dll was causing invalid
138+
environment for other libraries
139+
140+
--------------------------------------------------------------------------
141+
142+
Bugs fixed in 2021.2 Patch 2
143+
144+
#2350293 (Job #112567) * **
145+
Fixed unnecessary extra login calls, when creating P4Server object.
108146

109147
--------------------------------------------------------------------------
110148

Diff for: p4api.net-unit-test/ConnectionTest.cs

+9-4
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,8 @@ public void LoginTest2()
15991599
Assert.AreEqual(target.Server.State, ServerState.Online);
16001600
Assert.AreEqual(target.Status, ConnectionStatus.Connected);
16011601

1602+
target.getP4Server().SetTicketFile(configuration.TestP4Tickets);
1603+
16021604
// login as alex/alexei
16031605
Credential cred2 = target.Login(pass);
16041606
Assert.IsNotNull(cred2);
@@ -1615,7 +1617,6 @@ public void LoginTest2()
16151617
}
16161618
finally
16171619
{
1618-
P4Bridge.ReloadEnviro();
16191620
Utilities.RemoveTestServer(p4d, TestDir);
16201621
p4d?.Dispose();
16211622
}
@@ -1704,7 +1705,7 @@ public void LoginTestjob080984()
17041705
try
17051706
{
17061707
ticketPath = Environment.ExpandEnvironmentVariables(tpath);
1707-
1708+
17081709
// make sure the ticket file exists
17091710
// Create the file, or overwrite if the file exists.
17101711
using (FileStream fs = System.IO.File.Create(ticketPath))
@@ -1750,8 +1751,9 @@ public void LoginTestjob080984()
17501751
envVar = target.GetP4EnvironmentVar("P4TICKETS");
17511752
Assert.AreEqual(envVar, ticketPath);
17521753

1753-
// now remove it
1754-
target.SetP4EnvironmentVar("P4TICKETS", "");
1754+
// now reset it
1755+
target.SetP4EnvironmentVar("P4TICKETS", configuration.TestP4Tickets);
1756+
target.getP4Server().SetTicketFile(configuration.TestP4Tickets);
17551757

17561758
// BUG #2) No other way to pass the ticket to the api
17571759
// but setting the environment variable through .Net,
@@ -1897,6 +1899,9 @@ public void LoginTestWithNullClient()
18971899
Assert.AreEqual(target.Server.State, ServerState.Online);
18981900
Assert.AreEqual(target.Status, ConnectionStatus.Connected);
18991901

1902+
// use the Test .p4tickets file
1903+
target.getP4Server().SetTicketFile(configuration.TestP4Tickets);
1904+
19001905
// set the connection Client to null
19011906
target.Client = null;
19021907
Credential cred = target.Login(pass);

0 commit comments

Comments
 (0)