Commit Graph

17 Commits

Author SHA1 Message Date
Konstantina Chremmou
4c033a6b44 CP-24196: Initial implementation of switching XenCenter to use the JsonRpc backend.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-09-13 17:15:11 +01:00
Mihaela Stoica
1e46c29e48 CA-249845: Compiling the server status reports sometime fails with Sy… (#1542)
* CA-249845: Compiling the server status reports sometime fails with System.IO.IOException: The process cannot access the file because it is being used by another process

Add a retry mechanism around the File.Move, because the operation sometimes fails when there is an anti-virus running on the XenCenter machine (we are doing the move immediately after we finished writing the file and the anti-virus software might be checking the file at that point)

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

* CA-249845: Compiling the server status reports sometime fails with System.IO.IOException: The process cannot access the file because it is being used by another process

Extract the move with retry into a separate function

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2017-04-21 17:29:39 +01:00
Mihaela Stoica
0ad2e19458 CA-242397: Fix format exception caused by incorrect chunk reading
Improved the ReadHttpHeaders function, by making sure that a chunk is read fully from the stream (the number of bytes read by the Stream.Read function can be less than the number of bytes requested, so we need to continue reading until the required number of bytes is read)

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2017-02-10 12:21:59 +00:00
Mihaela Stoica
a9785f0efc Bring latest Http.cs from bindings 2017-02-10 12:19:56 +00:00
Konstantina Chremmou
88b4104dac Moved the ProxyAuthenticationMethod enum to the HTTP class so the VNCControl can compile.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-01-20 14:47:04 +00:00
Frezzle
3522e2980d [CP-19111] Added ability to choose Basic or Digest authentication for proxy server
2 new radio buttons in Connection Options page, for Basic and Digest; Digest is the default as it's the most secure.
New proxy authentication method setting, which is used to configure XenAPI's HTTP class and the .NET AuthenticationManager (which handles which authentication schemes can be used by the .NET web classes).
The new setting is also transferred and used by the Health Check service.

The bug noted in CA-214653 also occurs here, but the work-around on PR#1201 for that bug will also work for this.

Signed-off-by: Frezzle <frederico.mazzone@citrix.com>
2016-10-12 19:09:35 +01:00
Frezzle
bcefa6ab9e [CP-17231] Implement proxy authentication setting in XenCenter
Added comment on why we don't use StreamReader, for future reference.
Changed lambda syntax to more compact version, for readability.

Signed-off-by: Frezzle <frederico.mazzone@citrix.com>
2016-06-27 11:08:58 +01:00
Frezzle
bf4cf16b81 [CP-17231] Implement proxy authentication setting in XenCenter
Moved MD5Hash function from EncryptionUtils to HTTP class.
Replaced unnecessary new string/List-related functions with existing methods.
Removed redundant string.IsNullOrEmpty() call.
Changed duplicate hotkey in Connection Options page.

Signed-off-by: Frezzle <frederico.mazzone@citrix.com>
2016-06-24 11:49:55 +01:00
Frederico Mazzone
7ec3442f40 [CP-17401] Use Proxy authentication in Health Check Service
Now transfers proxy credentials in encrypted format and checks for default empty credentials when loading them for first time.
Fixed a break in unit test in HTTP.ReadHttpHeaders().

Signed-off-by: Frederico Mazzone <fredericom@citrite.net>
2016-06-22 17:10:25 +01:00
Frederico Mazzone
46c15efe57 [CP-17231] Implement proxy authentication setting in XenCenter
Added 2 textboxes for proxy username and password; encrypted when saved and decrypted when loaded.
Added 2 checkboxes; one for bypassing proxy for xenserver connections, one for providing proxy credentials.
Removed checkbox for bypassing proxy for local addresses.
Controls are no longer enabled/disabled when the related proxy option is selected/deselected.
Making changes to a control (e.g. username, bypass checkbox, etc) selects the 'Use this proxy server' option automatically.
Removed "Bypass proxy server for local addresses" option.
Basic and Digest authentication implemented. Tested with FreeProxy (Basic+Digest), CCProxy (Basic) and AnalogX Proxy (no authentication); each were tested with correct credentials, incorrect credentials and missing credentials; all gave expected results.

Signed-off-by: Frederico Mazzone <fredericom@citrite.net>
2016-06-20 17:15:00 +01:00
Rob Hoes
27bd60a77f Update to latest XenAPI bindings
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
2016-01-29 15:40:49 +00:00
Cheng Zhang
1485a056e9 CP-15399: Make xsupdate rebrandable
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2016-01-22 13:50:12 +08:00
Stephen Turner
3e38b34437 CA-178981: Make the HTTP API work through XenCenter for TLS 1.2 servers 2015-08-06 16:39:39 +01:00
Mihaela Stoica
6fc2252035 CP-10072: Update XenCenter with latest C# bindings
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2014-10-21 15:18:33 +01:00
Gabor Apati-Nagy
58649f9916 CA-140647: Customer is not getting the list of updates when ever they select the "Check for Updates" option from the tools menu within Xencenter.
-Added 'Host:' to HTTP headers for all the HTTP GET and PUT requests sent by XenCenter.
This change will presumably fix network issues occurring when going through certain corporate firewalls/proxies.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
2014-07-16 17:37:40 +01:00
Mihaela Stoica
35877640e0 CA-137485: Updated XenModel with the new API bindings with serializable exceptions
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2014-07-03 10:00:05 +01:00
Mihaela Stoica
bd36a85bff CP-4816: Initial commit to git repo
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2013-06-24 12:41:48 +01:00