Compare commits

..

1253 Commits

Author SHA1 Message Date
Dimitrij
a8077149b9 Merge pull request #1662 from GreyCorbel/release/v1.76
Added support for password retrieval via AdmPwd.E 7.7.1
2021-11-01 12:51:33 +00:00
Dimitrij
51514d78e6 Merge branch 'release/v1.76' into release/v1.76 2021-11-01 12:51:22 +00:00
Jiri Formacek
42f60b0db3 Updated to use AdmPwd.E 7.7.2 2020-01-01 14:25:01 +01:00
Jiri Formacek
5aec72f164 Updated to 1.76.20 with AdmPwd.E 7.7.1 2019-12-25 23:31:04 +01:00
David Sparer
068f5942e7 updated changelog and bumped version to 1.76.20 2019-04-12 08:38:06 -05:00
David Sparer
703cefaf19 ensure rdcman import never sets properties to null. fixes #1401 2019-04-12 08:24:05 -05:00
Sean Kaim
ea1f72b8b7 bump version and changelog update 2019-04-04 15:44:34 -04:00
Sean Kaim
993b6759cc Update PuTTYNG.exe
Reference #1374
2019-04-04 15:41:55 -04:00
David Sparer
15f23769d6 bumped version to v1.76.18 and updated changelog 2019-03-20 09:33:21 -05:00
Sean Kaim
2d175fd575 border fix for puttyng 0.70.0.1+ -- backported from develop 2019-03-20 10:21:56 -04:00
David Sparer
bdeb4b4dcc bumped version to v1.76.17 and updated changelog 2019-03-20 07:32:27 -05:00
David Sparer
bdfbb57504 updated puttyng to 0.71
fixes #1362
2019-03-20 07:29:13 -05:00
David Sparer
6c89913bc6 updated changelog 2019-03-14 17:58:53 -05:00
David Sparer
efa72cb697 bumped version to 1.76.16 2019-03-14 17:58:43 -05:00
David Sparer
a31fec5fb9 encrypt correct db field
fixes #1347
2019-03-14 17:35:28 -05:00
David Sparer
ed81030976 bumped v1.76.15 release date 2019-03-09 11:21:21 -06:00
David Sparer
54322ca949 updated changelog 2019-03-08 10:41:57 -06:00
David Sparer
738b159e95 handle sql first-run case
fixes #1303
2019-03-08 10:31:39 -06:00
David Sparer
e8f2e4f50c bumped patch version 2019-03-04 11:45:07 -06:00
David Sparer
5cd201440e added tests for the disposable action class 2019-03-04 11:44:30 -06:00
David Sparer
5c6c76b898 one more parse bug fix 2019-03-04 11:30:34 -06:00
David Sparer
4847ce054b resolved several parsing bugs in the rdcman deserializer 2019-03-04 11:17:45 -06:00
David Sparer
ec42fe7d7d improved testability of the import class 2019-03-04 11:17:19 -06:00
David Sparer
07a20ed5ad batch saves when importing connection files
This reduces saves/backup overwrites when importing multiple files
2019-03-04 08:41:27 -06:00
Sean Kaim
08201b0f00 Port FIPS override back to 1.76
Fixes #222
2019-02-08 16:51:58 -05:00
Sean Kaim
92416b4661 test build for running with FIPS enabled
Reference #222
2018-12-22 19:19:11 -05:00
David Sparer
75e0b8f4c2 set release date in changelog 2018-11-08 15:09:08 -06:00
David Sparer
8d29ff2d61 fixes #1168 2018-11-04 19:13:10 -06:00
David Sparer
eea79da1ae updated changelog 2018-11-04 18:06:14 -06:00
David Sparer
cb5447f86e fixes #1181 2018-11-04 18:03:39 -06:00
David Sparer
8cb31ad524 slight cleanup of Runtime class 2018-11-04 18:03:29 -06:00
David Sparer
6ca52a0db1 updated changelog 2018-11-04 16:39:25 -06:00
David Sparer
25e30672c8 bumped version to v1.76.12 2018-11-04 16:38:14 -06:00
David Sparer
abcab2aadf sql now encrypts and decrypts passwords 2018-11-03 18:28:53 -05:00
David Sparer
19bb8f7595 refactored db classes to expose tblRoot data 2018-11-03 11:02:26 -05:00
David Sparer
0427956e8b we can now prevent saving to the database when a save was triggered for a local-only property change
this will prevent unnecessary db saves
2018-11-03 10:34:30 -05:00
David Sparer
78bf40282a the IsExapnded property is no longer saved to the DB 2018-11-02 11:30:39 -05:00
David Sparer
6c6a82f8e6 minor cleanup 2018-11-02 11:03:25 -05:00
David Sparer
4b9cc7be08 Merge branch 'release/v1.76' into 1134_dont_save_connection_status_to_db
# Conflicts:
#	mRemoteV1/Connection/ConnectionsService.cs
2018-11-02 10:56:49 -05:00
David Sparer
dc2d6b8160 added a few debug messages to track db connection loading events 2018-11-02 10:45:18 -05:00
David Sparer
083456e33a fixed several event handle leaks #1173 2018-11-02 10:29:09 -05:00
David Sparer
80e43e8634 added a safety check to the previous session opener to only open sessions that aren't already open 2018-11-02 09:30:18 -05:00
David Sparer
e99b8ed453 hooked up the local settings serializer 2018-11-01 19:14:25 -05:00
David Sparer
4aba36b756 added classes to handle local connection properties when dealing with the DB 2018-11-01 16:37:30 -05:00
David Sparer
2ebf654973 added a ForEach extension for enumerables 2018-11-01 16:36:56 -05:00
David Sparer
f560fb86d8 moved database serializers to more logical place 2018-11-01 15:00:51 -05:00
David Sparer
21e51c8455 updated changelog and credits 2018-10-18 17:08:30 -05:00
David Sparer
3234896caf bumped version 2018-10-18 17:08:22 -05:00
David Sparer
b00dd1c5f5 fixes #1136 2018-10-17 17:48:16 -05:00
David Sparer
992a3f9d1c cherrypicked pr #1145
Fixing "Reconnect to previously opened sessions on startup"
2018-10-17 16:52:22 -05:00
David Sparer
1c12b52ada extension to the fix for #1124 2018-10-07 18:32:17 -05:00
David Sparer
722fe40899 updated changelog and bumped version 2018-10-07 16:33:29 -05:00
David Sparer
b2e7ebf43d fixed #1124 2018-10-07 16:28:09 -05:00
David Sparer
3ed8e768aa bumped patch version 2018-10-07 09:04:48 -05:00
David Sparer
d362691389 updated build scripts to include debug symbols and normalized github
asset names

cherrypicked from the develop branch
2018-10-07 07:53:31 -05:00
David Sparer
4b7c54d5b5 updated changelog 2018-10-07 07:28:57 -05:00
David Sparer
ec80a5aa70 fixed #1117 2018-09-30 13:19:35 -05:00
David Sparer
0c95f178ca updated changelog 2018-09-30 11:04:03 -05:00
David Sparer
e0405b15df fixes #1110 2018-09-30 11:02:01 -05:00
David Sparer
e029f30acf added a few try/catch blocks around some rdp code. related to #853 2018-09-30 10:44:22 -05:00
David Sparer
44ed836b7c fixed #1115 2018-09-29 12:14:44 -05:00
David Sparer
00401201d1 fixed Spanish translation issue. fixes #1112 2018-09-27 08:23:17 -05:00
David Sparer
20f46bea61 fixes #1106 2018-09-20 15:10:43 -05:00
Sean Kaim
a5d22d287c Fixed #1091 2018-08-28 14:59:07 -04:00
Sean Kaim
793095900b fix #1092
parse enums properly
2018-08-28 09:35:08 -04:00
David Sparer
f10e54e47b bumped assembly version to 1.76.8 2018-08-25 10:31:35 -05:00
David Sparer
704e0c1dc1 updated changelog 2018-08-25 10:29:43 -05:00
David Sparer
0c79a9acde fixes #1088 2018-08-24 14:43:08 -05:00
David Sparer
ebfc2715e7 updated changelog 2018-08-24 13:24:23 -05:00
David Sparer
b0dbc9dc18 only delete reg key value if the value exists 2018-08-24 13:23:52 -05:00
David Sparer
507cdf75a5 fixes #1087 2018-08-24 13:23:02 -05:00
David Sparer
8f8492b0be xml deserializer now gives connections an ID if the ID string in xml is empty
fixes #1082
2018-08-24 10:37:54 -05:00
David Sparer
457e715188 set assembly version to 1.76.7 and set release date in changelog 2018-08-22 10:59:45 -05:00
David Sparer
1724521ebf added some null guards to methods 2018-08-22 07:06:44 -05:00
David Sparer
b0fb3596aa added some safety checks around accessing putty registry settings 2018-08-22 07:06:16 -05:00
David Sparer
fb228d72b1 resolved bug #1076 2018-08-19 11:44:43 -05:00
David Sparer
916361a3be update changelog 2018-08-11 20:03:27 -05:00
David Sparer
408c40f699 fixed a few toolbar location loading edge cases
related to #1068
2018-08-11 10:02:07 -05:00
David Sparer
4173f6d775 swapped direct calls to Monitor with a lock statement and added a few method comments 2018-08-11 06:47:31 -05:00
Sean Kaim
e6f3c22064 code clean up / add'l checks
related to #1061
2018-08-03 10:13:31 -04:00
David Sparer
a013518eac bump assembly version 2018-08-03 08:51:44 -05:00
David Sparer
9c88cacb3d hopefully a fix for #1061 2018-08-03 08:33:51 -05:00
David Sparer
d49bf04b15 fixes #1062 2018-08-03 08:13:39 -05:00
David Sparer
1dbd5dc5bc set 1.76.5 release date in changelog 2018-08-02 18:15:33 -05:00
David Sparer
c103706a54 added test to verify #1057 2018-08-02 17:55:36 -05:00
David Sparer
b0a027df52 updated changelog 2018-08-02 17:49:50 -05:00
David Sparer
868641378a Merge pull request #1055 from mRemoteNG/647_save_symbols
647 save symbols
2018-08-02 16:34:04 -05:00
David Sparer
11baae3107 applying patch provided by Toomix in #1057 and merged in 7dbef77 2018-08-01 07:01:45 -05:00
David Sparer
ed8125042e make portable symbols zip file name easier to distinguish from regular symbols 2018-07-30 17:02:08 -05:00
David Sparer
25b2655d0f log which files are uploaded to github release 2018-07-30 16:55:09 -05:00
David Sparer
145a264154 handle wildcard in github asset upload file path 2018-07-30 16:45:55 -05:00
David Sparer
3e33170ae0 handle non-auto hidden notification panel focusing too 2018-07-30 15:23:59 -05:00
David Sparer
d18bf68f0e fix release tests 2018-07-30 14:12:17 -05:00
David Sparer
368917e108 accidentally left off the variable identifier for msbuild 2018-07-30 11:16:04 -05:00
David Sparer
cdea4c3911 missed a groovy var 2018-07-30 11:02:05 -05:00
David Sparer
b4b9b55bbf updated jenkins publish script to target msbuild15 2018-07-30 10:59:21 -05:00
David Sparer
6092c63df4 fix zipping symbols 2018-07-30 08:03:40 -05:00
David Sparer
fda5132184 zip symbols 2018-07-29 22:22:13 -05:00
Sean Kaim
6a9fb25a18 fixes #868
DialogResult is not currently checked, so it's a minimal/non-impact bug currently. But it's fixed now in case it's used in the future...
2018-07-29 21:30:11 -04:00
Sean Kaim
18d7344690 fixes #762
Increased button size by about 150%
2018-07-29 21:16:19 -04:00
Sean Kaim
ba50cf20a0 update changelog 2018-07-29 21:03:54 -04:00
Sean Kaim
7bd6e126e2 Fix #893
Disabled ClickOnce/Publish wihtin the project options.
2018-07-29 21:02:33 -04:00
Sean Kaim
f7521c81d5 Fixes #1052
and some code clean up
2018-07-29 19:03:21 -04:00
David Sparer
f483a2dc2f replaced Timer implementation with Task async call
fixes #1052
2018-07-29 12:02:41 -05:00
Sean Kaim
9769d5af06 changelog update 2018-07-28 22:31:26 -04:00
Sean Kaim
0a2dc3563e fixes #1040
clicking close would have the same effect. Check return code and don't open the connection unless user input has been provided.
2018-07-28 22:30:06 -04:00
Sean Kaim
e9f0157b2b code clean up 2018-07-28 22:15:11 -04:00
Sean Kaim
e8e566fcdd localization fixes 2018-07-28 22:10:17 -04:00
Sean Kaim
72b7d22cef localization fixes 2018-07-28 22:09:27 -04:00
Sean Kaim
f79da476fd options pages code clean up 2018-07-28 21:59:24 -04:00
Sean Kaim
ef31b7844c Merge pull request #1053 from mRemoteNG/cherry
Cherry picked commits for 1.76
2018-07-28 13:54:34 -04:00
Sean Kaim
f1ed1bf115 appveyor post build tests 2018-07-28 13:11:56 -04:00
Sean Kaim
23ea028965 don't run post build zip in appveyor 2018-07-28 13:11:10 -04:00
Sean Kaim
42046a614f Solution config was building wrong projects 2018-07-28 13:05:37 -04:00
Sean Kaim
36055f56e6 the post publish job in the appveyor.yaml in ps1 form 2018-07-28 13:05:28 -04:00
Sean Kaim
b693cb30fc Trim ConfigurationName 2018-07-28 13:03:27 -04:00
Sean Kaim
20377d4ff5 zip portable directly via powershell
Trying to fix appveyor artifact build
2018-07-28 13:03:16 -04:00
Sean Kaim
570d732b0e latest 7-zip 2018-07-28 13:03:00 -04:00
Sean Kaim
d9d2b1de70 code clean up (convert to expression body) 2018-07-28 13:02:36 -04:00
Sean Kaim
0a7eaaf36f minor code clean up 2018-07-28 13:02:25 -04:00
Sean Kaim
36dd3e496d minor code clean up 2018-07-28 13:02:14 -04:00
Sean Kaim
83fd914d7b code clean up 2018-07-28 13:01:41 -04:00
Sean Kaim
281c6b13fa minor code clean up
* No need to kick off the registry provider here (it's done already in PuttySessionsManager#StartWatcher())

* if (Directory.Exists(sessionsFolderPath)) thows an exception even though it should have just fallen through... but if (!Directory.Exists(sessionsFolderPath)) doesn't throw and logs a message with a graceful return????

IDK... I had a Uri.IsWellFormedUriString test in there to avoid the exception, but it seems unnecessary...
2018-07-28 13:01:06 -04:00
David Sparer
00b7b1221c fixes #1051 2018-07-28 09:03:57 -05:00
David Sparer
56cbf0ff3f fixes #1050 2018-07-28 07:52:57 -05:00
Sean Kaim
f852a4d341 minor code clean up 2018-07-27 17:02:51 -04:00
Sean Kaim
7c8c7d482a frmChoosePanel was not properly themed 2018-07-27 16:58:25 -04:00
Sean Kaim
9e95ae2cb0 code clean up 2018-07-27 16:45:38 -04:00
Sean Kaim
0d2d935f17 set default theme when themes disabled
Fixes #1039
Also some code clean up
2018-07-27 16:04:42 -04:00
Sean Kaim
eeb320a825 more clean up (use .ToString) 2018-07-27 14:50:44 -04:00
Sean Kaim
9452d4dbe3 Theme code clean up 2018-07-27 14:45:07 -04:00
Sean Kaim
03d2387cdd appveyor build for 1.76 branch 2018-07-27 14:44:35 -04:00
Sean Kaim
61b325ccb9 code clean up 2018-07-27 14:26:01 -04:00
Sean Kaim
e57de9a4de localized strings 2018-07-27 14:24:42 -04:00
Sean Kaim
96946f3a1e porting fix for #971 to 1.76 branch 2018-07-27 14:15:23 -04:00
David Sparer
8cd6fb7ae2 updated changelog 2018-07-26 13:40:53 -05:00
David Sparer
a5afa90790 fixes #1045 2018-07-26 13:39:12 -05:00
David Sparer
f634eb8d37 created tests for the config window to ensure property grid items correctly display for certain object types 2018-07-26 13:38:53 -05:00
David Sparer
694b61a67b added a property to expose the list of object properties being shown by the property grid
this will help a lot with testing the property grid/config window
2018-07-26 09:12:47 -05:00
David Sparer
88f0d00a15 minor style cleanup 2018-07-26 08:55:55 -05:00
David Sparer
e31088fd2e ensure that quick connect items always have a panel set, even if the con default Panel setting is empty
related to #802
2018-07-25 14:39:23 -05:00
David Sparer
1d7bb63710 ensure ConDefaultPanel has a default value
related to #802
2018-07-25 14:21:44 -05:00
David Sparer
af1ed5349f updated changelog 2018-07-25 08:08:35 -05:00
David Sparer
9dcf71dc31 new connection tree nodes will survive filtering until they exit edit mode
resolves #1038
2018-07-25 08:05:48 -05:00
David Sparer
8bf9af0ed8 updated changelog 2018-07-24 14:49:33 -05:00
David Sparer
aecfad5871 only access first array item if array has any items
resolves #1036
2018-07-24 14:49:01 -05:00
David Sparer
3edd155898 updated changelog 2018-07-24 12:55:27 -05:00
David Sparer
2c419c0b2e minor cleanup 2018-07-24 12:54:34 -05:00
David Sparer
2fb67e7042 fixed issue where the connection context menu wasn't using translated strings
The ctor for the context menu was being called before we loaded the desired culture, leading to the use of the English default strings. Resolves #1034
2018-07-24 12:54:20 -05:00
David Sparer
29483b2625 attached the file backup pruner to listen to connection file save events
resolves #1020
2018-07-23 12:53:03 -05:00
David Sparer
7fc59e79f3 bumped assembly version in preparation for next alpha release 2018-07-23 12:03:53 -05:00
David Sparer
79b3e21148 updated changelog 2018-07-23 12:02:09 -05:00
David Sparer
ee91117010 renamed function to be a bit more accurate 2018-07-23 11:54:49 -05:00
David Sparer
0548037ff3 added a few method summaries 2018-07-23 11:53:50 -05:00
David Sparer
46002632bb removed duplicate code 2018-07-23 11:52:38 -05:00
David Sparer
9659ac1611 added a dialog to prompt for action when decrypting a connection file fails 2018-07-23 11:51:58 -05:00
David Sparer
bbc497e68d added some quality of life methods to Optional 2018-07-23 08:03:03 -05:00
David Sparer
d7ec7574ad updated changelog 2018-07-20 14:54:42 -05:00
David Sparer
2f476d9e61 fix a null ref exception when importing from port scan without selecting a tree node. resolves #1030 2018-07-20 14:52:12 -05:00
David Sparer
c74f37f0de confirmer should return false if deletion target is null. found during regression testing 2018-07-20 12:31:59 -05:00
David Sparer
d27a62cbfc added some extra null checks in the rdcman importer 2018-07-20 07:26:38 -05:00
David Sparer
8029e491a3 Merge branch 'auto_save_during_sort' into release/v1.76 2018-07-18 14:53:26 -05:00
David Sparer
fe56268421 added a simple system to batch saves in the connection service 2018-07-18 14:53:02 -05:00
David Sparer
2db6fabbe9 reverted 3bdcf65 2018-07-18 14:52:12 -05:00
David Sparer
035e89801a reduce FrmMain minimum size to prevent issues with other system features. resolves #1024 2018-07-17 08:07:10 -05:00
David Sparer
3bdcf655fd suspend tree model events during sort, since this can produce a lot of changes 2018-06-25 15:15:46 -05:00
David Sparer
284755f298 fix tab ordering on port scan page 2018-06-23 09:03:25 -05:00
David Sparer
ad5eed96e7 fixed visual bug when filtering connection tree. resolves #993 2018-06-22 15:09:53 -05:00
David Sparer
431c830ea0 resize connection tree column width when calling expand all. related to #993 2018-06-22 13:56:22 -05:00
David Sparer
da047427a5 fix test 2018-06-21 20:33:32 -05:00
David Sparer
69da1dca5f added some tests of the connection tree duplicate function. related to #1004 2018-06-21 18:04:29 -05:00
David Sparer
cc61501f63 dont attempt to delete selected node if it is not a valid deletion target. resolves #1004 2018-06-21 17:35:42 -05:00
David Sparer
4ced2d3392 accidentally put a few changelog items under the wrong version 2018-06-21 16:51:41 -05:00
David Sparer
7c72bfdf6b connection tree now removes filtering when 'use filtering' option turned off. resolves #1002 2018-06-21 15:33:43 -05:00
David Sparer
b8878e1458 updated changelog 2018-06-21 08:35:29 -05:00
David Sparer
abd40cec1b removed duplicate disable/enable shortcut calls that was causing an issue. resolves #1001 2018-06-21 08:34:26 -05:00
David Sparer
cc18da4f28 updated changelog 2018-06-20 16:43:24 -05:00
David Sparer
1a39039162 reenable all hotkeys once file menu closes. Resolves #999 2018-06-20 16:42:58 -05:00
David Sparer
cf9dd72ea5 dont allow folder/connections to be added to the putty root node in connection tree. Resolves #998 2018-06-20 16:25:08 -05:00
David Sparer
b7cdf81665 ensure putty root node returns correct tree node type. Related to #998 2018-06-20 16:20:51 -05:00
David Sparer
8497a05fd1 resolves #991
fixed bug when deleting connection tree node when in filtered view
2018-06-13 14:34:05 -05:00
David Sparer
7db4eec45c fixed bug where the export screen was using new credential manager code that shouldn't be active yet 2018-06-03 10:45:29 -05:00
David Sparer
cd822b545a random stuff the ui designer regenerated 2018-06-03 10:45:06 -05:00
David Sparer
e872581d3c updated changelog 2018-06-03 09:50:42 -05:00
David Sparer
defe9e094c made opening an empty panel on startup configurable in options 2018-05-31 06:26:43 -05:00
David Sparer
5662735cb8 bumped assembly version for next pre-release 2018-05-25 18:01:32 -05:00
David Sparer
8646dce21b update jenkins build to use newest msbuild (enables c# 7 lang features) 2018-05-20 11:07:43 -05:00
David Sparer
99a3eabbaf updated changelog 2018-05-19 17:00:57 -05:00
David Sparer
c57bd386f2 dont try to connect to folders in quick connect menu. resolves #924 2018-05-19 16:57:34 -05:00
David Sparer
f2a52b03df menu bar can be moved when "lock toolbar position" is turned off. closes #902 2018-05-19 12:57:29 -05:00
David Sparer
860e1ccfaa fix a mismerged language item 2018-05-18 21:33:16 -05:00
David Sparer
49967b38d4 update changelog 2018-05-18 21:32:51 -05:00
David Sparer
36038fff6d fix minor code typo 2018-05-18 20:52:17 -05:00
David Sparer
c5958954b0 apply language later in app startup 2018-05-18 20:45:27 -05:00
David Sparer
d0d63016ca Merge branch 'pr_948_target' into release/v1.76
# Conflicts:
#	mRemoteV1/Resources/Language/Language.resx
#	mRemoteV1/UI/Forms/frmMain.Designer.cs
#	mRemoteV1/UI/Menu/ViewMenu.cs
2018-05-18 20:04:23 -05:00
David Sparer
35f2484adf Merge pull request #948 from farosch/translation
some changes regarding tranlsation
2018-05-18 18:41:06 -05:00
David Sparer
c2cf496ded updated changelog and credits 2018-04-29 12:00:08 -05:00
David Sparer
8a172f02a9 updated changelog and credits for #942 2018-04-19 08:08:44 -05:00
David Sparer
f27935ea61 Merge pull request #942 from sli-pro/develop
Made several strings translatable and added Russian translations
2018-04-19 07:58:16 -05:00
Faryan Rezagholi
043df0aec3 fixed wording 2018-04-14 11:56:01 +02:00
Faryan Rezagholi
63a2e18760 added missing items 2018-04-14 11:56:01 +02:00
Faryan Rezagholi
c3ced7ed03 fix: translations of main file menu items were not loaded 2018-04-14 11:56:01 +02:00
Faryan Rezagholi
f597e14b3d fix group box was not translatable 2018-04-14 11:56:01 +02:00
Faryan Rezagholi
aff4ba9115 fix: set labels dock mode to fill (wasnt displaying longer translated texts) 2018-04-14 11:56:01 +02:00
Faryan Rezagholi
554e0805e3 fix: title of options page was not translatable 2018-04-14 11:56:01 +02:00
Faryan Rezagholi
f4efa74a23 Added missing translation options in viewMenu.cs 2018-04-14 11:56:01 +02:00
Vladimir Semenov
ddc19587fa Edited and added a translation of the Russian language in the forms
- File/import
- File/Import from AD
- File/Export to File
- View/Lock Toolbar position
- View/Mylti SSH toolbar
- Tools/Options/Additionally
Related to question #940.
2018-04-10 13:41:34 +03:00
Vladimir Semenov
5f1232727e Edit and add a translation on the external tools form.
Added and corrected Russian and English translations in the external tools tab.
Adjusted the placement of components on the external tools form so that the text does not overlap during translation.
Related to question #940.
2018-04-10 09:58:59 +03:00
David Sparer
9c373e8f0a Merge pull request #938 from sli-pro/develop
Small visual correction of the forms
2018-04-07 11:25:55 -05:00
David Sparer
83942d788f Merge branch '916_default_properties_not_saving' into develop 2018-04-06 15:05:35 -05:00
David Sparer
73d6fec6f3 updated changelog 2018-04-06 15:05:00 -05:00
David Sparer
a37b5deaa1 finished updating some tests for default inheritance 2018-04-06 15:02:14 -05:00
Vladimir Semenov
3b9de847e7 Small visual correction of the forms
- for the main form set the minimum resolution 1140; 603.
- for the form of port scans, done visual editing of components.
2018-04-06 20:59:15 +03:00
David Sparer
924f1f1e48 improved tests for default connection info 2018-04-05 16:37:22 -05:00
David Sparer
7bdebbe25b Merge pull request #936 from sli-pro/develop
Update Language ru
2018-04-05 15:16:31 -05:00
David Sparer
8f46c25dc9 Merge pull request #935 from marcomsousa/develop
Update Language es
2018-04-05 15:15:04 -05:00
Vladimir Semenov
8bb4a03639 Update Language ru
Fix typos in Russian language
2018-04-05 18:51:47 +03:00
Marco Sousa
7b5bc5e057 Update Language es 2018-04-05 12:39:02 +02:00
David Sparer
35582a5e6a fixed bug with saving and loading default connection info data
updated tests to better cover this feature. related to #916
2018-03-22 16:54:50 -05:00
David Sparer
20340fd31f Merge pull request #913 from mRemoteNG/github-templates
Update .github templates
2018-03-22 07:44:10 -05:00
David Sparer
d6d7664b48 update readme shield 2018-03-14 19:30:25 -05:00
David Sparer
ce97e63876 bump version 2018-03-14 19:17:29 -05:00
David Sparer
378b98ff89 set release date 2018-03-14 19:09:02 -05:00
David Sparer
ce31199e57 updated changelog 2018-03-10 17:55:15 -06:00
David Sparer
227f3b2924 fix csv serialization bug where some empty fields would not be included
related to #911
2018-03-10 17:47:33 -06:00
David Sparer
5076f1354c fix bug where inheritance is incorrectly allowed on nodes under the root node after deserializing 2018-03-10 16:37:54 -06:00
Bennett Blodinger
e5a34388ae Update .github templates
Bumping up the quality of the templates with help from https://www.talater.com/open-source-templates
2018-03-09 09:46:03 -05:00
David Sparer
6a5f65c018 add a bit more documentation to the ps script that creates bulk connections 2018-03-09 08:08:29 -06:00
David Sparer
6d5f41b3d8 forgot to bump the stable branch when 1.75.7012 was released 2018-03-03 09:39:37 -06:00
David Sparer
64f10ead63 bump development channel download shield 2018-03-03 09:31:27 -06:00
David Sparer
575dae446f bump version and update changelog 2018-03-03 09:16:55 -06:00
David Sparer
9b438576f2 deserializing enums now ignores case. resolves #899 2018-02-27 09:48:09 -06:00
David Sparer
cbd32f1a07 added powershell script for creating bulk connections 2018-02-27 08:37:25 -06:00
David Sparer
516182ec40 the xml v2.6 schema must have the export field event if we dont use it. need to bump to v2.7 to get rid of it 2018-02-26 08:11:59 -06:00
David Sparer
4ad3a68d80 readded Export field to xml schema 2018-02-26 07:13:36 -06:00
David Sparer
2f9ba32c07 bump readme for development channel badge 2018-02-25 13:41:32 -06:00
David Sparer
dfc45a2904 update changelog 2018-02-25 12:59:58 -06:00
David Sparer
563fdffb67 fixed build scripts that publish to github
github no longer accepts tls1.0 connections, use tls1.2
2018-02-25 12:58:12 -06:00
David Sparer
f2e9c5e2c0 fixed issue with expanded property not being deserialized 2018-02-25 12:57:40 -06:00
David Sparer
86a591364c modified the xml serializer slightly to make it conform to the XSD file
This required all bools to be serialized to lower case which broke a few assumptions we made in the deserializer
2018-02-25 11:26:29 -06:00
David Sparer
2a82485f81 fixed build issue where installer wasnt being renamed with version number 2018-02-25 09:04:59 -06:00
David Sparer
e13549d361 fixed build issue where binary signatures were not being validated during release builds 2018-02-25 09:00:51 -06:00
David Sparer
a85c1bd7d3 bumped assembly and set release date 2018-02-24 15:19:09 -06:00
David Sparer
946679f490 dont attempt to close a tab if it is disposed 2018-02-24 15:09:09 -06:00
David Sparer
b6f27eac18 added another test and did some cleanup 2018-02-24 14:34:13 -06:00
David Sparer
2cc82145a3 csv serialization now fully preserves tree structure 2018-02-24 12:58:16 -06:00
David Sparer
2dae0f2d8e fix bug where sometimes containers would have their container flag turned off 2018-02-24 12:57:38 -06:00
David Sparer
412f6edc36 change guard checks to use extension method 2018-02-16 20:17:31 -06:00
David Sparer
764791b8e5 changed the Maybe type name to Optional, which is slightly more common 2018-02-16 20:17:30 -06:00
David Sparer
bd20d6ae7d moved classes to new namespace 2018-02-16 20:17:30 -06:00
David Sparer
8db0bf7bea make constant id readonly 2018-02-13 16:15:49 -06:00
David Sparer
cff6aa72fc update changelog 2018-02-13 14:38:58 -06:00
David Sparer
63ddf06057 Made port scan timeout configurable
resolves #648
2018-02-13 14:29:26 -06:00
David Sparer
3d9d57b7fa adding several tool chain dependencies 2018-02-09 13:09:58 -06:00
David Sparer
2c1734aea6 change post-build scripts to use bin tools from the repo
this should prevent some build issues new devs have and gives us more control over our build process
2018-02-08 16:11:16 -06:00
David Sparer
301c39aad0 update copyright 2018-02-08 15:39:35 -06:00
David Sparer
5be346c89d changed a few localized strings used by the initial connection file not found dialog 2018-02-04 19:44:39 -06:00
David Sparer
e4eaf0037e fixed an issue that was making bug #479 reappear 2018-02-04 19:14:03 -06:00
David Sparer
8f97be82cb added some more safety around retrieving inherited values 2018-02-04 19:08:29 -06:00
David Sparer
4ab7f92b82 reapply the quick connect focus bug fix provided in #651 2018-02-04 18:13:18 -06:00
David Sparer
0ec95a7729 Merge branch '625_deserialize_csv' into develop 2018-02-04 17:59:49 -06:00
David Sparer
98c38716cd updated changelog 2018-02-04 17:59:15 -06:00
David Sparer
6a46df780c did some refactoring
made IConnectionImporter generic to cut down on code
2018-02-04 16:00:50 -06:00
David Sparer
7788198f26 fixed an issue with serializing csv data with semi colons in fields 2018-02-04 11:52:26 -06:00
David Sparer
3010963283 hooked up csv deserialization to ui 2018-02-04 11:39:04 -06:00
David Sparer
6522524c0f added serialization for a few more inheritance properties 2018-02-04 10:32:18 -06:00
David Sparer
160434c114 Merge branch 'develop' into 625_deserialize_csv 2018-02-04 09:33:33 -06:00
David Sparer
36acb9ac12 update develop branch download badge 2018-02-01 21:38:10 -06:00
David Sparer
1a06783dab update changelog and credits 2018-02-01 21:13:42 -06:00
David Sparer
ec38ee9abc remove dead code 2018-02-01 20:54:24 -06:00
David Sparer
2e82551b7c fix toolbar location loading bug 2018-02-01 20:34:22 -06:00
David Sparer
49121fb945 remove deleted file from solution 2018-02-01 20:34:07 -06:00
David Sparer
6e436f55c3 Merge pull request #840 from jotatsu/develop
Fix themes on installer version, initial menu position fix
2018-02-01 20:32:59 -06:00
David Sparer
afb0131a28 save and load multi ssh toolbar position. resolves #846 2018-01-28 21:15:12 -06:00
David Sparer
92588282a6 always set file menu position to the top left 2018-01-28 21:14:42 -06:00
David Sparer
765e997976 Merge pull request #858 from Fyers/develop
fixed putty session name encoding - fixes #800
2018-01-26 20:39:39 -06:00
Sean Kaim
ddbf6a2e7a ports from dev for appveyor build 2018-01-25 12:35:32 -05:00
Sean Kaim
8567e912a3 add citrixReceiver.exe for appveyor 2018-01-25 12:25:48 -05:00
Sean Kaim
42e4f168d1 appveyor build status badge for master 2018-01-25 12:22:15 -05:00
Sean Kaim
7c98f2809c add appveyor.yml 2018-01-25 12:14:01 -05:00
Sean Kaim
e68b529a34 Merge branch 'develop' of https://github.com/mRemoteNG/mRemoteNG into develop 2018-01-25 12:13:29 -05:00
Sean Kaim
1ed4987277 Update appveyor.yml 2018-01-25 12:13:26 -05:00
Sean Kaim
a5d1f0995c appveyor badge for develop branch 2018-01-25 12:11:28 -05:00
Sean Kaim
b6951df72e fix link for translations 2018-01-25 11:09:15 -05:00
David Sparer
b1c31048a9 trim rdp file parts for safety 2018-01-24 10:47:07 -06:00
Fyers
e13faa1b66 fixed putty session name encoding #800 2018-01-06 19:54:14 +01:00
Sean Kaim
9349aca76e remove credit
hotkey selection control is no lnger used
2018-01-03 12:13:58 -05:00
Sean Kaim
4946726d1e appveyor config 2018-01-02 17:06:23 -05:00
Sean Kaim
72c7800c02 update nunit 2018-01-02 16:11:33 -05:00
Sean Kaim
e4c35b2ba2 CitrixReceiver.exe - for appveyor 2018-01-02 15:47:19 -05:00
Sean Kaim
bccb885508 ignore cred repo tests 2018-01-02 15:43:53 -05:00
David Sparer
7b7e0e0522 Merge branch 'develop' into develop 2018-01-02 08:22:00 -06:00
Camilo Alvarez
991d1d82b8 Misc fixes
- Clear redundant settings form app.config
- Deleted DesignModeTest as ThemeManager can now be used in design time without adjustements, removed usage from all custo elements
- Instance _themeManager in NGNumericUpDown at object creation to avoid null reference errors
- Errorsform instancing is now defaulted to DockBottomAutoHide  in frmMain
-Fix missing panel at startup by adding a blank panel, temporary solution as magic library is beign phased out
2017-12-26 12:15:11 -05:00
David Sparer
5832205624 update credits and changelog for #829 2017-12-18 14:20:39 -06:00
David Sparer
8aeea4d212 added option for enabling utf8 encoding of the rdp "load balance info" property 2017-12-18 14:13:21 -06:00
David Sparer
e1934cd1b0 Merge pull request #829 from sirLoaf/AzureLoadBalanceInfoFix
Fix for connecting to azure instances (cloud services). LoadBalanceIn…
2017-12-18 13:27:32 -06:00
Camilo Alvarez
056cce2f97 Removed windings fonts
Now using unicode for better compatibility in special characters for drawing controls
2017-12-13 09:34:27 -03:00
David Sparer
61f6463e59 rearranged a few items on the sql server page 2017-12-12 09:47:27 -06:00
David Sparer
a929552c3d fixed a bad merge that I made 2017-12-12 09:44:08 -06:00
David Sparer
10cd02d2e7 Merge pull request #836 from dekelMP/develop
SQL Read Only Option
2017-12-12 09:42:23 -06:00
David Sparer
afac50c18f Merge branch 'develop' into develop 2017-12-12 09:32:49 -06:00
David Sparer
24ade35df8 Merge branch 'develop' into develop 2017-12-12 09:30:42 -06:00
David Sparer
d50341ff8e updated changelog 2017-12-12 09:25:14 -06:00
David Sparer
54bd6d5336 added option to lock the toolbar controls
resolves #838
2017-12-12 09:22:33 -06:00
Camilo Alvarez
7bc26787db Reorganize menus, fix empty values in design mode 2017-12-12 08:47:35 -03:00
Camilo Alvarez
e923f816a4 fix installer version missing themes
fixed the installed veresion missing themes, added more controls for theme failure to load
2017-12-11 08:29:18 -03:00
Dekel Asaf
c6e4439ab9 Added check for SQL read only in SqlDataProvider 2017-12-10 22:22:38 +02:00
Dekel Asaf
94f66da84e Added SQL Read Only option
Avoid saving when SQL Read Only check box is checked
2017-12-10 21:59:57 +02:00
Dekel Asaf
384399c1c8 Merge develop from upstream 2017-12-10 21:13:50 +02:00
Dekel Asaf
7bac63310f Merge remote-tracking branch 'upstream/develop' into develop 2017-12-10 21:07:03 +02:00
David Sparer
f85de2c960 set release date of 1.76 alpha 1 in changelog 2017-12-08 15:14:43 -06:00
Fabio Laib
173b516270 Fix for connecting to azure instances (cloud services). LoadBalanceInfo requires a UTF8 encoded string 2017-12-06 12:52:51 +01:00
David Sparer
3af25610b8 Merge branch 'master' into develop
# Conflicts:
#	CHANGELOG.TXT
#	mRemoteV1/App/Startup.cs
#	mRemoteV1/Properties/AssemblyInfo.cs
2017-12-05 08:00:23 -06:00
David Sparer
0898ed8c00 began implementing csv deserializing 2017-12-04 22:00:18 -06:00
David Sparer
0d0b056f6b resolves #561 2017-12-03 16:41:17 -06:00
David Sparer
3f6b572f51 added ability to launch mremoteng from last screen of installer 2017-12-03 15:46:11 -06:00
David Sparer
1a2b906e0a bump assembly version to 1.75.7012 2017-12-01 10:18:52 -06:00
David Sparer
d48331b706 Merge branch '1.75.7012' 2017-12-01 10:17:06 -06:00
David Sparer
d95cc62c8e update changelog 2017-12-01 10:15:43 -06:00
David Sparer
f04aa78fd7 resolves #803 2017-12-01 10:06:33 -06:00
David Sparer
b03d355d69 connection's inheritance is now correctly disabled when rootnode is the parent 2017-11-30 12:29:56 -06:00
David Sparer
834e7c1abb Merge branch '1.75.7012' into develop 2017-11-24 08:33:12 -06:00
David Sparer
c37caa95a4 resigned putty with new code signing cert 2017-11-24 08:32:44 -06:00
David Sparer
3ffcc5d5ba fixed bug where our custom drag sink was being overwritten
closes #814
2017-11-21 12:40:22 -06:00
Sean Kaim
52fa87a7c6 minor refactor 2017-11-20 14:54:38 -05:00
Sean Kaim
0ddcfbeed7 Merge branch 'develop' of https://github.com/mRemoteNG/mRemoteNG into develop 2017-11-20 14:36:33 -05:00
Sean Kaim
a2f56682e6 streamlined error handling for Authenticode check 2017-11-20 14:36:31 -05:00
David Sparer
edc4af6da5 fixed bug where user/domain/pass inheritance wasnt being shown
this was due to some credential manager work that didnt get rolled back
2017-11-20 12:18:00 -06:00
David Sparer
283354d4d9 fixed bug where closing the options window would always prompt for a connections file to load 2017-11-19 15:00:55 -06:00
David Sparer
c3fbc573e2 forgot a thing... 2017-11-19 14:49:30 -06:00
David Sparer
e7f0091b48 made a ui buttons text translatable 2017-11-19 14:48:54 -06:00
David Sparer
446327dffd Merge pull request #809 from mRemoteNG/338_connection_tree_filtering
Implemented connection search filtering feature
2017-11-19 14:40:42 -06:00
David Sparer
03a0449662 updated changelog 2017-11-19 10:11:44 -06:00
David Sparer
3fb72dfc24 implemented search filtering feature 2017-11-19 09:13:44 -06:00
David Sparer
7c4ccde69b updated credits and changelog 2017-11-17 15:04:05 -06:00
David Sparer
167a50816f Domain is now available on connections with protocol Int App
Closes #485
2017-11-15 11:27:56 -06:00
David Sparer
a753b868e6 Updated urls for the forum to point to reddit
Closes #608
2017-11-15 11:19:26 -06:00
David Sparer
0958c9da44 minor refactoring. removed need for compiler conditionals 2017-11-15 10:52:50 -06:00
David Sparer
bdee98feb0 Merge pull request #799 from mRemoteNG/340_save_connections_on_edit
Implemented option for saving connections on edit
2017-11-15 10:13:25 -06:00
David Sparer
6f9c76c9ba SaveConnectionsAfterEveryEdit defaults to true 2017-11-15 10:10:03 -06:00
David Sparer
c4fdf075b3 Merge branch '644_target' into develop
# Conflicts:
#	mRemoteV1/App/Windows.cs
#	mRemoteV1/UI/Forms/frmMain.Designer.cs
#	mRemoteV1/UI/Forms/frmMain.cs
#	mRemoteV1/UI/Forms/frmMain.resx
#	mRemoteV1/mRemoteV1.csproj
2017-11-15 10:06:15 -06:00
David Sparer
0a19874ef3 Merge pull request #644 from mrwulf/Multi-SSH
Multi ssh
2017-11-15 07:51:30 -06:00
David Sparer
39af07cc22 Merge branch '644_target' into Multi-SSH 2017-11-15 07:51:10 -06:00
David Sparer
7ac3a264da Merge branch '644_target' into Multi-SSH 2017-11-15 07:50:39 -06:00
David Sparer
8951b45a39 Merge pull request #805 from pablomh/patch-1
Fix typo and minor nits
2017-11-15 07:38:29 -06:00
pablomh
a4e4315002 Fix typo and minor nits
- s/approprite/appropriate .
- Add a dot at end of sentence.
- Fix </li> formatting to comply with existing style.
2017-11-15 10:20:28 +01:00
David Sparer
3a9d108b76 Merge pull request #801 from DamianBis/797
issue #797 removed duplicate strings & fixed spelling
2017-11-14 14:53:28 -06:00
Sean Kaim
651a4ae2bf remove version #'s
Closes #615
2017-11-13 15:47:00 -05:00
Sean Kaim
75007db630 Changes from #708
Closes #708
Closes #197
2017-11-13 14:58:28 -05:00
Unknown
d0adfebf7a issue #797 removed duplicate strings & fixed spelling 2017-11-13 21:48:02 +11:00
David Sparer
f9e8496d3f moved event handler for saving connections on edit 2017-11-12 16:14:34 -06:00
David Sparer
f583b741d4 implemented save connections on edit 2017-11-12 15:14:50 -06:00
David Sparer
1d80b166b1 began implementing plumbing for saving connections on edit 2017-11-12 15:06:18 -06:00
David Sparer
42e59ee564 moved RemoteConnectionsSyncronizer references from Runtime to ConnectionsService 2017-11-12 14:30:23 -06:00
David Sparer
e2c82086be more refactoring. most connection saving/loading calls now go through the connection service class 2017-11-12 14:23:00 -06:00
David Sparer
e9d47f046d removed code for saving to .vre format
we havent supported this for a long time
2017-11-12 11:39:15 -06:00
David Sparer
4acc73ac19 did some refactoring to consolidate connection loading into a single service 2017-11-12 11:32:19 -06:00
David Sparer
96c27efa68 added setting for saving connections file on edit 2017-11-12 09:37:11 -06:00
David Sparer
52ad4435ac resolves #468 2017-11-12 08:22:06 -06:00
David Sparer
b6426dd202 the settings editor decided these should be in here... they must have accidentally been wiped away by a merge 2017-11-12 07:57:37 -06:00
David Sparer
abbdbdbc18 fixed bug where window text wasnt updated when choosing to create new connection from dialog popup 2017-11-11 21:44:36 -06:00
David Sparer
9ad6c20d42 Merge pull request #798 from mRemoteNG/sql_test_connection
Added way to test sql connections on sql options page
2017-11-11 21:18:42 -06:00
David Sparer
d96c854756 Merge branch 'develop' into sql_test_connection
# Conflicts:
#	mRemoteV1/Resources/Language/Language.Designer.cs
#	mRemoteV1/Resources/Language/Language.resx
#	mRemoteV1/mRemoteV1.csproj
2017-11-11 21:16:39 -06:00
David Sparer
ac4c578396 Merge pull request #786 from brucetp/MR-421_The_startup_connection_file_could_not_be_loaded
MR-421 The startup connection file could not be loaded
2017-11-11 21:07:46 -06:00
David Sparer
5d527c8e72 Merge branch 'develop' into MR-421_The_startup_connection_file_could_not_be_loaded 2017-11-11 20:48:26 -06:00
David Sparer
15ef6c77dc Merge branch 'develop' into MR-421_The_startup_connection_file_could_not_be_loaded 2017-11-11 20:41:25 -06:00
David Sparer
8b990ac273 improved external tools window
- can edit items in listview
- improved data binding between model and ui
- delete and launch buttons disabled if no item selected
- item selection updates when deleting/adding item
2017-11-11 20:37:37 -06:00
David Sparer
99ffe9eac2 made ExternalTool implement INotifyPropertyChanged
Also codified the rule that "WaitForExit" cannot be set at the same time as "TryIntegrate". TryIntegrate will always be settable, but WaitForExit will have to defer its state.
2017-11-11 18:20:36 -06:00
David Sparer
3d8dda23ce added a AddRange method to FullyObservableCollection
more efficient collection updating - it only raises 1 event for the whole batch
2017-11-11 18:18:34 -06:00
David Sparer
4fe5df51fa Merge branch 'pr706_target' into develop
# Conflicts:
#	mRemoteV1/Config/Settings/SettingsSaver.cs
#	mRemoteV1/Tools/ExternalTool.cs
#	mRemoteV1/UI/Window/ExternalToolsWindow.Designer.cs
#	mRemoteV1/UI/Window/ExternalToolsWindow.cs
#	mRemoteV1/UI/Window/ExternalToolsWindow.resx
2017-11-11 13:36:19 -06:00
David Sparer
d7d6aa78f5 Merge pull request #706 from pedro2555/custom-workdir-external-tool
[RFC] Added support for custom working directory in External Tool
2017-11-11 12:07:26 -06:00
David Sparer
3646cb0ce6 Removed flicker when external tool toolbar entries are changed 2017-11-11 11:40:08 -06:00
David Sparer
e2bd1b8ba3 Merge pull request #775 from brucetp/MR-152_Add_to_External_Tools_Toolbar_option
MR 152 add to external tools toolbar option
2017-11-11 11:31:34 -06:00
David Sparer
b061f7e405 Merge pull request #704 from pedro2555/fix-portable-settings-cleaned
Fixes settings save location on portable version
2017-11-11 11:10:36 -06:00
David Sparer
78f38f1a48 fixed tests 2017-11-11 10:50:32 -06:00
David Sparer
eeec81bf3b added way to test sql db connection in options page 2017-11-11 10:31:16 -06:00
David Sparer
4682096d98 refactored sqldatabaseconnector to require connection details in ctor
created factory for creating SqlDatabaseConnectors from settings data for convenience
2017-11-11 10:31:15 -06:00
Bruce Peterson
ca369e2df5 Merge Conflict 2017-11-11 08:45:20 -05:00
Bruce Peterson
1a6efebea4 Resolving Merge Conflicts 2017-11-11 08:35:01 -05:00
David Sparer
bba3a45f0f Merge pull request #796 from farosch/develop
Further design optimizations on settings
2017-11-10 17:34:07 -06:00
Faryan Rezagholi
de83a273a9 Further optimazations on settings
Small layout fixes to frmOptions and option pages:
-Unified button heights
-fixed tab order on some option pages elements
-Resized "Launch PuTTY"-button under  Options>Advanced to display PuTTY Icon in full size
-Resized main panel in frmOption to fit size of option panes
-Reduced size of bottom panel in frmOptions to waste less space
-Fixed distance to form border of"OK" and "Cancel" buttons in frmOptions
-Unified all border styles of panels in frmOptions to none. (This makes the design look a little bit more flat and cleaner, also removes the strange edge  in the title bar where the two panels meet)
-set width of deviders on frmOptions to 1px (also looks a lot cleaner)
2017-11-10 18:52:04 +01:00
David Sparer
ba2954baf4 lowered sql connection schema version back down to 2.6 (pre-credential manager) 2017-11-10 08:44:19 -06:00
David Sparer
9e4f2ee3e7 resolves #419. removed all string collation directives.
Previously, all varchars had "COLLATE SQL_Latin1_General_CP1_CI_AS". This was done to better support international users
2017-11-10 08:13:41 -06:00
David Sparer
0c6ad58bca made file data provider tests safer for concurrent execution in jenkins
When multiple builds had to run, these tests would sometimes fail due to the file system being a shared resource.
Each test now creates its own random folder and cleans it up after the test runs
2017-11-10 08:03:03 -06:00
Bruce Peterson
8319ec988f Added File Not Found test 2017-11-09 23:03:16 -05:00
David Sparer
fc65476918 Merge pull request #791 from farosch/develop
Rearranged settings elements
2017-11-09 20:17:55 -06:00
David Sparer
42b45408ed readded tests that got missed in a merge 2017-11-09 19:47:42 -06:00
David Sparer
792f0b5c7a Merge pull request #754 from brucetp/MR-225_Can_not_import_RDCMan_v2.7
MR-225 Can not import RDCMan v2.7
2017-11-09 19:20:13 -06:00
David Sparer
b68e0600bd safer test cleanup 2017-11-09 18:48:59 -06:00
David Sparer
a667502836 connection tree context menu now gets set. Why was this line missing? bad merge? 2017-11-09 15:37:23 -06:00
Faryan Rezagholi
254d545e58 Rearranged settings elements
Rearranged some elements from the settings to prevent that translated strings overlap with these elements. Issue #784
2017-11-09 18:19:13 +01:00
David Sparer
cdde4b0cc9 Merge branch 'develop' into fix-portable-settings-cleaned 2017-11-09 08:40:03 -06:00
Bruce Peterson
0346497f45 Added dialogs and options for new config, path, or importing a file 2017-11-08 21:12:41 -05:00
David Sparer
af3527d6cf updated the download shield icons 2017-11-08 15:20:22 -06:00
David Sparer
08186d98f5 Merge branch 'develop' into MR-225_Can_not_import_RDCMan_v2.7 2017-11-08 12:04:23 -06:00
David Sparer
9b8b01515c Merge branch 'develop' into MR-225_Can_not_import_RDCMan_v2.7 2017-11-08 11:58:34 -06:00
David Sparer
49e5b71235 Merge branch 'master' into develop
# Conflicts:
#	CHANGELOG.TXT
#	mRemoteNGTests/mRemoteNGTests.csproj
#	mRemoteV1/App/Startup.cs
#	mRemoteV1/Connection/Protocol/IntegratedProgram.cs
#	mRemoteV1/Properties/AssemblyInfo.cs
#	mRemoteV1/Resources/Language/Language.Designer.cs
#	mRemoteV1/Resources/Language/Language.resx
#	mRemoteV1/UI/Controls/ConnectionTree/ConnectionTree.cs
#	mRemoteV1/UI/Forms/frmMain.cs
#	mRemoteV1/UI/Window/ConnectionTreeWindow.cs
2017-11-08 11:52:10 -06:00
David Sparer
f63980f122 Merge branch 'hotfix11' 2017-11-07 20:22:00 -06:00
David Sparer
9cee827f6b updated changelog 2017-11-07 20:21:13 -06:00
David Sparer
9c57976906 singleton instance should be given focus 2017-11-07 20:20:24 -06:00
David Sparer
ef5b09b6fa fix issue where /resetpanels did nothing 2017-11-07 16:35:25 -06:00
David Sparer
469b4224dc fixed bug with resetting window position
resetting window position now places app in center of main monitor like it should
2017-11-07 10:05:18 -06:00
David Sparer
afc410cfe6 fixed #778
custom cons param bug introduced in commit f73c9c9d
2017-11-07 08:21:32 -06:00
David Sparer
b686bc1112 Update mRemoteNGTests.csproj
removed unit test I accidentally re-added
2017-11-06 10:17:33 -06:00
David Sparer
25bee76fff Merge branch 'develop' into MR-225_Can_not_import_RDCMan_v2.7 2017-11-06 10:14:35 -06:00
David Sparer
98a8b9944e Merge branch 'develop' into MR-225_Can_not_import_RDCMan_v2.7 2017-11-06 10:09:49 -06:00
Bruce Peterson
66745d2ddf Correcting Merge conflicts with TESTS project file. 2017-11-06 10:15:10 -05:00
Bruce Peterson
cf9e1fe54c Attempting to correct merge conflicts 2017-11-06 09:56:10 -05:00
David Sparer
9bf59bed2f update jenkins build tools paths 2017-11-06 08:08:49 -06:00
Bruce Peterson
48a9968d20 Update the External Tools Toolbar based upon the collection 2017-11-05 22:01:49 -05:00
Bruce Peterson
d23355b147 Bug Fix on External Tools column header 2017-11-05 20:34:14 -05:00
Bruce Peterson
83ec5658c4 Added Show on Toolbar to External Tools Dialog 2017-11-05 19:53:06 -05:00
David Sparer
aed509155b inheritance button should be disabled when parent is root connection node 2017-11-05 09:04:10 -06:00
David Sparer
0120762dbe putty sessions should not have the inheritance button 2017-11-05 08:41:13 -06:00
David Sparer
85b67ecd0b fixed bug in connection tree context menu
right clicking in white space (no connection tree item selected) made the context menu appear with all options enabled. No context menu should appear in that case
2017-11-05 07:24:28 -06:00
David Sparer
7451383c24 putty nodes and root putty node should not have context menu items "import" or "export" 2017-11-05 07:09:17 -06:00
David Sparer
88d735ed56 resolved bug that would sometimes disable connection tree hot keys
bug was introduced in #652. I made sure that the original issue is still resolved
2017-11-04 22:04:08 -05:00
David Sparer
7a002e4b89 updated changelog 2017-11-04 11:45:14 -05:00
David Sparer
01ad0b4875 safer connection tree gui updating 2017-11-03 15:10:35 -05:00
David Sparer
4defa5fa9c Resolves #758
introduced in commit 8a3e3704
2017-11-03 15:09:18 -05:00
David Sparer
32a1dd64ab Merge branch 'master' into develop
# Conflicts:
#	CHANGELOG.TXT
#	CREDITS.TXT
#	README.MD
#	Tools/postbuild_installer.ps1
#	Tools/set_LargeAddressAware.ps1
#	mRemoteNGTests/mRemoteNGTests.csproj
#	mRemoteNGTests/packages.config
#	mRemoteV1/App/Logger.cs
#	mRemoteV1/App/Runtime.cs
#	mRemoteV1/App/Startup.cs
#	mRemoteV1/Connection/DefaultConnectionInfo.cs
#	mRemoteV1/Connection/Protocol/IntegratedProgram.cs
#	mRemoteV1/Connection/Protocol/PuttyBase.cs
#	mRemoteV1/Messages/MessageCollector.cs
#	mRemoteV1/Properties/AssemblyInfo.cs
#	mRemoteV1/Resources/Language/Language.Designer.cs
#	mRemoteV1/Resources/PuTTYNG.exe
#	mRemoteV1/Tools/ConnectionsTreeToMenuItemsConverter.cs
#	mRemoteV1/Tools/ExternalToolArgumentParser.cs
#	mRemoteV1/Tools/IeBrowserEmulation.cs
#	mRemoteV1/Tools/NotificationAreaIcon.cs
#	mRemoteV1/Tools/PortScanner.cs
#	mRemoteV1/UI/Controls/ConnectionTree/ConnectionTree.cs
#	mRemoteV1/UI/Controls/ConnectionTree/NameColumn.cs
#	mRemoteV1/UI/Forms/OptionsPages/ConnectionsPage.cs
#	mRemoteV1/UI/Forms/frmMain.cs
#	mRemoteV1/UI/Window/AboutWindow.cs
#	mRemoteV1/UI/Window/PortScanWindow.cs
2017-11-03 11:15:20 -05:00
David Sparer
5ce8171f12 updated changelog 2017-11-01 15:29:54 -05:00
David Sparer
e3121cb043 bumped assembly version 2017-11-01 15:14:55 -05:00
David Sparer
99e52ab0b5 updated changelog 2017-10-31 15:08:06 -05:00
David Sparer
2b672dc4fc Fixed another minor issue with external tools 2017-10-31 14:07:18 -05:00
David Sparer
6db7adf900 re-implemented autoresizecolumn in the connection tree
I did this in order to get around a weird bug where the connection tree would sometimes be set to a very small width (making it not visible)
2017-10-31 13:10:49 -05:00
David Sparer
65782285a3 added a few unit tests for integrated programs 2017-10-31 09:56:48 -05:00
David Sparer
64bd5a93ad resolves #761 2017-10-31 08:11:57 -05:00
David Sparer
93d7ef48eb removed unnecessary specflow file 2017-10-30 15:30:06 -05:00
Sean Kaim
a90b7abff7 proper xml formatting 2017-10-30 15:10:08 -04:00
Sean Kaim
a479b4b109 fix line terminators 2017-10-30 14:57:40 -04:00
Sean Kaim
326e1118da more nuget package updates 2017-10-30 14:57:29 -04:00
Sean Kaim
90f1e324ce update gecko 2017-10-30 14:39:20 -04:00
Sean Kaim
41e0228c03 re-target for .net 4.6 2017-10-30 13:42:26 -04:00
Sean Kaim
e72691a164 Merge pull request #760 from brucetp/MR-747_PuttySessions.Watcher.StartWatching_failed._Not_found
MR-747 putty sessions.watcher.start watching failed. not found
2017-10-30 12:28:24 -04:00
Bruce Peterson
7b1d2a0b38 Attempting to start Putty FileSystemWatcher on a folder that doesn't exist. 2017-10-30 12:03:21 -04:00
David Sparer
470d76faab added another valid microsoft cert thumbprint 2017-10-30 10:30:03 -05:00
Sean Kaim
aec9a75bba additional log adjustments 2017-10-30 11:27:43 -04:00
Sean Kaim
fcbac22577 add some details to StackTrace messages 2017-10-30 11:23:29 -04:00
Bruce Peterson
1153a5dd3c Putty config file path was incorrectly parsed 2017-10-30 11:22:26 -04:00
David Sparer
04fccad19c removed jenkins build step to publish test reports
they seem ot be failing a lot lately and its really not worth the trouble
2017-10-29 17:41:49 -05:00
David Sparer
1bce756bd6 Merge pull request #742 from mRemoteNG/revert_credmanager
Reverted credential manager functionality
2017-10-29 17:30:29 -05:00
David Sparer
68f052efcb Merge branch 'hotfix10' 2017-10-29 12:44:53 -05:00
David Sparer
4a8baf79fb bumped assembly version 2017-10-29 12:44:18 -05:00
David Sparer
499ac0295e fixed one case where visible connection tree width wasnt being updated correctly 2017-10-29 12:33:29 -05:00
David Sparer
29c422501a resolves #756 2017-10-29 12:17:18 -05:00
David Sparer
8efe74f614 bump assembly version 2017-10-28 16:25:08 -05:00
David Sparer
4e0f12f4b9 Merge branch 'Patch9' 2017-10-28 15:55:09 -05:00
David Sparer
cbd3a61259 updated changelog and credits 2017-10-28 15:48:16 -05:00
David Sparer
2406a7be49 fixes #600 2017-10-28 15:12:30 -05:00
Bruce Peterson
87322a36ca Included Test Cases for RDCMan v2.7 2017-10-27 23:36:36 -04:00
Bruce Peterson
bbe4d28a40 Modified Conn Manager Deserializer to import from RDCMan v2.7 2017-10-27 23:35:30 -04:00
David Sparer
dd40b56047 Merge pull request #728 from dekelMP/Patch9
Fixed #529
2017-10-27 18:55:22 -05:00
Sean Kaim
f14a0d5ee3 Merge pull request #710 from pedro2555/issue#649-cannot-integrate-cli-apps
Fixed integrated cli apps?
2017-10-19 09:54:07 -04:00
David Sparer
2994419381 revert confcons version back to 2.6 when serializing 2017-10-17 13:55:03 -05:00
David Sparer
81f06026d0 no longer try to load credential repo list 2017-10-17 13:54:39 -05:00
David Sparer
2df9441c20 reverted credential manager functionality as best I could 2017-10-16 14:39:41 -05:00
Sean Kaim
47190d9c02 Update ISSUE_TEMPLATE.md 2017-09-27 13:58:05 -04:00
Dekel Asaf
e0383d6c59 Fixed #529 2017-09-22 20:57:46 +03:00
Dekel Asaf
a436d9c070 fixed #529 2017-09-22 20:54:47 +03:00
Pedro Rodrigues
eeabcd94ed re-removed WaitForInputIdle
later consideration
2017-09-19 23:07:55 +01:00
Sean Kaim
8a3e37041a remove unnecessary converts 2017-09-18 17:37:04 -04:00
Sean Kaim
a1e9aefeb2 Merge branch 'Patch9' of https://github.com/mRemoteNG/mRemoteNG into Patch9 2017-09-18 10:02:09 -04:00
Sean Kaim
670cb51352 unnecessary convert.tostring's 2017-09-18 10:02:07 -04:00
Sean Kaim
a43dff88c5 Merge pull request #715 from pedro2555/492
fallback to empty credentials settings in external apps
2017-09-18 09:58:24 -04:00
David Sparer
fb3c87359f Merge pull request #724 from mRemoteNG/482_proposed_fix
Default connection password must be decrypted before first use
2017-09-18 08:48:06 -05:00
kmscode
a49dec7e6d just claify a comment. 2017-09-17 14:57:56 -04:00
kmscode
a7156235c3 puttyng 0.70
fixes #635
2017-09-17 14:22:36 -04:00
David Sparer
3cb52ba3f1 rearranged program init to ensure ConDefaultPassword is decrypted before assignment to DefaultConnectionInfo object 2017-09-17 11:10:32 -05:00
Sean Kaim
024f1a7047 minor code clean up 2017-09-15 17:37:28 -04:00
Sean Kaim
b77c7e922f Merge pull request #720 from pedro2555/676
First startup ignores cons param
2017-09-15 17:33:22 -04:00
Sean Kaim
9335c4706b fix editbin post build on jenkins 2017-09-15 16:52:42 -04:00
Sean Kaim
e09a9dabd6 update nuget packages 2017-09-15 15:42:28 -04:00
Pedro Rodrigues
e4e2f50015 Saving settings before exiting, and avoid early return 2017-09-15 20:38:34 +01:00
Sean Kaim
61865050c7 minor code cleanup 2017-09-15 15:34:54 -04:00
Sean Kaim
05d90c26ff Merge pull request #709 from pedro2555/issue#335
Changed quick connect connection icon image to play icon when there a…
2017-09-15 15:31:16 -04:00
Sean Kaim
43cdb29eb6 we don't need to look in ProgramData 2017-09-15 15:28:29 -04:00
Pedro Rodrigues
87ff1cb2b2 preparing ConsParam, and use Path.Combine in favor of string concatenation 2017-09-15 19:36:00 +01:00
Pedro Rodrigues
f73c9c9d02 Refactored cons param, corrected fallback override on first initialization.
Fixes 676
2017-09-15 19:17:08 +01:00
Sean Kaim
d15e444cb7 code clean up / null checks & logging 2017-09-15 13:58:32 -04:00
Pedro Rodrigues
2eff6c3dc4 if ( == false) is confusing, no need for it, if no else then ! 2017-09-15 18:49:06 +01:00
David Sparer
41fe211aec resolved #610 2017-09-15 08:07:12 -05:00
David Sparer
2acfa6d88d added another valid MS certificate thumbprint for build tools 2017-09-14 14:57:40 -05:00
Pedro Rodrigues
348b0c728c fallback to empty credentials settings in external apps #492 2017-09-14 20:16:53 +01:00
Pedro Rodrigues
ece2bda680 Credits to crdx, just found there's a proper place for that 2017-09-13 21:48:42 +01:00
Pedro Rodrigues
875e1573a4 Fixed integrated cli apps?
What was WaitForInputIdle() then?
2017-09-11 01:01:18 +01:00
Pedro Rodrigues
926dc868ef Changed quick connect connection icon image to play icon when there are open connections 2017-09-10 22:42:29 +01:00
Pedro Rodrigues
4a69ff6428 Added option to run external tool with elevated privileges 2017-09-10 19:33:35 +01:00
Pedro Rodrigues
75cf17e2ce Added browse button for ExternalTool working directory
Fixed minor bug on browse button for external tool filename, which was not saving upon selecting a new file, but rather relying on any other thing triggering the update on the actual ExternalTool instance.
2017-09-10 00:26:37 +01:00
Pedro Rodrigues
af3f66a5fa Wired up saver and loader 2017-09-10 00:11:26 +01:00
Pedro Rodrigues
61adf1f784 Wired up the form 2017-09-10 00:05:18 +01:00
Pedro Rodrigues
1d0311a194 Added controls for Working Directory option on ExternalToolsWindow 2017-09-10 00:00:08 +01:00
Pedro Rodrigues
bda9974eb8 A bit of house cleaning before adding new controls to ExternalToolsWindow 2017-09-09 23:39:10 +01:00
Pedro Rodrigues
0306296ae9 Added support for custom working directory in ExternalTool class
Not sure about l79 and argParser
2017-09-09 21:35:09 +01:00
kmscode
86ecb38ae2 minor code cleanup 2017-09-09 15:36:53 -04:00
Sean Kaim
f3ca58111c Merge pull request #705 from pedro2555/fix-proposal-issue#665
Fix proposal for issue 'Can not add new connection or new folder'
2017-09-09 15:34:44 -04:00
kmscode
3124d3ca1c minor code cleanup 2017-09-09 15:10:33 -04:00
Sean Kaim
9012506209 Merge pull request #700 from pedro2555/fix-write-log-file-option
Prevented log file creation when writeLogFile option is not set
2017-09-09 15:01:06 -04:00
kmscode
adb874ca74 avoid writing to the log when configured not to
plus some minor optimization.
2017-09-09 14:59:42 -04:00
Sean Kaim
f006a8aab6 Merge pull request #702 from jotatsu/develop
fix theme ui
2017-09-09 14:46:55 -04:00
kmscode
6aaf2f031b find editbin for vs 2017 community
updated acceptable authenticode for editbin.
2017-09-09 14:26:38 -04:00
Pedro Rodrigues
1669377938 Use root node when creating new connection/folder and no node is selected 2017-09-09 17:17:23 +01:00
Pedro Rodrigues
da45abaafb Applied PortableSettingsProvider.patch cleaned 2017-09-09 16:03:06 +01:00
CamAlvar
2b942f03b2 fix theme ui
- Fixed bug in ngcombobox that wasnt rendering DisplayMember elements text in theme mode
- Change in ngbutton icon placement for long text button names
- Verify SSH and notifications file transfer for theme, its ok
- Changed ConnectionTree to elipse text based on the width of the panel
2017-09-07 08:10:49 -05:00
Sean Kaim
985b5e6724 Merge pull request #698 from pedro2555/develop
README.md overhaul
2017-09-06 15:56:11 -07:00
Pedro Rodrigues
198c235765 Prevent log file writing when option is not set 2017-09-06 22:19:32 +01:00
Pedro Rodrigues
e82ee97666 Merge branch 'develop' into develop 2017-09-06 15:32:12 +01:00
Pedro Rodrigues
8be7dac209 README.md overhaul
Added titles to separate concerns.
Included quick access links to relevant wiki pages
Hopefully there is now everything one may be looking for in the README.
2017-09-06 15:28:24 +01:00
Sean Kaim
d2e35d8b2c Merge pull request #692 from mRemoteNG/pr/671
Pr/671 fixes
2017-09-05 10:02:10 -07:00
Sean Kaim
5938bc72b4 jenkins doesn't like this... 2017-09-05 12:59:07 -04:00
Sean Kaim
23860e5897 Merge pull request #671 from jotatsu/develop
Theming system revamp
2017-09-05 09:55:13 -07:00
Sean Kaim
11adbed079 code clean up 2017-09-05 12:50:32 -04:00
Sean Kaim
07eb45ad76 fix some of my merge fix boo boos 2017-09-05 11:45:58 -04:00
Sean Kaim
726e908b5a Merge branch 'develop' into develop 2017-09-05 08:40:25 -07:00
Sean Kaim
526c6d8852 fix virtual call in constructor 2017-09-05 11:06:12 -04:00
Sean Kaim
6d2be2e0a1 revert the few things that jenkins doesn't like 2017-08-21 17:48:36 -04:00
Sean Kaim
a8a9423ab0 ok... code clean up again... 2017-08-21 17:39:33 -04:00
Sean Kaim
78a82be4a0 Revert "code clean up"
This reverts commit 1acdb27996.
2017-08-21 16:54:01 -04:00
Sean Kaim
1acdb27996 code clean up 2017-08-21 16:48:20 -04:00
David Sparer
66f2c55343 Merge remote-tracking branch 'origin/master' into Patch9 2017-08-10 17:19:29 -05:00
David Sparer
0f3fa86bed Merge pull request #677 from mRemoteNG/improve_publish_automation
Improve publish automation
2017-08-10 17:18:19 -05:00
David Sparer
e5c2cfd243 fix github release body builder function 2017-08-10 16:35:17 -05:00
David Sparer
1a7ce13ec3 fixed error in test project 2017-08-06 10:40:36 -05:00
David Sparer
b4c535c76a can now delete multiple credentials 2017-08-06 10:32:48 -05:00
David Sparer
1c7592c707 Merge branch '659_dont_reference_creds_directly' into develop 2017-08-05 19:07:42 -05:00
David Sparer
e4f8f96b83 unloaded credentials now display a message 2017-08-05 19:06:27 -05:00
CamAlvar
105baa0557 Improved no-theme handlig for missing /themes folder, target to unit test 2017-08-05 18:22:13 -05:00
David Sparer
ec554dae2e cred record drop down now works
you can select the credential associated to a connection via a property window drop down
2017-08-05 16:35:21 -05:00
David Sparer
da86f113b8 fixed copyfrom bug
fixed a bug where an exception would be thrown if we tried to set a property that only exposed a getter
2017-08-05 16:09:30 -05:00
David Sparer
ef1c397f11 updated changelog 2017-08-05 11:02:16 -05:00
David Sparer
12e0cc3d7b Merge pull request #652 from mrwulf/Issue550
Issue #550 Fix - Don't propagate edit if it didn't come from the menu item
2017-08-05 10:59:06 -05:00
David Sparer
ff6bb6ebb0 update changelog and credits 2017-08-05 10:52:36 -05:00
David Sparer
6b78215b2e Merge pull request #651 from mrwulf/Issue176
Only do ActivateConnection when one of our known controls wasn't clicked (Addresses Issue #176)
2017-08-05 10:45:16 -05:00
CamAlvar
29a25b708c added comments to code, language location to new user strings, checked diff for merge 2017-08-04 19:02:28 -05:00
CamAlvar
376f22ce08 Finish wiring the options window, creation and modifying of themes. Added script to output themes at compilation 2017-08-04 01:07:22 -05:00
CamAlvar
6f25a72fb7 Added defaulting disable theming, wiring the theme manager with the option page 2017-08-02 22:08:55 -05:00
David Sparer
ec50078f18 minor test cleanup
did some small resharper cleanup. refactored the compiler conditionals to be more refactor-safe
2017-07-31 09:55:59 -05:00
David Sparer
c4900f5a66 fixed cred id showing up in config window 2017-07-29 22:07:51 -05:00
David Sparer
edb5dff064 bit of cleanup 2017-07-29 21:49:29 -05:00
David Sparer
3961e1844c Maybe<T> now calls T.ToString() 2017-07-29 11:46:16 -05:00
David Sparer
d09ecac35d added a MaybeParse extension
this makes parsing guids much nicer. no dealing with out vars or try blocks
2017-07-29 11:45:05 -05:00
Sean Kaim
5d9a02657f Fixes #658
Also fix a comment.
2017-07-28 15:25:56 -04:00
David Sparer
792edd9146 refactored a bit to use the Maybe pattern
implemented via ienumerable<t> so we can make use of the existing ienum monads
2017-07-28 13:01:15 -05:00
CamAlvar
fd045fcc39 Added images to buttons, updated the dockpanel version 2017-07-28 08:56:12 -05:00
David Sparer
7a2ab59346 connections now just reference credential ids 2017-07-27 21:50:50 -05:00
CamAlvar
dc7970ac80 99% #themed 2017-07-27 08:42:52 -05:00
CamAlvar
d08d4fa488 Almost all dialogs,forms and panels themed 2017-07-25 09:06:50 -05:00
Brandon Wulf
0807e7fec1 Send commands to quickconnect created connections too! 2017-07-24 17:41:39 -07:00
Brandon Wulf
1c4b5d1ca5 Merge branch 'Multi-SSH' of github.com:mrwulf/mRemoteNG into Multi-SSH 2017-07-24 16:45:56 -07:00
Brandon Wulf
a3d9b2b9cb Pulled MultiSSH code into its own class 2017-07-24 16:45:38 -07:00
CamAlvar
d0df08de2c Added more controls, replaced normal elements with NG versions 2017-07-24 09:25:02 -05:00
Brandon Wulf
14d670a9a2 Don't propagate edit if it didn't come from the menu item 2017-07-21 15:38:46 -07:00
Brandon Wulf
67801506e0 Only do ActivateConnection when one of our known controls wasn't clicked. 2017-07-21 14:19:08 -07:00
David Sparer
e98291498b Merge pull request #639 from emazv72/develop
fixed italian spelling
2017-07-20 19:12:07 -05:00
David Sparer
d82a86e01b Merge pull request #650 from polluks/develop
German typo
2017-07-20 11:59:51 -05:00
Stefan
760d053cd7 typo 2017-07-20 18:52:03 +02:00
Sean Kaim
48eb6dbbe0 updated changelog 2017-07-18 15:13:48 -04:00
Sean Kaim
d520c6a816 Exception after clicking on import port scan
Fixes #646
2017-07-18 14:31:21 -04:00
CamAlvar
a3894323db Added more custo controls, external tools window list redesigned, external tools window finished 2017-07-18 09:43:30 -05:00
Brandon Wulf
a4b902d5af Reverting the references
...even though it won't compile on my box without them..
2017-07-17 16:14:54 -07:00
Brandon Wulf
5f9f0769eb Switched Multi SSH window to a Multi SSH toolbar 2017-07-17 15:00:59 -07:00
Brandon Wulf
49390574bf Builds and basically works 2017-07-14 18:16:27 -07:00
Emanuele Zavallone
71fab09581 fixed italian spelling 2017-07-14 09:51:01 +02:00
CamAlvar
9225df85da Fixed design time controls, added custom button control 2017-07-13 09:34:17 -05:00
CamAlvar
81160ac1ea implemented custom label to override winforms disabled hacks
Fix for dark themes on disabled label text (default to black in the winforms code)
2017-07-12 09:48:59 -05:00
CamAlvar
5dd02602b7 theme more windows,panels and menu 2017-07-10 08:06:38 -05:00
CamAlvar
a92dfa3920 fixed color default method
fixed color default method, fixed message box foreground color and mixed warning and error colors
2017-07-06 01:30:52 -05:00
CamAlvar
0c19a1aafe changed loading and defaulting theme method
Use resource style  and xpath for loading, now the default is merged dinamically into the active theme by using a dictionary storange
2017-07-06 01:06:26 -05:00
CamAlvar
5429bb7d2b fixes and improvements
Defaulting extended palette in embedded themes, removed the reference to the dockpanel theme palette, that only exist in vs2015
2017-06-28 00:26:01 -05:00
David Sparer
664799c01b minor fix to allow building on some older machines
Oder editbin.exe files from Microsoft were signed with a different cert thumbprint. This update makes it easier to add additional valid thumbprints for MS signed tools
2017-06-27 12:20:39 -05:00
David Sparer
d88c5b9db2 minor error message correction
changed an error message that referred to File -> Load Connections (which doesn't exist). Changed this to File -> Open Connection File
2017-06-27 12:15:38 -05:00
CamAlvar
509acd1192 Fix property loaded
Removed unnecesary call for load proprerties, added a theme for reference implementation
2017-06-20 07:57:57 -05:00
CamAlvar
8db74a4514 First try
Lots of things broken, but basic structure is there
2017-06-19 22:51:34 -05:00
Camilo Alvarez
0d6f98f50a Update README.MD 2017-06-19 22:41:49 -05:00
Sean Kaim
0fe7a693f8 changelog 2017-06-16 10:08:04 -04:00
Sean Kaim
d368fbbf5b changelog 2017-06-16 10:07:02 -04:00
Sean Kaim
1e7c123145 add log message
Relates to #596
2017-06-16 10:04:12 -04:00
Sean Kaim
9a2efd9686 Exception launching ExtTool without con selected 2017-06-16 09:54:52 -04:00
Sean Kaim
069b0b0153 merge 1.75.7008 changes into develop 2017-06-15 15:10:23 -04:00
Sean Kaim
c12c64380d changelog update 2017-06-15 15:10:22 -04:00
Sean Kaim
88961fbdb5 Merge pull request #593 from mRemoteNG/kmscode-patch-1
changelog update
2017-06-15 15:02:20 -04:00
Sean Kaim
a11ceced09 changelog update 2017-06-15 15:00:34 -04:00
Sean Kaim
9da94b38b3 hotfix 8 2017-06-15 12:20:02 -04:00
Sean Kaim
ca35662ca2 Merge pull request #592 from mRemoteNG/hotfix7
Hotfix8
2017-06-15 11:52:59 -04:00
Sean Kaim
e7c4bbe1e8 increment version 2017-06-15 11:33:50 -04:00
Sean Kaim
1bc56b5c9e Merge remote-tracking branch 'refs/remotes/origin/master' into hotfix7 2017-06-15 11:29:55 -04:00
Sean Kaim
25a0630bcb updated putty build
New version number: 0.69.0.1

Fixes #589
2017-06-15 11:28:41 -04:00
Sean Kaim
1f7d122bee clean up installer build a bit 2017-06-15 11:19:30 -04:00
Sean Kaim
d9cb32ca53 enable verbose logging within the MSI 2017-06-15 11:19:02 -04:00
David Sparer
9cdfc61a30 Merge pull request #558 from vbfox/treeview_icons
Use the connection icon everywhere
2017-06-14 13:07:59 -05:00
David Sparer
760587ee2e Merge pull request #590 from mRemoteNG/update_jenkinsfile
jenkins release builds will now clean then build
2017-06-14 11:21:21 -05:00
David Sparer
d2fe8a2ddb builds will now clean then build 2017-06-14 11:14:36 -05:00
David Sparer
d2dc76baf1 removed a few unnecessary powershell params 2017-06-14 10:47:55 -05:00
David Sparer
232de66683 find_vstool now verifies that the tool can be executed
This improvement is meant to discard tool binaries that cannot be run. This is useful when you have an old install of VS that is broken for whatever reason. Now, we will ensure the tool has a valid exit code
2017-06-14 10:40:46 -05:00
Sean Kaim
3d61d1bca0 hotfix7 readme updates 2017-06-14 11:26:31 -04:00
Sean Kaim
c2c9531c1b changelog update 2017-06-14 11:22:57 -04:00
Sean Kaim
461df14cf7 rebuilt & signed puttyng 0.69
Fixes #583
2017-06-14 11:20:46 -04:00
Sean Kaim
81b0be0489 Merge pull request #588 from mRemoteNG/hotfix7
Hotfix7 changelog
2017-06-14 11:10:19 -04:00
Sean Kaim
3074a211f8 changelog 2017-06-14 11:08:55 -04:00
Sean Kaim
0659b140f5 Merge pull request #587 from mRemoteNG/hotfix7
Hotfix7
2017-06-14 10:59:06 -04:00
Sean Kaim
0b8160ae34 changelog 2017-06-14 10:57:49 -04:00
Sean Kaim
dbf2b7b4b6 increment version 2017-06-14 10:51:24 -04:00
Sean Kaim
1e8afc8ea4 update readme 2017-06-14 10:48:57 -04:00
Sean Kaim
70bd2e8a78 rebuilt & signed puttyng 0.69 2017-06-14 10:48:46 -04:00
Sean Kaim
b1dfe6e714 update download links to hotfix6 2017-06-13 17:17:04 -04:00
David Sparer
46bc0fe8b4 no longer request users tag issues
Removed lines in Bug/Feature headings that requested users tag their own issues. Normal users cannot set issue tags.
2017-06-13 13:47:50 -05:00
Sean Kaim
8045544051 Merge pull request #581 from mRemoteNG/hotfix6
Hotfix6
2017-06-13 11:15:08 -04:00
Sean Kaim
0cef4dc9b3 changelog update 2017-06-13 10:49:05 -04:00
Sean Kaim
f1cfa4330a fix build/porting problem for about window 2017-06-13 10:42:31 -04:00
Sean Kaim
a50b370262 Use all space on about page
Fixed 377
9c5e4f7a7c
2017-06-13 10:24:40 -04:00
Julien Roncaglia
7cc3639758 React to icon change events 2017-06-13 10:26:25 +02:00
Julien Roncaglia
24b5dd0c8c Add server icons in the treeview 2017-06-13 10:26:24 +02:00
David Sparer
32afdfc257 Update README.MD
Removed build badge for the beta branch. We do not build a new binary for beta builds, they are promoted from development releases
2017-06-08 10:36:39 -05:00
Sean Kaim
10e61e28c6 changelog update 2017-06-02 16:49:46 -04:00
Sean Kaim
d88be9aca4 Quick Connect from ntf area icon displays warning
warning occurs when clicking on a folder.

Fixes #546
2017-06-02 16:48:52 -04:00
Sean Kaim
064fd217ba initial Hotfix 6 commit 2017-06-02 16:45:23 -04:00
Sean Kaim
dd2e2734ce Addl protections to avoid problems on update chk
fixes #527
2017-06-02 15:16:56 -04:00
David Sparer
390c230de9 updated credits 2017-05-27 20:37:49 -06:00
David Sparer
b43f868eba updated changelog and credits 2017-05-27 20:34:54 -06:00
David Sparer
119a18aa15 Merge pull request #567 from peterchenadded/develop
Added extra logic to search the hostname and description fields of the connection instead of just the name.
2017-05-27 20:27:21 -06:00
David Sparer
b79c35042a Merge pull request #557 from vbfox/credential_manager_upgrade_crash
Credential manager upgrade crash
2017-05-27 19:00:57 -06:00
Chen, Peter
12f8e0fe71 Saved lowercase searchText to variable and used it for the comparison 2017-05-24 22:47:35 +10:00
Chen, Peter
0b065b16b1 Fixed incorrect test name 2017-05-24 22:42:39 +10:00
Chen, Peter
b4d5451b11 Added extra logic to search the hostname and description of the connection instead of just the name. Also added associated tests 2017-05-24 22:36:29 +10:00
David Sparer
2fb4c8d227 Merge pull request #555 from polluks/patch-1
Update README.MD
2017-05-19 09:18:26 -06:00
Julien Roncaglia
9d8f3db511 Fix a second instance of the same problem 2017-05-15 22:02:23 +02:00
Julien Roncaglia
76813e9df4 Culture-Independent parsing of the configuration version
The configuration version was parsed in the credential manager upgrade
process using the current user culture and crashed on cultures where '.'
isn't the decimal separator.
2017-05-15 21:53:15 +02:00
Stefan
35da9cfb54 Update README.MD
https://en.wikipedia.org/wiki/Telnet
2017-05-15 13:52:38 +02:00
David Sparer
3f28594376 Cleaned up some event handlers in PortScanner 2017-05-12 10:36:55 -06:00
David Sparer
64c142d21e extracted a Runtime function to a new class 2017-05-12 09:08:19 -06:00
David Sparer
36304e8356 slightly improved the setup of Runtime.IsPortableEdition
refactoring the name of this property is now safer
2017-05-11 15:39:33 -06:00
David Sparer
4090930142 delayed the creation of a dependency to resolve a nullref error
There is currently a circular dependency between frmmain and connectioninitiator. This change temporarily resolves the issue of the nullref, but these two classes need to be decoupled somehow.
2017-05-11 15:20:30 -06:00
David Sparer
cd4d5df4db extracted a Runtime method to a different class 2017-05-11 15:12:53 -06:00
David Sparer
b921964c88 updated changelog 2017-05-11 10:46:32 -06:00
David Sparer
6dcef71ebc changed the backup file timestamp to use system time rather than utc 2017-05-11 10:42:58 -06:00
David Sparer
c69d4107d8 fixed unit tests 2017-05-11 10:37:32 -06:00
David Sparer
d6c34f2312 simplified backup file creation 2017-05-11 10:29:06 -06:00
David Sparer
8666c491ce extracted some Runtime class methods to new classes 2017-05-11 09:53:32 -06:00
David Sparer
7f4cfc267e updated supporteduicultures in settings file. this wasn't set when the korean translation was added 2017-05-11 09:16:37 -06:00
David Sparer
9d48eb6d74 refactored a few usages of compiler conditionals 2017-05-10 21:32:04 -06:00
David Sparer
7f80cad356 moved property from Runtime to ConnectionsService 2017-05-10 19:59:56 -06:00
David Sparer
36b3278698 moved a property from Runtime to ConnectionsService 2017-05-10 17:59:58 -06:00
David Sparer
2633b4c876 extracted all external tools related code from Runtime to a new class 2017-05-10 17:42:40 -06:00
David Sparer
fd26e9755d extracted some Runtime methods to the ConnectionsService 2017-05-10 17:24:54 -06:00
David Sparer
c5623a10c1 fix non-portable build 2017-05-10 16:44:59 -06:00
David Sparer
4049695425 extracted a runtime method to a new class 2017-05-10 16:42:30 -06:00
David Sparer
25b0d12576 migrated a property from Runtime to frmMain 2017-05-10 16:11:58 -06:00
David Sparer
cb1c490a1c simplified save filter a bit 2017-05-10 16:07:54 -06:00
David Sparer
565a20a83e extracted Runtime method to a new class 2017-05-10 11:43:03 -06:00
David Sparer
077965f083 extracted Runtime method to new class 2017-05-10 11:16:35 -06:00
David Sparer
eae4f569c2 removed some references to Runtime class 2017-05-10 11:13:06 -06:00
David Sparer
3f999e525a changed namespace that was colliding with a class name 2017-05-10 11:01:27 -06:00
David Sparer
509606dbda extracted a Runtime method to a new class 2017-05-10 10:58:53 -06:00
David Sparer
1b12a689a3 cleaned up some code in Runtime relating to new confcons creation 2017-05-10 09:27:11 -06:00
David Sparer
f91d09b2ae FileDataProvider now creates directories if they do not exist 2017-05-10 09:11:33 -06:00
David Sparer
89c02483eb extracted method to improve code readability 2017-05-10 08:34:21 -06:00
David Sparer
9725082b06 hooked up the cred upgrader form to the connections loader code 2017-05-09 11:58:30 -06:00
David Sparer
4c9471c415 minor cleanup 2017-05-09 11:55:54 -06:00
David Sparer
2bee87916d added error handling to the jenkinsfile to ensure nunit test results are uploaded on test failures
previously, a failure of a test would stop the pipeline at that point without uploading any test data
now, the pipeline will stop on the step that fails but still upload all test reports that have been created up to that point.
2017-05-09 11:23:20 -06:00
David Sparer
7838b6dc0e added some artificial delay to a test to help ensure it doesnt fail due to completing too quickly 2017-05-08 13:39:20 -06:00
David Sparer
6ae279c292 created some tests to verify that the file data providers work as expected 2017-05-08 13:23:49 -06:00
David Sparer
28aea45f95 made the cred upgrader form a deserializer decorator so we can inline it with other deserializers 2017-05-07 23:13:45 -06:00
David Sparer
38d0be992c updated the NewConnections function to use the already built serializer 2017-05-07 23:12:17 -06:00
David Sparer
73b0c8c68c promoted cred file path to a public property 2017-05-07 23:11:27 -06:00
David Sparer
b8002ce577 created language resources for some new entries in the cred upgrader form 2017-05-07 21:31:22 -06:00
David Sparer
5eebcd01ef hooked up several buttons in the cred upgrader form
- create new confcons file now works
- we can select a new confcons file to upgrade
2017-05-07 21:24:06 -06:00
David Sparer
5a455e1558 set up placeholder calls for localizing the form 2017-05-07 21:02:52 -06:00
David Sparer
c2d0eec9d2 began creating form for handling the upgrade of confcons to handle cred manager 2017-05-07 18:34:25 -06:00
David Sparer
97104d820e some more cleanup 2017-05-07 18:32:18 -06:00
David Sparer
f334f804b6 more minor cleanup 2017-05-07 18:26:24 -06:00
David Sparer
38bcafbfe5 cleaned up RdpProtocol 2017-05-07 17:22:59 -06:00
David Sparer
72196c705e minor cleanup of MessageFocusDecorator class 2017-05-07 16:46:42 -06:00
David Sparer
eb4d800e40 minor cleanup of NotificationAreaIcon class to condense refs to frmMain 2017-05-07 16:46:16 -06:00
David Sparer
ad508a30ea minor cleanup of frmMain 2017-05-07 16:45:05 -06:00
David Sparer
7068309b04 minor cleanup of connection window 2017-05-07 16:40:05 -06:00
David Sparer
06ab054118 cleaned up RawProtocol 2017-05-07 16:36:22 -06:00
David Sparer
4f5c929a9b renamed ProtocolICA to IcaProtocol 2017-05-07 16:34:31 -06:00
David Sparer
268a146775 cleaned up ICA protocol 2017-05-07 16:29:37 -06:00
David Sparer
7151c347a0 minor cleanup of Startup class 2017-05-07 16:21:50 -06:00
David Sparer
98d813c172 cleaned up Screens class 2017-05-07 16:19:11 -06:00
David Sparer
7b5a805eda minor cleanup of Windows class 2017-05-07 16:16:17 -06:00
David Sparer
d2b6429c8b changed setting saver method signature to require frmmain rather than using static singleton variable 2017-05-07 16:08:50 -06:00
David Sparer
450c9bb755 refactored dock panel saver to split serialization to a separate class 2017-05-07 16:07:28 -06:00
David Sparer
a45cd01e26 renamed the dock panel load/save classes to be more indicative of their purpose 2017-05-07 15:31:12 -06:00
David Sparer
28f7a7315e refactored layout saver code to a new class 2017-05-07 15:21:47 -06:00
David Sparer
d9e7e359f9 refactored external tools saver code to a new class 2017-05-07 15:15:25 -06:00
David Sparer
bee41e0e75 few minor refactorings in frmMain 2017-05-07 15:00:12 -06:00
David Sparer
5e826a3392 refactored the cred manager upgrader to be a deserialization decorator 2017-05-07 14:48:40 -06:00
David Sparer
635ff88a53 removed unused param 2017-05-07 12:17:33 -06:00
David Sparer
83156bf28e refactored xml credential loading to a new class 2017-05-07 11:57:15 -06:00
David Sparer
9ba081f241 refactored sql connection loader 2017-05-07 11:45:09 -06:00
David Sparer
179c3725ca added a tab control that hides its tabs during runtime (shown during design time) 2017-05-07 11:29:22 -06:00
David Sparer
645fedb1ed refactored the cred manager migration code to a new class 2017-05-07 11:27:33 -06:00
David Sparer
104ee3829f combined several duplicate sort methods 2017-05-07 00:01:59 -06:00
David Sparer
9f80eb2f74 normalized line endings 2017-05-06 23:58:01 -06:00
David Sparer
44b3a643dd Merge pull request #480 from pfjason/develop
Added a BeginEdit() at the end of the AddNode function.
2017-05-06 23:39:10 -06:00
David Sparer
cf61a6bbe7 removed a call that was causing many unnecessary host pings. should help #480 2017-05-06 23:36:25 -06:00
David Sparer
93b45fba84 fixed auto column sizing to also include a horizontal scroll bar. resolves #501 2017-05-06 22:40:35 -06:00
David Sparer
0d1851a73b updated credits and changelog to include korean translation and cred manager 2017-05-06 20:13:56 -06:00
David Sparer
5d6377f71c added some unit tests 2017-05-06 13:36:59 -06:00
David Sparer
28872f39c1 cleaned up messages module 2017-05-06 12:47:25 -06:00
David Sparer
c0b8eab4b8 cleanup the resources folder by combining some icon/image folders 2017-05-06 12:04:58 -06:00
David Sparer
75ba00735d removed another unused file 2017-05-06 11:58:48 -06:00
David Sparer
fdd7951d13 removed unneeded files 2017-05-06 11:55:11 -06:00
David Sparer
e0427ae200 hook up korean translation to be used 2017-05-06 11:44:21 -06:00
David Sparer
ec269f7177 Merge pull request #504 from gyuha/develop
Add Korean translation
2017-05-06 11:40:19 -06:00
David Sparer
2226082b6b Merge pull request #543 from mRemoteNG/improve_credential_manager
Improve credential manager
2017-05-06 11:26:16 -06:00
David Sparer
c69c188de9 cleaned up jenkinsfile stages 2017-05-05 18:00:33 -06:00
David Sparer
8499655c94 added code coverage stage to jenkins pipeline 2017-05-05 16:05:35 -06:00
David Sparer
4c0c13e792 updated nunit and nsubstitute packages 2017-05-05 15:01:35 -06:00
David Sparer
9d2d693a63 updated "stage" definitions to follow newer jenkins pipeline guidelines 2017-05-05 14:58:45 -06:00
David Sparer
e8d4db3f80 added portable unit tests and acceptance tests to the jenkins build 2017-05-05 14:46:39 -06:00
David Sparer
e7ebea535e fix nunit test report upload 2017-05-05 14:15:30 -06:00
David Sparer
c3a7e91a1d update path to nunit console 2017-05-05 12:18:56 -06:00
David Sparer
44be066b26 update jenkins to use nunit test runner 2017-05-05 12:06:29 -06:00
David Sparer
47f4efe60c added some interfaces to making testing easier
created simple behavior tests for the credential service facade
2017-05-05 11:22:17 -06:00
David Sparer
a4d7aff651 some more refactoring to better segregate confcons version upgrade code 2017-05-05 10:45:52 -06:00
David Sparer
d55b41963b minor refactor to segregate code that upgrades confcons v26 to 27 2017-05-05 09:06:12 -06:00
David Sparer
6bfad8e2d0 removed test menu item 2017-05-05 09:02:01 -06:00
David Sparer
e06ba65e6c minor cleanup 2017-05-04 17:50:37 -06:00
David Sparer
3acd77a63d added a few minor tests 2017-05-04 17:40:51 -06:00
David Sparer
25b32a6444 removed unused code 2017-05-04 17:40:26 -06:00
David Sparer
62ae4fb265 split sql db version upgraders to separate classes 2017-05-04 17:16:55 -06:00
David Sparer
57fe2a6cc2 added some tests for the cred record converter 2017-05-04 10:20:01 -06:00
David Sparer
a6ef8e0b40 renamed class 2017-05-04 08:26:18 -06:00
David Sparer
467ceb89b1 moved some cred repo classes to a sub-namespace 2017-05-03 17:54:51 -06:00
David Sparer
873bc3f582 removed an unused class 2017-05-03 17:02:50 -06:00
David Sparer
9ebb37c524 added function to get a specific cred record by id 2017-05-03 16:07:01 -06:00
David Sparer
ccf4ba2269 signed putty 0.69 binary 2017-05-03 09:48:06 -06:00
Sean Kaim
e377a72f75 PuTTYNG 0.69 2017-05-03 11:40:52 -04:00
David Sparer
4ed806ea97 Merge branch 'develop' into improve_credential_manager 2017-05-02 12:43:41 -06:00
David Sparer
57ba991673 resolved issue with clone still setting con info parent 2017-05-02 12:41:46 -06:00
David Sparer
21a48ccab5 some minor cleanup 2017-05-02 12:25:02 -06:00
David Sparer
0f0c27ad09 reordered repo grid to put the Loaded column ahead of Source 2017-05-02 12:24:49 -06:00
David Sparer
40ed6450ff fixed some minor ui bugs where elements would not update right away 2017-05-02 12:23:41 -06:00
David Sparer
a0c0ea4c4c Merge branch 'develop' into improve_credential_manager 2017-05-02 10:15:06 -06:00
David Sparer
2dc413ca3a Merge branch 'master' into develop
# Conflicts:
#	CHANGELOG.TXT
#	mRemoteV1/Properties/AssemblyInfo.cs
#	mRemoteV1/Resources/PuTTYNG.exe
#	mRemoteV1/UI/Controls/ConnectionContextMenu.cs
2017-05-02 10:14:33 -06:00
David Sparer
692b26622c Merge pull request #534 from mRemoteNG/530_fix_tree_node_entry_creation_on_exttool_run
530 fix tree node entry creation on exttool run
2017-05-02 10:00:30 -06:00
David Sparer
72a56d33d0 updated changelog 2017-05-02 09:08:49 -06:00
David Sparer
ce4bfc55c1 ConnectionInfo.Clone no longer sets the Parent property
this resolves undesirable tree nodes from being created
2017-05-02 08:49:04 -06:00
David Sparer
faba53fa5f Merge pull request #524 from mRemoteNG/improve_build_script_compatibility
Improve compatibility with different build environments
2017-05-02 07:57:02 -06:00
David Sparer
f0faec9def Merge pull request #528 from mRemoteNG/hotfix5
1.75 Hotfix5
2017-04-27 15:36:16 -06:00
David Sparer
e6ef28050c set release date in changelog for 1.75.7005 2017-04-27 15:20:07 -06:00
David Sparer
547ec3cb3a updated msi installer requirements
Replaced KB2923545 with KB2830477 (which is the REAL rdp 8.1 update)
2017-04-25 21:06:25 -06:00
Sean Kaim
5bfc67af4f Let's get some more clear validation 2017-04-21 17:20:23 -04:00
Sean Kaim
c72d9b544e just a slightly more informative message 2017-04-21 17:01:05 -04:00
David Sparer
cd34619acd added a few more known-good MS cert thumbprints 2017-04-21 14:52:40 -06:00
David Sparer
f091817d66 further reduce our search space
this also reduces the chance we will try to access a folder which we dont have permissions for
2017-04-21 14:42:33 -06:00
David Sparer
f2c65314b4 added a post build action to dump bin headers 2017-04-21 13:59:09 -06:00
David Sparer
a9fcdd3341 extracted a new script for finding a vstool (such as editbin.exe) 2017-04-21 12:13:54 -06:00
David Sparer
36a5cc7446 update changelog 2017-04-21 08:27:23 -06:00
David Sparer
fc0f278962 signed putty v0.68 exe 2017-04-20 09:27:14 -06:00
David Sparer
1f3db15892 Merge branch '442_fix_importing_putty_session_with_spaces_in_name' into hotfix5 2017-04-20 09:17:22 -06:00
David Sparer
e3e4c49427 changelog update 2017-04-20 09:16:31 -06:00
David Sparer
1520b8bf73 fixed bug where any sessions with spaces in the name would be filtered out
this fixes the bug, but the entire putty sessions loading component should be refactored heavily
2017-04-20 09:07:21 -06:00
David Sparer
c9e7f82905 fixed minor bug with adding a duplicate default session in some situations 2017-04-20 08:53:57 -06:00
Sean Kaim
14a1a665ef changelog 2017-04-19 12:43:28 -04:00
Sean Kaim
d2357fa779 changelog update 2017-04-19 12:38:54 -04:00
Sean Kaim
703178ddf1 Fix NPE when importing from the connection tree
Fixes #518
2017-04-19 12:37:56 -04:00
Sean Kaim
ec836e2e79 Fix NPE when importing from the connection tree
Fixes #518
2017-04-19 12:35:43 -04:00
Sean Kaim
4e9c5de16c changelog 2017-04-17 17:34:09 -04:00
Sean Kaim
2a677aaf02 changelog 2017-04-17 17:33:41 -04:00
Sean Kaim
2a141cd9b3 update changelog 2017-04-17 17:30:59 -04:00
Sean Kaim
3d1fcc35df Update credits.txt 2017-04-17 17:30:14 -04:00
Sean Kaim
e20d7afb72 update changelog 2017-04-17 17:29:32 -04:00
Sean Kaim
5ade8b208e Update credits.txt 2017-04-17 17:26:06 -04:00
Sean Kaim
9c5e4f7a7c Use all space on about page
Fixes #377
2017-04-17 16:46:59 -04:00
Sean Kaim
07e2bc3858 update change log 2017-04-17 11:56:47 -04:00
David Sparer
5c785ca1c6 moved default credential selection to the new credentials option page and created a cred records combobox 2017-04-14 18:01:43 -06:00
David Sparer
b389b20ca3 app now honors the prompt-unlock-on-startup setting 2017-04-14 17:25:48 -06:00
David Sparer
6f1d496a9e created a credentials options page and a setting for prompting repo unlock on startup 2017-04-14 17:23:36 -06:00
David Sparer
fe12cb345e merged branch 'develop' into 'improve_credential_manager'
# Conflicts:
#      CredentialManagerForm.cs
#      PasswordForm.cs
2017-04-14 16:56:02 -06:00
David Sparer
2607994c4c only save repo data if it is loaded 2017-04-14 16:35:27 -06:00
David Sparer
47a02afea6 updated some tests 2017-04-14 16:34:28 -06:00
David Sparer
a2e0a0c6f7 created factory for creating cred unlocker forms. unlocking repos from the manager now uses the unlocker form 2017-04-14 16:33:11 -06:00
Sean Kaim
f3b11d6f72 Fix for #434 - SysTray SafeHandle 2017-04-14 17:25:40 -04:00
Sean Kaim
edac8f764b Fix build issue (2015 doesn't like this) 2017-04-14 17:11:12 -04:00
David Sparer
4fa68e3bb0 when decrypting xml cred repos, we must be able to decrypt the auth header 2017-04-14 15:09:30 -06:00
Sean Kaim
69f310c02c PuTTYNG.exe 0.68 2017-04-14 17:00:22 -04:00
Sean Kaim
09789e163c PuTTYNG 0.68 2017-04-14 16:59:44 -04:00
Sean Kaim
84c8851ff8 check for nulls 2017-04-14 16:23:08 -04:00
Sean Kaim
95dacdd6da minor optimizations 2017-04-14 16:19:39 -04:00
Sean Kaim
3308f1146c load expanded data properly
and minor optimization
2017-04-14 15:50:20 -04:00
David Sparer
37b9e46e96 localized the repo unlocker form 2017-04-14 13:37:36 -06:00
Sean Kaim
8e8cf3df8d check for nulls 2017-04-14 15:34:55 -04:00
David Sparer
f4b188a9ac added some visual indicators when a repo is unlocked 2017-04-14 13:23:52 -06:00
David Sparer
35c886a59c added some error feedback on password error 2017-04-14 13:07:15 -06:00
Sean Kaim
26fdd924ef Increment version number
And make it match the hotfix number - you have no idea how much that was
annoying me...
2017-04-14 14:44:26 -04:00
Sean Kaim
e87a49796f Merge pull request #513 from mRemoteNG/483_make_datatable_serializer_safer
483 make datatable serializer safer
2017-04-14 14:41:56 -04:00
Sean Kaim
7e0b1e479c Merge branch 'develop' into 483_make_datatable_serializer_safer 2017-04-14 14:40:48 -04:00
David Sparer
1af2f7848e added some error handling when repo unlocking fails 2017-04-14 12:39:13 -06:00
Sean Kaim
ea3494f6e7 Merge pull request #512 from mRemoteNG/483_make_datatable_serializer_safer
483 make datatable serializer safer
2017-04-14 14:37:33 -04:00
David Sparer
0e7b93771e created a facade service for the credentials module to give other portions of the code a single api to use 2017-04-14 12:11:29 -06:00
David Sparer
ea5a21e487 added some more code around loading converted/harvested cred repo 2017-04-13 17:15:43 -06:00
David Sparer
dc72b87479 refactored repo unlocker select-next method 2017-04-13 12:29:48 -06:00
David Sparer
2f20acfa34 fixed some more empty string deserialization bugs 2017-04-12 17:50:55 -06:00
David Sparer
4869058f46 fixed exception that would occur if the repo list xml file did not exist 2017-04-12 17:37:42 -06:00
David Sparer
fa006afd0d changed the "skip" button to "close" 2017-04-12 17:37:14 -06:00
David Sparer
8e06255758 fixed tab focus ordering 2017-04-12 17:14:24 -06:00
David Sparer
ba57b25cd4 set password box text masking 2017-04-12 17:12:21 -06:00
David Sparer
4fa9d98171 repo unlocker form runs on app startup 2017-04-12 17:02:25 -06:00
David Sparer
6d19832d01 did a bit of code rearranging 2017-04-12 15:19:09 -06:00
David Sparer
bdaa059fa3 resolved object-disposed bug due to stale event subscription 2017-04-12 14:55:04 -06:00
Sean Kaim
f7bfc51735 check for nulls 2017-04-12 16:25:32 -04:00
Sean Kaim
998e156b21 deregister VNC event handler on disconnect. 2017-04-12 16:13:43 -04:00
Sean Kaim
491bf850e8 Merge pull request #506 from mRemoteNG/434_SafeHandle_Implmentation
434 safe handle implmentation
2017-04-12 15:14:01 -04:00
Sean Kaim
9bf53c6b25 fix & supress warning 2017-04-12 14:58:52 -04:00
Sean Kaim
e2fb49037a fix ruleset again... 2017-04-12 14:58:36 -04:00
David Sparer
3291c24c8c created SecureSerializer abstraction 2017-04-12 12:39:38 -06:00
Sean Kaim
f0bc375421 Merge remote-tracking branch 'refs/remotes/origin/develop' into 434_SafeHandle_Implmentation 2017-04-12 14:02:50 -04:00
Sean Kaim
e3c223dc0a Set code analysis rules to something reasonable 2017-04-12 13:48:39 -04:00
Sean Kaim
53c8b3b66d use statement bodys to allow building with VS2015 2017-04-12 13:40:36 -04:00
Sean Kaim
af5000b0f8 use statement bodys to allow building with VS2015 2017-04-12 13:15:32 -04:00
Sean Kaim
d5d4fdefc8 VncSharp Updates
* New VncSharp.dll built with a .NET 4 runtime target
* Minor code cleanup
* Avoid exceptions on VNC close/disconnect
2017-04-12 12:43:48 -04:00
gyuha
1caa0c6210 Add Korean translation 2017-04-12 16:23:04 +09:00
Sean Kaim
5b646617d1 code clean up 2017-04-11 16:24:34 -04:00
David Sparer
9f028d9104 added some safety checking for data table deserialization
added some tests for the data table deserializer
2017-04-09 17:36:56 -06:00
David Sparer
f40be696c7 made utility for creating test connection tree models 2017-04-09 17:35:52 -06:00
David Sparer
95a503a390 fix issue with setting up data table 2017-04-09 17:05:36 -06:00
David Sparer
88c51f4933 added some safety checks to the data table serialier 2017-04-09 16:57:56 -06:00
David Sparer
d63177f3c7 modified the cred repo interface
load now requires a decryption key
2017-04-06 14:56:19 -06:00
David Sparer
e9d41fd01b changed interface for loading credentials from a repo to get around issues with providing a key 2017-04-06 09:16:14 -06:00
David Sparer
224d2987db added some tests for the cred record loader 2017-04-06 08:54:10 -06:00
David Sparer
8439d6d3aa lots of reworked interfaces around cred repo serialization
- decryptors now expose a property that represents what key they will use for decrypt. this can be used by decorators to properly encapsulate password prompts
- added some basic acceptance tests around cred repos
- added some stubby implementations for IDataProvider and the key provider decorators
2017-04-03 20:09:47 -06:00
David Sparer
13b38955e6 removed duplicate interface 2017-04-03 13:51:22 -06:00
David Sparer
ae3fb9a2dd added iKeyProvider interface for dynamically retrieving keys/passwords
this will support the push towards constructor injection / decorators. this interface can act as a stand-in for what would otherwise be a static decryption key
2017-04-03 12:40:07 -06:00
David Sparer
9d78d769c4 began adding acceptance tests in specflow 2017-04-03 11:33:45 -06:00
David Sparer
e436a31a18 split up crypto provider factories and created an interface 2017-04-02 22:33:36 -06:00
David Sparer
929ade554c renamed method 2017-04-02 22:26:23 -06:00
David Sparer
d6c7066bfa changed the credential serializer lifecycle test to include password de/encryption 2017-04-02 21:29:52 -06:00
David Sparer
2387f183e9 added password decryption decorator 2017-04-02 21:28:50 -06:00
David Sparer
e8d645467f modified the interface of IDeserializer
now requires: TOut Deserialize(TIn serializedData)
2017-04-02 20:28:25 -06:00
David Sparer
a8e022cab4 added some lifecycle tests for the cred de/encrypt 2017-04-02 19:32:49 -06:00
David Sparer
579e8abda1 refactored tests for less duplication 2017-04-02 18:42:15 -06:00
David Sparer
4d44440e90 removed some more unnecessary args 2017-04-02 17:42:51 -06:00
David Sparer
709f914561 removed unnecessary arguments related to encrypting xml creds 2017-04-02 17:36:05 -06:00
David Sparer
0afa8e092e fix build 2017-04-02 17:25:03 -06:00
David Sparer
e886619b22 simplified the implementation of the xml cred deserializer
removed anything to do with encryption which will be handled by decorators
2017-04-02 17:22:42 -06:00
David Sparer
fa5f423bbd added decorator for encrypting credential xml files 2017-04-02 14:26:47 -06:00
David Sparer
bfbf5c70d5 reorganized more tests 2017-04-02 12:10:36 -06:00
David Sparer
2c19a442a7 moved a few tests to correct namespace 2017-04-02 11:56:56 -06:00
David Sparer
984ca69e8c reverted code that only compiles on vs2017 2017-03-31 20:26:24 -06:00
David Sparer
544d7a15d4 wired up data bindings for the cred repo unlocker 2017-03-31 17:56:31 -06:00
David Sparer
858f49d265 created a form for unlocking multiple credential repos 2017-03-31 15:44:25 -06:00
Jason Aquino
1b66d446f9 Added a BeginEdit() at the end of the AddNode function. 2017-03-31 11:18:24 -04:00
David Sparer
6e92fc0505 we dont need the tests playlist anymore 2017-03-28 11:35:05 -06:00
David Sparer
ea84403811 Merge branch 'develop' into improve_credential_manager 2017-03-28 11:30:52 -06:00
David Sparer
65a02795d6 fixed annoying exception when trying to ping empty hostname 2017-03-28 11:30:29 -06:00
David Sparer
c5549367eb Merge branch 'develop' into improve_credential_manager 2017-03-28 10:38:02 -06:00
David Sparer
6aa4a4d205 Merge branch 'master' into develop
# Conflicts:
#	CHANGELOG.TXT
#	InstallerProjects/Installer/Installer.wixproj
#	Tools/signfiles.ps1
#	mRemoteV1/Properties/AssemblyInfo.cs
#	mRemoteV1/mRemoteV1.csproj
2017-03-28 10:36:07 -06:00
David Sparer
9e20f1dd33 created script for publishing a github release that is currently in draft mode 2017-03-24 18:08:27 -06:00
David Sparer
16be19b5d3 split github functions to a library script 2017-03-24 18:07:23 -06:00
David Sparer
80ac0259b8 fix script name 2017-03-24 16:50:15 -06:00
David Sparer
9f7911923c updated the create_upg_check_files script to be parameterized for use within jenkins 2017-03-24 16:40:41 -06:00
David Sparer
686005071e Merge branch 'resolve_sql_deserialization_issue' 2017-03-24 15:26:28 -06:00
David Sparer
e16d31d605 fixed stupid transposition typo 2017-03-24 15:14:57 -06:00
David Sparer
8b201d22cb added authkey requirement to get-githubrelease in order to show drafts 2017-03-24 15:07:31 -06:00
David Sparer
0f6f8d43bd added cmdlet for retrieving a github release 2017-03-24 14:28:18 -06:00
David Sparer
8f171cddd9 fix content type of msi upload to github 2017-03-24 14:23:38 -06:00
David Sparer
c77c323f73 fix jenkinsfile variable 2017-03-24 14:22:17 -06:00
David Sparer
9e358309e4 Merge branch 'master' into resolve_sql_deserialization_issue 2017-03-24 12:14:26 -06:00
David Sparer
485438f38d Merge pull request #472 from mRemoteNG/fix_jenkinsfile_publish
fixed hard coded branch names in jenkinsfile_publish
2017-03-24 12:06:55 -06:00
David Sparer
fe26a60337 fixed hard coded branch names in jenkinsfile_publish 2017-03-24 12:04:52 -06:00
David Sparer
d2c2de4dd7 Merge branch 'master' into resolve_sql_deserialization_issue 2017-03-24 11:42:01 -06:00
David Sparer
d49d58f7f8 fixed parent reference update issue in mRemoteNGImporter 2017-03-24 11:40:28 -06:00
David Sparer
c0c5579027 Merge branch 'develop' into improve_credential_manager
# Conflicts:
#	mRemoteV1/UI/Forms/frmMain.cs
#	mRemoteV1/UI/Menu/ToolsMenu.cs
2017-03-23 17:25:16 -06:00
David Sparer
164d4fff8b Merge pull request #470 from mRemoteNG/pipeline_tests
Create jenkins pipeline script for release automation
2017-03-23 16:46:13 -06:00
Sean Kaim
6e7e4a129b Merge pull request #469 from mRemoteNG/vs2017_build
Vs2017 build
2017-03-23 18:01:06 -04:00
David Sparer
7726406674 added loggers to the test runners 2017-03-23 09:40:31 -06:00
David Sparer
ed38b39fec attempting to resolve bug with accessing correct key store 2017-03-23 08:59:09 -06:00
David Sparer
9188d4316e fix variable issue 2017-03-23 08:52:24 -06:00
David Sparer
cf374c6b8b added cert password as an auto-injected resource 2017-03-23 08:29:47 -06:00
David Sparer
82388dcbc3 added finger-printing to artifacting step 2017-03-23 08:26:18 -06:00
David Sparer
7a6a99e2b6 attempting to use the publishing jenkinsfile from scm 2017-03-23 08:08:29 -06:00
David Sparer
c383736834 more debug code 2017-03-22 17:06:30 -06:00
David Sparer
6e5e78df3b investigating certificate unlock issues 2017-03-22 17:03:38 -06:00
David Sparer
311bf1b641 fix issue with retrieving fuzzy file name 2017-03-22 16:48:38 -06:00
David Sparer
5c9933791c do base64 decoding in the script 2017-03-22 16:39:47 -06:00
David Sparer
039d4d11aa add a cast to help aleviate bat file issues 2017-03-22 16:33:12 -06:00
David Sparer
c0f2d2aa84 fixed bug 2017-03-22 16:27:28 -06:00
David Sparer
45099bfa07 try to get around weird type casting issue 2017-03-22 16:22:53 -06:00
David Sparer
695ae9d970 added script for publishing a release to github 2017-03-22 14:41:35 -06:00
David Sparer
21eb0064b1 enable code signing for installer 2017-03-22 08:45:25 -06:00
David Sparer
513fe402af signed the firefox binaries 2017-03-21 12:47:47 -06:00
David Sparer
b27e5754e8 fix arg passing 2017-03-21 12:07:49 -06:00
David Sparer
fa7231d77b added puttyng.exe to the sign files exclusion list 2017-03-21 11:52:52 -06:00
David Sparer
f5a30ecb33 added some more support for excluding files from signing 2017-03-21 11:42:50 -06:00
David Sparer
7f22289889 add previously signed puttyng binary 2017-03-21 11:21:12 -06:00
David Sparer
f80c39077a Added ability to exclude items from signing 2017-03-21 11:19:09 -06:00
David Sparer
75c60a1cc4 release certificate resources after we've used them 2017-03-21 11:16:05 -06:00
David Sparer
2cf38d6b7c removed some debug code 2017-03-21 11:15:16 -06:00
David Sparer
482c9c1574 added some temp debugging code 2017-03-21 11:10:33 -06:00
David Sparer
882e59a260 normalized the unit test output folder for the portable builds 2017-03-21 10:55:18 -06:00
David Sparer
7a036956b7 added some certificate checks to be more sure that the editbin we're using is legit 2017-03-21 10:29:48 -06:00
David Sparer
7520b20cf9 fixed bug in setting largeaddressaware 2017-03-21 10:28:49 -06:00
David Sparer
d47ccd75d5 Revert "removed unnecessary build configs for the unit tests project"
This reverts commit 56ff81a0ed.
2017-03-21 10:20:20 -06:00
David Sparer
56ff81a0ed removed unnecessary build configs for the unit tests project
im not even sure we need to distinguish between debug and portable builds, but ill leave it like this for now
2017-03-21 10:10:48 -06:00
David Sparer
8db76f5324 actually fix the sensitive param leakage 2017-03-18 17:25:30 -06:00
David Sparer
a9442ea06e added some error output for cert loading action 2017-03-18 16:30:03 -06:00
David Sparer
92bd0d3ea0 do not echo sensitive params 2017-03-18 16:29:44 -06:00
David Sparer
512d7322b2 request cert path and password as script parameters 2017-03-18 16:13:20 -06:00
David Sparer
45645c439f test of msbuild param passing 2017-03-18 15:13:23 -06:00
David Sparer
84ebb82cae the installer project now uses a powershell script for post build actions 2017-03-18 00:24:39 -06:00
David Sparer
576f6a3bd6 fixed issue with tidying release files 2017-03-18 00:24:07 -06:00
David Sparer
96df821eca changed signature failures from errors to warnings 2017-03-18 00:23:44 -06:00
David Sparer
8589778e92 split postbuild actions into powershell scripts 2017-03-17 23:53:59 -06:00
David Sparer
a8a7de9ee6 began converting all post build actions to powershell 2017-03-17 18:01:08 -06:00
David Sparer
1d99340425 remove quoting 2017-03-17 16:33:27 -06:00
David Sparer
a8cdfb56f3 single quote might be safer 2017-03-17 16:18:20 -06:00
David Sparer
0958cdaa2d ensure paths are quoted 2017-03-17 16:13:12 -06:00
David Sparer
ebfb3dd31e added a build config for the installer 2017-03-17 16:01:50 -06:00
Sean Kaim
2293a14a90 sysTray object safehandle implementation 2017-03-17 17:51:04 -04:00
Sean Kaim
3e664a7c2c refactor and fix compiler warning 2017-03-17 17:02:15 -04:00
David Sparer
30b37951b2 Merge branch 'update_signing_script' into develop 2017-03-17 09:20:28 -06:00
David Sparer
0d177d12fe added ability to exclude files for signing. cleaned up script 2017-03-17 09:17:10 -06:00
David Sparer
f7c8a570f8 signed puttyng.exe
we want each version of putty signed only once. this way the file hashes will be the same for each release
2017-03-17 09:16:28 -06:00
Sean Kaim
1814aa86b7 Merge pull request #458 from mRemoteNG/frmmain_menus_refactor_option2
Frmmain menus refactor option2
2017-03-16 13:25:00 -04:00
Sean Kaim
d0a5e658d1 reset dock for toolstrips, get File/View in dsgnr 2017-03-16 13:04:41 -04:00
Sean Kaim
2cbc1da286 Add quickconnect & ext tools to tsContainer 2017-03-16 12:47:15 -04:00
David Sparer
75d21231ae changed all menu classes to use property injection instead of ctor injection so we can use them at design time 2017-03-16 10:24:51 -06:00
Sean Kaim
f2d340a012 VS prompted to update supporte cultures
prompt occured while looking at project properties.
2017-03-15 17:55:02 -04:00
Sean Kaim
1b28111c6d update all nuget's target framework 2017-03-15 16:59:17 -04:00
Sean Kaim
4f4efcbc23 Merge remote-tracking branch 'refs/remotes/origin/develop' into vs2017_build
# Conflicts:
#	mRemoteV1/mRemoteV1.csproj
2017-03-15 16:28:21 -04:00
Sean Kaim
7006d18e93 .net 4.0 / log4net update 2017-03-15 16:24:32 -04:00
Sean Kaim
049959b567 Merge pull request #454 from mRemoteNG/Gecko_Insecure_Certs_v2
Gecko insecure certs v2
2017-03-15 11:43:47 -04:00
Sean Kaim
7cd8c0475e replace log4net with nuget (and latest version) 2017-03-14 16:24:41 -04:00
Sean Kaim
207accf21f update NSubstitute and NUnit packages 2017-03-14 16:17:25 -04:00
Sean Kaim
bd1e62abc1 localization message support, logging, formatting 2017-03-14 12:20:20 -04:00
Sean Kaim
d2e33ee423 I was doing some backwards thinking it appears... 2017-03-14 11:58:51 -04:00
Sean Kaim
f2934f8453 update message, change unhandled messages to false 2017-03-14 10:23:15 -04:00
Sean Kaim
20fb269828 Initial prompt for allow untrusted cert 2017-03-13 18:05:07 -04:00
Sean Kaim
cc13707fea Better error handling 2017-03-13 17:29:17 -04:00
Sean Kaim
a9db6a0473 More code cleanup 2017-03-13 17:26:52 -04:00
Sean Kaim
282ddb85c7 code clean up
Fix - CA2214: Do not call overridable methods in constructors

Relates to #249
2017-03-13 17:11:21 -04:00
David Sparer
9b27200793 updated changelog and credits 2017-03-10 13:03:44 -07:00
David Sparer
0b7d7dac38 Merge pull request #429 from rheingold/develop_added_czech_loc
Develop added czech loc
2017-03-10 12:49:35 -07:00
rheingold
c2edf314c2 Updated czech language file for the new Microphone redirect feature. 2017-03-10 13:31:54 +01:00
Sean Kaim
2da2d54013 Build changes
* Upgrade to VS2017 solution (still compatible with VS2015 though)
* Require .NET 4.5
* Use latest log4net NuGet package (removed old copy)
2017-03-08 11:54:57 -05:00
David Sparer
f433b911a0 modified export form to handle the new credential management system 2017-03-06 15:04:48 -07:00
David Sparer
8b44815b70 fixed some issues with the CSV exporter 2017-03-06 14:46:36 -07:00
David Sparer
788f597a3f Merge branch 'master' into develop
# Conflicts:
#	CHANGELOG.TXT
#	mRemoteNGTests/Config/Serializers/XmlConnectionNodeSerializer27Tests.cs
#	mRemoteNGTests/Config/Serializers/XmlConnectionsDocumentCompilerTests.cs
#	mRemoteNGTests/Config/Serializers/XmlConnectionsDocumentEncryptorTests.cs
#	mRemoteNGTests/Config/Serializers/XmlConnectionsSerializerTests.cs
#	mRemoteV1/Config/Serializers/XmlConnectionNodeSerializer26.cs
#	mRemoteV1/Config/Serializers/XmlConnectionsDocumentCompiler.cs
#	mRemoteV1/Config/Serializers/XmlConnectionsSerializer.cs
#	mRemoteV1/Properties/AssemblyInfo.cs
2017-03-06 13:21:56 -07:00
Sean Kaim
4ee70acf12 update to 1.75hotfix1 2017-03-06 13:26:15 -05:00
Sean Kaim
e5ccd27fd9 correct namespace and code clean up 2017-03-05 20:00:11 -05:00
Sean Kaim
d34ad62c8a fix possible (but highly unlikely) null assignment
found by ReSharper
2017-03-05 19:45:33 -05:00
Sean Kaim
0d0bee674d not used in portable version 2017-03-05 18:35:05 -05:00
Sean Kaim
279747d3a4 fix protection level / non-portable build failure 2017-03-05 15:01:56 -05:00
Sean Kaim
1e4bf38402 Fix copmlier warning CA1401 2017-03-05 14:54:02 -05:00
Sean Kaim
93d1163c5f fix complier warning CA1065
code cleanup/refactor
2017-03-05 14:44:03 -05:00
Sean Kaim
a3e436e42d convert big if-else to switch 2017-03-05 14:43:25 -05:00
Sean Kaim
e824886e19 remove redundant argument values
and other minor resharper cleanup
2017-03-03 16:54:02 -05:00
rheingold
9c724b31de Corrected also the app settings file 2017-03-03 12:16:47 +01:00
David Sparer
a4851c8d81 added null guard when loading default conn info properties 2017-03-01 17:58:24 -07:00
David Sparer
469f48f473 Merge branch 'develop' into improve_credential_manager 2017-03-01 17:37:06 -07:00
David Sparer
c915ac4a74 Added null propagation check for single click handler. resolves #422 2017-03-01 17:35:13 -07:00
David Sparer
9b74c470da Merge branch 'v1_75_release_candidates' into develop
# Conflicts:
#	CHANGELOG.TXT
2017-03-01 17:14:48 -07:00
David Sparer
0a4935d193 fixed a brittle (and currently failing) test 2017-03-01 15:56:39 -07:00
rheingold
5995f6fbef Added czech localization file 2017-02-21 00:28:24 +01:00
Sean Kaim
0ca15a6c65 code clean up 2017-02-16 14:18:36 -05:00
David Sparer
72193833a9 removed the "export" flag from the confCons file - it is no longer necessary for us to differentiate between normal and exported confcons files 2017-02-16 09:21:38 -07:00
David Sparer
e40ffabe4a Merge branch 'v1_75_release_candidates' into develop
# Conflicts:
#	CHANGELOG.TXT
#	mRemoteV1/App/Export.cs
2017-02-16 08:51:43 -07:00
David Sparer
a267e32e0e made the iserializer and ideserializer interfaces more generic 2017-02-14 15:52:20 -07:00
David Sparer
92a5249e45 renamed test class 2017-02-14 15:51:54 -07:00
David Sparer
fbfe664438 replaced duplicate code 2017-02-14 14:58:09 -07:00
David Sparer
b52b5b4287 renamed class 2017-02-14 14:53:20 -07:00
David Sparer
ba3513341a moved some source files into folders 2017-02-14 14:50:12 -07:00
David Sparer
de06ce909e fixed eventing bug when opening the cred manager multiple times 2017-02-14 13:26:16 -07:00
David Sparer
fa29b746e7 moved the IsLoaded property from the RepoConfig to the Repo since this is a state flag 2017-02-14 13:23:30 -07:00
David Sparer
5527ebf085 added an Auth attribute to the xml cred file to get around an issue when the file contains no passwords 2017-02-14 13:21:54 -07:00
David Sparer
cca2052b15 added ability to load/unload a repo 2017-02-14 10:36:40 -07:00
David Sparer
ec0338bb30 fixed small bug with the PasswordForm when it gets loaded multiple times 2017-02-14 10:36:22 -07:00
David Sparer
f40a1b6de8 added support for authenticating to a repo on load 2017-02-14 09:33:42 -07:00
David Sparer
7110337dcd added an interface for requesting a password from the user 2017-02-14 09:28:14 -07:00
David Sparer
cbfe850351 added a flag to set whether a repo is loaded or not 2017-02-14 08:43:45 -07:00
David Sparer
d6d768029b finished linking cred update events together 2017-02-13 15:59:58 -07:00
David Sparer
d003e086bb created a class and event type for handling collections that need to raise events for collection changes and child updates
this is for cases where you would like to have INotifyCollectionChanged and INotifyPropertyChanged implemented, but dont need the level of detail that those types provide.
2017-02-13 13:56:58 -07:00
David Sparer
a3b66ec456 defined new event args classes 2017-02-13 12:05:55 -07:00
David Sparer
1c3d41c03b cleanup 2017-02-11 20:42:20 -07:00
David Sparer
56b1751c3f set default page when opening up cred manager form 2017-02-11 20:41:20 -07:00
David Sparer
93724063e2 cleanup 2017-02-11 20:32:55 -07:00
David Sparer
72b8cd2ac8 credential lists are now loaded and saved from the provider list 2017-02-11 20:30:39 -07:00
David Sparer
e5b22255e9 added a Title property to cred repos to allow creating a friendly name 2017-02-11 19:12:35 -07:00
David Sparer
a4639e295d created page for selecting a credential provider for a new credential 2017-02-11 18:42:36 -07:00
David Sparer
8dc4246c98 renamed page 2017-02-11 18:00:45 -07:00
David Sparer
a187832cdc moved the repository list view to a new class 2017-02-11 17:58:36 -07:00
David Sparer
d08a46a573 fix 2017-02-11 17:57:49 -07:00
David Sparer
e86fcc9636 fix 2017-02-11 17:35:59 -07:00
David Sparer
1f60405d43 began converting credential editor to a page 2017-02-11 17:32:22 -07:00
David Sparer
8f568cc6ac loading creds 2017-02-11 17:31:01 -07:00
David Sparer
4d61820a78 made the treenode click handler generic 2017-02-11 17:25:13 -07:00
David Sparer
b6d49233fb removed CredentialManager in favor of the cred repo list 2017-02-11 16:23:44 -07:00
David Sparer
beac6be7db fixed some tests 2017-02-11 16:23:14 -07:00
David Sparer
b99931df95 started converting everything to use the cred repo list instead of the cred manager 2017-02-11 15:14:55 -07:00
David Sparer
00ba661456 refactored the credential repository to project all loaded items to a locally managed list 2017-02-11 14:39:08 -07:00
David Sparer
2ffde30340 fixed bug where config changes were automatically being accepted and saved 2017-02-11 13:35:29 -07:00
David Sparer
f97a84d2df repository config updates now trigger saves 2017-02-11 13:30:38 -07:00
David Sparer
c5bb10db4c fixed serialization bug 2017-02-11 13:06:54 -07:00
David Sparer
acf4d2f740 we can now save the cred repo list 2017-02-11 12:50:44 -07:00
David Sparer
1c2f6913bb set the cred repo list file path to a non-test value 2017-02-11 12:41:59 -07:00
David Sparer
31be8bee95 dont add cred providers with a duplicate guid 2017-02-11 12:38:33 -07:00
David Sparer
2a113efe5c we can now load the cred repo list 2017-02-11 12:35:02 -07:00
David Sparer
801791b4df renamed cred repo config property "Name" to "TypeName" 2017-02-11 12:18:19 -07:00
David Sparer
643a2ee739 created classes for deserializing a list of cred providers 2017-02-11 12:03:43 -07:00
David Sparer
cd9c97ffc0 password loaded when editing cred repo 2017-02-11 11:30:41 -07:00
David Sparer
c105319b08 added double click support for editing cred repos 2017-02-11 11:17:03 -07:00
David Sparer
d98fa381e8 edit button only active when we have a selected repo 2017-02-11 11:12:17 -07:00
David Sparer
1f39b43869 resolved bug where editing a cred repo would also create a new instance of it 2017-02-11 11:08:37 -07:00
David Sparer
3aeb6a662a we can now edit cred repos 2017-02-11 11:05:07 -07:00
David Sparer
d7c176d4fd resolved small bug in the xml cred repo editor page validation 2017-02-11 11:03:30 -07:00
David Sparer
cac1df7a66 fixed double-click support for selecting cred repo type 2017-02-11 10:54:31 -07:00
David Sparer
aafa383f56 refactored the pagesequence class to be event-based. sequenced pages no longer need a reference to the sequence controller 2017-02-11 10:49:19 -07:00
David Sparer
af6e2abdb2 added another convenience ctor for pagesequence to allow variable arity 2017-02-11 08:33:30 -07:00
David Sparer
05430f7e47 added convenience ctor to the pagesequence class 2017-02-11 08:28:06 -07:00
David Sparer
2daf4cf46a xml cred repo editor page now validates contents before allowing to confirm submission 2017-02-11 08:20:10 -07:00
David Sparer
52333beabe added support for setting the password-mask char for the new-password control 2017-02-11 08:10:26 -07:00
David Sparer
49d1e0622b removed unnecessary classes 2017-02-11 07:48:31 -07:00
David Sparer
eebd87c6b7 created a new class to handle sequences of pages that support next and previous page navigation 2017-02-11 07:44:06 -07:00
David Sparer
c1b6b30144 added ability to remove cred repositories 2017-02-10 17:05:35 -07:00
David Sparer
7703986c9e we can now view currently added credential repositories 2017-02-10 17:00:30 -07:00
David Sparer
6c272d9336 renamed ICredentialProviderCatalog to ICredentialRepositoryList 2017-02-10 16:41:43 -07:00
David Sparer
73b0416dbe we now use a single credential provider catalog throughout the app 2017-02-10 16:37:10 -07:00
David Sparer
c7760b0ed9 creating new xml repositories is mostly complete 2017-02-10 16:32:35 -07:00
David Sparer
c0db476f80 created a new-password control 2017-02-10 16:32:11 -07:00
David Sparer
7999c29b51 began writing logic for creating a new repo from the editor page 2017-02-10 14:52:20 -07:00
David Sparer
1d111a252e added support for double clicking a repo item to begin setup 2017-02-10 14:31:10 -07:00
David Sparer
93d085e23e we can now go back from the repo type selector page 2017-02-10 14:15:14 -07:00
David Sparer
67e0e34f40 clicking "Add" now advances to the repo selection page 2017-02-10 14:05:22 -07:00
David Sparer
098e61295c Renamed CredentialSourcePage to CredentialRepositoryPage 2017-02-10 13:53:18 -07:00
David Sparer
1d2666a343 we can now create cred repo editor pages for selected repo type 2017-02-10 13:03:11 -07:00
David Sparer
b8c2c86c59 renamed ICredentialProvider to ICredentialRepository and split up data/behavior to separate classes 2017-02-10 12:17:12 -07:00
David Sparer
edf0342404 began creating a page for adding a new credential repository 2017-02-10 09:51:16 -07:00
David Sparer
dc6815045c started splitting creential manager gui into a multipage control 2017-02-08 16:51:59 -07:00
David Sparer
23ed1cf5e5 bumped assembly version to 1.76 2017-02-08 09:26:06 -07:00
David Sparer
97715f260f removed old VB config file that is not used 2017-02-08 09:23:35 -07:00
David Sparer
87411ee952 Merge branch 'cleanup_frmMain' into develop 2017-02-08 09:16:19 -07:00
David Sparer
d0bbf1e4ad resolved a toolstrip loading bug due to the main menu being initialized too late 2017-02-08 09:11:50 -07:00
David Sparer
3bbd088733 some rename/cleanup 2017-02-08 09:11:15 -07:00
David Sparer
d96dd5fe82 factored out some logic from frmmain wndproc to a new class 2017-02-08 09:10:54 -07:00
David Sparer
6028e3f299 added a summary msg to one of the native method constants 2017-02-08 09:09:44 -07:00
David Sparer
37bfce1905 moved external tools tool strip to a new class 2017-02-07 16:00:40 -07:00
David Sparer
5993b30ccf moved the quick connect toolstrip to its own class 2017-02-07 15:17:19 -07:00
David Sparer
2fc6c4c0bc removed unnecessary instance var 2017-02-07 14:40:07 -07:00
David Sparer
0195a6bab5 refactored info menu to new class 2017-02-07 14:33:00 -07:00
David Sparer
ccb35bdc5a factored out tools menu to new class 2017-02-07 10:33:34 -07:00
David Sparer
bfadfaf261 moved main and view menus to new classes. they will be further split up to their component parts 2017-02-07 10:14:06 -07:00
David Sparer
d0180a6633 refactored a class out of frm main 2017-02-07 09:13:28 -07:00
David Sparer
afbc580ae6 refactored class out of frmmain 2017-02-06 15:30:59 -07:00
David Sparer
2b2e01f3d1 minor renames (resharper) 2017-02-06 15:26:47 -07:00
David Sparer
529f1ca835 renamed frmMain to FrmMain (resharper) 2017-02-06 15:19:52 -07:00
David Sparer
ee7993b918 at least contained the mess of loading creds/cons to a new class until it can be redesigned 2017-02-06 15:16:06 -07:00
David Sparer
8239a40c72 moved message collector setup 2017-02-06 15:03:36 -07:00
David Sparer
2c9f9a36c5 cleanup 2017-02-06 15:01:49 -07:00
David Sparer
307169fcc3 Merge branch 'develop' into 'cleanup_frmMain' 2017-02-06 15:00:35 -07:00
David Sparer
5ee69d24f7 removed unneeded tests 2017-02-06 14:40:40 -07:00
David Sparer
077106b71b removed unit test for now - will need to rework how log4net is integrated to make it less coupled 2017-02-06 14:38:36 -07:00
David Sparer
141e660d91 Merge branch 'v1_76_temporary_branch' into develop
# Conflicts:
#	CHANGELOG.TXT
2017-02-06 14:35:23 -07:00
David Sparer
be73699013 Merge branch 'message_collector_tweaks' into v1_76_temporary_branch 2017-02-06 14:32:26 -07:00
David Sparer
65e3649999 added changelog entry 2017-02-06 14:31:20 -07:00
David Sparer
994f1ae7ed added option to always log to the mremoteng directory 2017-02-06 14:28:49 -07:00
David Sparer
548e633b72 log file path updates no longer require app restart to take effect 2017-02-06 13:43:10 -07:00
David Sparer
87b98e7949 resolved bug with settings file upgrade overwriting new data 2017-02-06 13:42:11 -07:00
David Sparer
5692baf1f3 set the message icon for debug msgs 2017-02-06 11:29:25 -07:00
David Sparer
8a10a2aa18 split notification message list item creation to a new class 2017-02-06 11:29:07 -07:00
David Sparer
797bbf8870 set the new notifications page icon 2017-02-06 10:14:48 -07:00
David Sparer
edb3f9e885 some cleanup 2017-02-06 10:08:08 -07:00
David Sparer
a0008e165b created classes that tie the logging options to the settings file 2017-02-06 10:01:10 -07:00
David Sparer
3d55b033d6 created tests for MessageTypeFilterDecorator 2017-02-06 09:36:45 -07:00
David Sparer
93fb0efc67 created filter for messages with the OnlyLog flag 2017-02-06 09:22:24 -07:00
David Sparer
b7585ef02c moved the notification panel focuser to a new decorator class 2017-02-06 09:05:33 -07:00
David Sparer
fce07288e9 fix 2017-02-06 08:52:03 -07:00
David Sparer
3ccfdb2e97 pulled the message type filtering options out into a new decorator 2017-02-06 08:51:44 -07:00
David Sparer
5840e2ba07 moved all message filter options to a new interface 2017-02-06 08:26:29 -07:00
David Sparer
4daba88970 renamed the message type filter options 2017-02-06 08:24:48 -07:00
David Sparer
3180feb874 renamed IMessageWriter.Print to Write 2017-02-06 08:20:34 -07:00
David Sparer
17a430f31f removed WriteMessages from the IMessageWriter interface. it was unneeded 2017-02-06 08:14:39 -07:00
David Sparer
20d330f0f1 split up startup arg parsing to a new class and cleaned up the related code. added some debug msgs 2017-02-03 16:20:08 -07:00
David Sparer
27d0467e08 added a message collection function for adding multiple msgs at once. only one notification will be raised for a batch of msgs 2017-02-03 15:02:16 -07:00
David Sparer
5437967218 changed the message ctor to remove the datetime requirement. it will also be DateTime.Now 2017-02-03 15:01:07 -07:00
David Sparer
1228f0572d replaced calls to the log4net logger with calls to messagecollector since it is now safe to do so 2017-02-03 14:23:55 -07:00
David Sparer
9cf44c3050 minor cleanup 2017-02-03 14:07:07 -07:00
David Sparer
aa9b641787 renamed Messages options page to Notifications 2017-02-03 14:06:38 -07:00
David Sparer
2e3c4f33a2 removed setting that is no longer needed 2017-02-03 12:28:07 -07:00
David Sparer
39ef6ebdbf localized all message page text 2017-02-03 12:18:33 -07:00
David Sparer
4d08c22204 removed settings for the debug console message writer. it will only be included in debug builds 2017-02-03 11:55:48 -07:00
David Sparer
4041dd3ad5 localized the choose-log-path string 2017-02-03 11:55:14 -07:00
David Sparer
a38de8198f we can now open the log file from the options page 2017-02-03 11:47:03 -07:00
David Sparer
3369374e43 renamed MessageCollector2 to MessageCollector 2017-02-03 11:41:10 -07:00
David Sparer
d74631bbdb removed the old message collector 2017-02-03 11:39:52 -07:00
David Sparer
be8c392562 rearranged app startup to ensure the message collector is created as early in the process as possible 2017-02-03 11:37:25 -07:00
David Sparer
f564efb4d6 more cleanup of the Windows class 2017-02-03 11:07:40 -07:00
David Sparer
dee9e3c326 removed references to Windows.UpdatePanel 2017-02-03 10:54:02 -07:00
David Sparer
4ff8d7d68e removed references to Windows.ScreenshotPanel 2017-02-03 10:48:01 -07:00
David Sparer
789e467573 remove references to Windows.TreePanel 2017-02-03 10:43:42 -07:00
David Sparer
745b85a3ac removed references to Windows.ErrorsPanel 2017-02-03 10:39:23 -07:00
David Sparer
4f84c2cb01 removed all references to Window.ConfigPanel - we dont need it 2017-02-03 10:34:07 -07:00
David Sparer
83414acb1d fix tests 2017-02-03 10:32:30 -07:00
David Sparer
356effc6a9 split startup data logging to a new class and required a messagecollector to be passed in 2017-02-03 10:13:37 -07:00
David Sparer
88ec186b98 can restore log location to default 2017-02-03 10:10:33 -07:00
David Sparer
530615f049 resolve logging bug where cmdline args arent shown 2017-02-03 09:32:43 -07:00
David Sparer
afec12822f can now select log file path 2017-02-03 09:12:39 -07:00
David Sparer
f117620ead wired up the logging level selection 2017-02-03 08:39:25 -07:00
David Sparer
1c9f34ba1b the notification panel section of the messages page is now working 2017-02-03 08:32:31 -07:00
David Sparer
c26cd9876a the notification panel msg writer now respects the focus-on settings 2017-02-03 08:31:19 -07:00
David Sparer
32f7d37768 Moved message collector/writer setup to a separate class 2017-02-03 07:23:35 -07:00
David Sparer
3873e680e4 fix 2017-02-03 07:13:14 -07:00
David Sparer
ddc8a9a286 one more minor rename 2017-02-03 07:11:33 -07:00
David Sparer
399bde7588 renamed some classes and namespace around the message writers 2017-02-03 07:10:41 -07:00
David Sparer
5e51febee8 message writer settings will be saved in the settings file like all others. no reason to roll my own persistence strategy 2017-02-03 07:02:14 -07:00
David Sparer
6e8200a380 started building new options page for messages 2017-02-02 20:22:22 -07:00
David Sparer
fc9961b2de removed setting that will no longer be needed 2017-02-02 20:20:14 -07:00
David Sparer
d750e3e996 minor cleanup 2017-02-02 20:17:33 -07:00
David Sparer
1cd15c6f7c now loading and saving settings for the message printers 2017-02-02 20:17:15 -07:00
David Sparer
5c47acbcc3 added messageprinter setting de/serializer 2017-02-02 20:15:31 -07:00
David Sparer
1363c2893b modified the imessageprinter interface to include booleans to filter message types 2017-02-02 20:14:20 -07:00
David Sparer
cbc426014b the app now uses the newer message collector 2017-02-02 14:22:06 -07:00
David Sparer
17178e3ae3 added an extra space after the message class in the logs so that error and debug msgs have a space after them 2017-02-02 13:53:42 -07:00
David Sparer
b9299d90df modified the log4net logger to log debug level messages by default. we will futher restrict logging levels based on user preference within the app 2017-02-02 13:52:37 -07:00
David Sparer
aff5b46c5e there were only 2 messages using the Report type. Move those to use the Information type and renamed Report to Debug 2017-02-02 13:51:16 -07:00
David Sparer
2e83f81672 created a popup message printer 2017-02-02 13:31:34 -07:00
David Sparer
e352cc76cf Created a message printer for sending messages to the errors and infos window 2017-02-02 13:06:45 -07:00
David Sparer
cab2ee4fa4 cleaned up the error and info window class 2017-02-02 12:43:47 -07:00
David Sparer
bdfc839080 created a message printer adapter for the log4net logger 2017-02-02 12:08:39 -07:00
David Sparer
6beb21349b created a message printer for writing to the debug stream 2017-02-02 12:07:51 -07:00
David Sparer
b2240e8f1a created a replacement message collector that has no dependency on whatever printers may want to show its messages 2017-02-02 12:07:08 -07:00
David Sparer
32f43d46b5 created an interface for message printers 2017-02-02 12:05:32 -07:00
David Sparer
803d689bd3 renamed some imessage properties 2017-02-02 11:16:01 -07:00
David Sparer
66255bf443 created an interface for the message type 2017-02-02 10:54:11 -07:00
David Sparer
338a486513 resharper cleanup of messagecollector 2017-02-02 10:52:22 -07:00
David Sparer
b543343045 Merge branch 'improve_password_creation_classes' into v1_76_temporary_branch 2017-02-02 08:55:54 -07:00
David Sparer
28c60332e8 moved orchestration of cred and con loading to a separate function 2017-01-31 08:58:30 -07:00
David Sparer
9ddc45721f extracted some classes from Startup 2017-01-30 12:12:16 -07:00
David Sparer
5280ef32cd created a has-special-characters constraint 2017-01-28 14:10:04 -07:00
David Sparer
59a7e4179b minor test fix 2017-01-28 13:40:55 -07:00
David Sparer
bd2054e5a4 created a has-upper-case constraint 2017-01-28 13:39:51 -07:00
David Sparer
69be19c02b created a has-lower-case constraint 2017-01-28 13:35:28 -07:00
David Sparer
fcffeb5734 created a password-has-numbers constraint 2017-01-28 13:15:43 -07:00
David Sparer
11b67208f4 created password length constraint 2017-01-28 12:42:46 -07:00
David Sparer
03e8342c90 Merge branch 'Create_basic_infrastructure_for_supporting_credential_manager' into v1_76_temporary_branch 2017-01-28 11:59:13 -07:00
David Sparer
fcd070066c Merge branch 'v1_76_temporary_branch' into Create_basic_infrastructure_for_supporting_credential_manager
# Conflicts:
#	mRemoteV1/Config/Settings/SettingsSaver.cs
#	mRemoteV1/Properties/Settings.Designer.cs
#	mRemoteV1/Properties/Settings.settings
#	mRemoteV1/Resources/Language/Language.resx
#	mRemoteV1/app.config
2017-01-28 11:57:12 -07:00
Sean Kaim
5d79ad527e Merge remote-tracking branch 'refs/remotes/origin/develop' into v1_76_temporary_branch 2017-01-27 17:15:47 -05:00
Sean Kaim
ffc8b5619e Merge pull request #373 from mRemoteNG/cleanup_converts
Cleanup converts
2017-01-27 17:04:37 -05:00
David Sparer
9be49b3738 harvested credentials now start with a title composed like "username\domain" 2017-01-27 13:58:04 -07:00
David Sparer
724488911e credentials are now harvested for confCons versions 2.6 and older 2017-01-27 13:53:23 -07:00
David Sparer
8ac0bf5865 credential harvester now maps the harvested credentials to the IDs of the connectionInfos that were using them 2017-01-27 13:50:57 -07:00
David Sparer
57c1c38d52 fixed minor bug with PasswordAuthenticator 2017-01-27 13:47:24 -07:00
David Sparer
8b98181752 created a helper to ensure that all connectioninfo objects in an xdoc have IDs 2017-01-27 11:01:42 -07:00
David Sparer
21993a4862 made a few calls to CredentialRecord safer 2017-01-27 09:46:55 -07:00
David Sparer
6e8e1ad74b putty now uses credential record 2017-01-27 09:42:04 -07:00
David Sparer
03da5b3cf1 VNC now uses credential record 2017-01-27 09:31:24 -07:00
David Sparer
f348ef1f96 ICA now uses new credential record 2017-01-27 09:29:42 -07:00
David Sparer
193cebed81 RDP connections now use the new credential record 2017-01-27 09:27:01 -07:00
David Sparer
f2f6156bd0 minor cleanup 2017-01-27 09:17:26 -07:00
David Sparer
0d7c3838f6 split connection serializer for confcons 2.6 and 2.7 into different classes
resolved a bunch of test failures
2017-01-27 09:15:07 -07:00
David Sparer
105e3360be informational message will display when a matching credential cannot be found for a connectioninfo 2017-01-27 07:51:27 -07:00
David Sparer
23dd3b4f41 minor cleanup 2017-01-26 16:12:09 -07:00
David Sparer
bc225f9656 saving and loading default credential now works 2017-01-26 16:11:56 -07:00
David Sparer
dd9f76f73b removed inherit username/domain/password from showing in the property grid 2017-01-26 14:41:43 -07:00
David Sparer
47ae8b903e hide credentialrecord in property grid if its inherited or if we're viewing the rootnode 2017-01-26 14:38:27 -07:00
David Sparer
3dcfd3738d connectionrecord and its inheritance are now serialized and deserialized 2017-01-26 14:32:07 -07:00
David Sparer
8993794a88 created a test for the credential deletion confirmer 2017-01-26 09:58:01 -07:00
David Sparer
a530e7e70a simplified a few tests 2017-01-26 09:45:28 -07:00
David Sparer
4791b8e53c removed unused class 2017-01-26 09:41:45 -07:00
David Sparer
6ddd19ac54 added a deletion confirmer to the credential manager 2017-01-26 09:41:15 -07:00
David Sparer
6a871e73e0 modified the interface for the IConfirmer to be generic 2017-01-26 09:38:55 -07:00
David Sparer
7ba106d97b credentials are now saved when cred property values change from any source 2017-01-26 09:05:11 -07:00
David Sparer
69c021cc54 credentials save when the credential manager raises its changed event 2017-01-26 08:43:32 -07:00
David Sparer
7a63bb395f resolved failing tests 2017-01-26 08:33:28 -07:00
David Sparer
1931695b03 Merge branch 'develop' into Create_basic_infrastructure_for_supporting_credential_manager 2017-01-26 08:19:10 -07:00
David Sparer
b953240966 created some ui elements to make selection credentials from the config window easier 2017-01-26 08:18:00 -07:00
David Sparer
e1c06af3b2 began switching code over to using the newer connectioninfo interface
created a credential manager class to help manage the list of current credentials
2017-01-26 08:17:11 -07:00
Sean Kaim
1cc7bfcb2d Merge remote-tracking branch 'refs/remotes/origin/develop' into cleanup_converts 2017-01-25 17:50:42 -05:00
David Sparer
714c7eb8d1 refactored to remove a static reference to the ConnectionInfo base class 2017-01-25 14:44:24 -07:00
David Sparer
6790287470 renamed AbstractConnectionInfoData to AbstractLegacyConnectionRecord and marked it as obsolete 2017-01-25 14:43:42 -07:00
David Sparer
94a8a5c753 credential harvester now only returns unique credentials sets (based on domain & username) 2017-01-25 13:19:02 -07:00
David Sparer
ca4d22602f began creating credential harvester to help split credentials from confCons v2.6 to confCreds v1.0 2017-01-25 08:16:29 -07:00
Sean Kaim
42774a6227 code cleanup 2017-01-24 21:07:25 -05:00
Sean Kaim
7f65bfeebb remove unecessary converts 2017-01-24 21:05:33 -05:00
Sean Kaim
88178a6b6b remove unnecessary converts 2017-01-24 21:04:20 -05:00
Sean Kaim
3f9ca1454e removed unnecessary converts and code clean up 2017-01-24 21:02:19 -05:00
Sean Kaim
9a3f1bd5cf remove unecessary convert 2017-01-24 20:58:43 -05:00
Sean Kaim
0186254f74 remove unecessary converts 2017-01-24 20:56:22 -05:00
Sean Kaim
6dc432e6a9 remove unecessary converts and code clean up 2017-01-24 20:51:24 -05:00
Sean Kaim
01db774e05 remove unecessary convert & code clean up 2017-01-24 20:48:37 -05:00
Sean Kaim
aaef3dc19c remove unecessary convert 2017-01-24 20:45:58 -05:00
Sean Kaim
bb8009363d remove unnecessary converts 2017-01-24 20:45:17 -05:00
Sean Kaim
5fd403cf08 remove unecessary convert 2017-01-24 20:42:26 -05:00
Sean Kaim
168c77eac5 remove unnecessary parens 2017-01-24 20:40:46 -05:00
Sean Kaim
bf865cbe5d remove unecessary convert 2017-01-24 20:38:38 -05:00
Sean Kaim
3e3029461b remove unnecesary convert 2017-01-24 20:35:51 -05:00
Sean Kaim
c750e0a64e remove unecessary convert 2017-01-24 20:34:32 -05:00
Sean Kaim
fc2662c402 remove unnecessary convert 2017-01-24 20:33:04 -05:00
Sean Kaim
29dad51ff7 Remove unneccessary Converts 2017-01-24 20:28:29 -05:00
David Sparer
da44bba3fe created a builder class for creating a crypto provider from an xml element 2017-01-24 13:35:03 -07:00
David Sparer
b55e42ba78 added cue banner support for text boxes 2017-01-24 09:34:38 -07:00
David Sparer
233a9843d7 password field now uses the secure text box implementation 2017-01-24 09:16:16 -07:00
David Sparer
6184087456 added secure text box 2017-01-24 09:09:25 -07:00
David Sparer
237ad2fa3c made the add/remove buttons a bit larger to accomodate for potentially longer localized words 2017-01-24 08:41:17 -07:00
David Sparer
b8037c04d0 created some localization strings for the credential editor 2017-01-24 08:37:31 -07:00
David Sparer
cdb9c2eddb added more localization strings for the credential manager 2017-01-24 08:28:40 -07:00
David Sparer
8a284f0767 removed unnecessary class 2017-01-24 08:15:30 -07:00
David Sparer
83a57b08ab prevented annoying 'ding' sound on key press 2017-01-23 16:07:56 -07:00
David Sparer
d1a251ff6c cred manager now recognizes delete key for removing entries 2017-01-23 15:48:43 -07:00
David Sparer
12f0c826c8 cred manager no longer groups items 2017-01-23 15:47:25 -07:00
David Sparer
4aa5da8c0d Merge branch 'develop' into Create_basic_infrastructure_for_supporting_credential_manager 2017-01-23 15:32:55 -07:00
David Sparer
58509bcf41 renamed method 2017-01-23 15:31:12 -07:00
David Sparer
8aa0eb1d64 added a key handler for enter and 'a' 2017-01-23 15:26:49 -07:00
David Sparer
ece974c1be fixed bug where selected row would be deselected after committing a change to the list 2017-01-23 15:25:27 -07:00
David Sparer
56dd3c32cb tweaked the credential editor window 2017-01-23 14:33:16 -07:00
David Sparer
118e3a3bd3 added a close button to the cred manager and bound 'esc' to it 2017-01-23 12:24:40 -07:00
David Sparer
8cd3c2a89f simplified the credential list updating mechanism. we dont need an observable list 2017-01-23 11:42:01 -07:00
David Sparer
9c4672fd68 credential manager and cred editor windows now start in the middle of their parent window 2017-01-23 11:39:23 -07:00
David Sparer
7b851e7ac8 optimized event raising so we only save the credential list once for multiple property changes 2017-01-20 13:02:57 -07:00
David Sparer
6c0b33c0dc we can now save and load credentials to xml 2017-01-20 12:27:59 -07:00
David Sparer
4d951c9827 wrapped cred deserialization in try catch 2017-01-20 12:27:05 -07:00
David Sparer
172232be48 created a new generic collection type for getting updates on property changes for items within a collection 2017-01-20 12:25:18 -07:00
David Sparer
d749a13611 moved the add/remove buttons 2017-01-20 10:12:22 -07:00
David Sparer
3998be3f93 created credential saver and loader classes 2017-01-20 10:10:59 -07:00
David Sparer
a381827890 aead crypto provider now returns empty string when asked to decrypt empty message 2017-01-20 10:10:17 -07:00
David Sparer
eecfe45443 xml cred deserializer now ensures empty strings are used for any missing xml attributes 2017-01-20 10:09:42 -07:00
David Sparer
ad5eb7b594 xml credential serializer now serializes domain value 2017-01-20 10:08:58 -07:00
David Sparer
9ce09eb406 Remove button is disabled when no credential selected 2017-01-19 15:15:13 -07:00
David Sparer
9c23f3d1d9 credential list now persists between opening/closing the manager 2017-01-19 15:09:17 -07:00
David Sparer
3f779b7ceb credential record now implements INotifyPropertyChanged. this makes updating the objectlistview much easier 2017-01-19 14:47:49 -07:00
David Sparer
3bc53bd7f8 created screen for viewing credential list and for editing single credentials 2017-01-19 14:29:54 -07:00
David Sparer
27b61fe9a4 renamed the credential Name property to Title 2017-01-19 08:57:08 -07:00
David Sparer
4d94c7ac7a credential deserializer now supports variable decryption parameters 2017-01-19 08:47:27 -07:00
David Sparer
4eb1125b7b credential serializer now provides encryption parameters to support variable decryption 2017-01-19 08:09:11 -07:00
David Sparer
496b481c31 added an xml schema for confcons version 2.7
this removes the username/password/domain from the confcons file schema and puts an id pointing to the credential to use
2017-01-19 07:37:31 -07:00
David Sparer
77120cf156 added xml schema for the credential xml 2017-01-18 16:15:02 -07:00
David Sparer
80f11c0f70 created xml credential deserializer and tests 2017-01-18 16:14:29 -07:00
David Sparer
bee8059cbe added a credential record serializer and tests 2017-01-18 15:31:19 -07:00
David Sparer
0f2e72172b Merge branch 'develop' into Create_basic_infrastructure_for_supporting_credential_manager
# Conflicts:
#	mRemoteV1/Credential/CredentialInfo.cs
#	mRemoteV1/Credential/CredentialList.cs
2017-01-18 14:23:50 -07:00
David Sparer
c7b205dbde Began creating a serializer for saving credential providers 2016-11-09 15:42:51 -07:00
David Sparer
ffff2636ae Made ICredentialProvider implement IEnumerable. Added a few properties to the ICredentialProvider 2016-11-09 15:42:20 -07:00
David Sparer
c69e1bb091 Fleshed out the CredentialProviderCatalog 2016-11-09 15:00:12 -07:00
David Sparer
49531285c9 Renamed class CredentialCatalog to CredentialProviderCatalog 2016-11-09 14:37:04 -07:00
David Sparer
b9824d0095 Renamed test to reflect var name change 2016-11-09 14:36:28 -07:00
David Sparer
3dc04f9246 Renamed UniqueId to just Id 2016-11-09 14:27:22 -07:00
David Sparer
656e3ff022 Began fleshing out the CredentialRecordCatalog which will be a master list of all ICredentialRecords. Will probably be refactoring this a bit more. 2016-11-07 15:33:06 -07:00
David Sparer
94f1a80323 ICredentialLists now hold a reference to their assoviated credential provider 2016-11-07 15:26:11 -07:00
David Sparer
db6c32891a Renamed ICredentialCatalog to ICredentialProviderCatalog 2016-11-07 13:38:38 -07:00
David Sparer
6d819206ea Renamed ICredential to ICredentialRecord 2016-11-07 13:34:43 -07:00
David Sparer
b3bf86d404 Added a few domain specific functions to ICredentialList 2016-10-31 09:17:43 -06:00
David Sparer
296c337eb6 renamed some classes to make more sense 2016-10-31 08:25:22 -06:00
David Sparer
a6f71911fe Added folder in which we can place new credential providers 2016-10-28 12:24:48 -06:00
David Sparer
b91a781d27 Added interface for ICredentialProvider 2016-10-28 12:23:49 -06:00
David Sparer
6aa363830b Minor formatting fix 2016-10-28 11:52:11 -06:00
David Sparer
fffc0f9eae Added a copy constructor to the CredentialRecord 2016-10-28 11:41:27 -06:00
David Sparer
1d2889f5b8 Can create new credential record with a specific Guid 2016-10-28 11:18:53 -06:00
David Sparer
6ed7568cd9 Added UniqueId property to ICredential 2016-10-28 11:11:11 -06:00
David Sparer
22ca5b76b4 Created an interface for the credential repository 2016-10-28 10:51:07 -06:00
David Sparer
a03ce5bf7b Created minimalistic class to encapsulate the credential list (repository) 2016-10-28 10:32:53 -06:00
David Sparer
2994806a35 Created an interface and implementation for credential records 2016-10-28 10:00:16 -06:00
David Sparer
be17960ce6 Removed credential classes that are not used 2016-10-28 09:25:37 -06:00
737 changed files with 76356 additions and 19376 deletions

View File

@@ -11,7 +11,7 @@ There are many ways that you can help improve mRemoteNG, even if you don't know
For example, you might:
- add documentation or "how-to" articles on the [Wiki](https://github.com/mRemoteNG/mRemoteNG/wiki)
- answer support questions on the [forum](http://forum.mremoteng.org)
- [add or improve a translation](https://github.com/mRemoteNG/mRemoteNG/wiki/How to Help Translating mRemoteNG)
- [add or improve a translation](https://github.com/mRemoteNG/mRemoteNG/wiki/How-to-Help-Translating-mRemoteNG)
- submit a [pull request](https://github.com/mRemoteNG/mRemoteNG/pulls) for a [bug or feature ticket](https://github.com/mRemoteNG/mRemoteNG/issues)
@@ -27,7 +27,6 @@ Guidelines for bug reports:
1. Do not open bug reports for questions.
1. Use the GitHub Issue search to make sure your bug hasn't already been reported.
1. Include as much detailed information as possible. We've included a default template when opening an issue to make this easier.
1. Please tag your your bug report with the [`Bug`](https://github.com/mRemoteNG/mRemoteNG/issues?q=is%3Aissue+is%3Aopen+label%3ABug) label.
### Feature requests
Feature requests are great! Take some time to compose a well thought out proposal. It's up to you to convince the project maintainers that your feature is a good idea. To ensure your request receives the consideration that it deserves, include as much detail as possible. For example:
@@ -35,7 +34,6 @@ Feature requests are great! Take some time to compose a well thought out proposa
- What situation led you to want this feature?
- How does the application perform now and how would the new feature change this?
- If applicable, consider including visual mock-ups to show us what you mean.
- Please tag your feature request with the [`Feature Request`](https://github.com/mRemoteNG/mRemoteNG/issues?q=is%3Aissue+is%3Aopen+label%3A%22Feature+Request%22) label.
# Pull requests
Good pull requests are a huge help! If you haven't already, please consider reading [GitHub's guide to contributing to open source](https://guides.github.com/activities/contributing-to-open-source/)

View File

@@ -1,16 +1,30 @@
<!--
Only file GitHub issues for bugs and feature requests. All other topics will be closed.
<!--- Provide a general summary of the issue in the Title above -->
Before opening an issue, please search for a duplicate or closed issue.
Please provide as much detail as possible for us to fix your issue.
-->
## Expected Behavior
<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->
<!-- Bug -->
|||
|--:|---|
|Operating system | Windows 7 x64 |
|mRemoteNG version| 1.75 aplha 3 |
## Current Behavior
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement the addition or change -->
<!-- Feature Request -->
<!-- If you file a feature request, please delete the bug section -->
## Steps to Reproduce (for bugs)
<!--- Provide an unambiguous set of steps to reproduce -->
<!--- this bug. Include code to reproduce, if relevant -->
1.
2.
3.
4.
## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
## Your Environment
<!--- Include as many relevant details about the environment you experienced the bug in -->
* Version used:
* Operating System and version (e.g. Windows 10 1709 x64):

View File

@@ -1,4 +1,29 @@
<!--
Please provide as much detail as possible with what your pull request does.
Include a reference to a filed issue if it exists.
-->
<!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->
## Screenshots (if appropriate):
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the **CONTRIBUTING** document.

View File

@@ -1,3 +1,370 @@
1.76.20 (2019-04-12):
Fixes:
------
#1401: Connections corrupted when importing RDC Manager files that are missing certain fields
1.76.19 (2019-04-04):
Fixes:
------
#1374: Vertical Scroll Bar missing in PuTTYNG after 0.70.0.1 & 0.71 updates
1.76.18 (2019-03-20):
Fixes:
------
#1365: PuTTY window not centered after 0.71 update
1.76.17 (2019-03-20):
Fixes:
------
#1362: Updated PuTTYNG to 0.71
1.76.16 (2019-03-14):
Fixes:
------
#1347: Remote Desktop Gateway username field encrypted instead of password
1.76.15 (2019-03-09):
Fixes:
------
#1303: Exception on first connection with new SQL server database
#1304: Resolved several issues with importing multiple RDP Manager v2.7 files
Features/Enhancements:
----------------------
Importing multiple files now only causes 1 save event, rather than 1 per file imported.
1.76.14 (2019-02-08):
Features/Enhancements:
----------------------
#222: Allow FIPS to be enabled
1.76.13 (2018-12-22):
Changes:
--------
#222: Pre-Release Test build for running on systems with FIPS Enabled
1.76.12 (2018-11-08):
Features/Enhancements:
----------------------
#1180: Allow saving certain connection properties locally when using database
Fixes:
------
#1181: Connections sometimes dont immediately load when switching to sql feature
#1173: Fixed memory leak when loading connections multiple times
#1168: Autohide Connection and Config tab won't open when ssh connection active
#1134: Fixed issue where opening a connection opens same connection on other clients when using database feature
#449: Encrypt passwords saved to database
1.76.11 (2018-10-18):
Fixes:
------
#1139: Feature "Reconnect to previously opened sessions" not working
#1136: Putty window not maximized
1.76.10 (2018-10-07):
Fixes:
------
#1124: Enabling themes causes an exception
1.76.9 (2018-10-07):
Fixes:
------
#1117: Duplicate panel created when "Reconnect on Startup" and "Create Empty Panel" settings enabled
#1115: Exception when changing from xml data storage to SQL
#1110: Pressing Delete button during connection rename attempts to delete the connection instead of the text
#1106: Inheritance does not work when parent has C# default type set
#1092: Invalid Cast Exceptions loading default connectioninfo
#1091: Minor themeing issues
#853: Added some additional safety checks and logging to help address RDP crashes
1.76.8 (2018-08-25):
Fixes:
------
#1088: Delete and Launch buttons are not disabled when last external tool deleted
#1087: 'Save connections after every edit' setting not honored
#1082: Connections not given GUID if Id is empty in connection xml
1.76.7 (2018-08-22):
Fixes:
------
#1076: Wrong object selected when duplicating connection then switching between properties and inheritance in config window
#1068: Fixed some toolbar positioning bugs
1.76.6 (2018-08-03):
Fixes:
------
#1062: Entering correct password when starting app does not load connections file
1.76.5 (2018-08-02):
Fixes:
------
#1057: Hitting F2 with no connection node selected caused unhandled exception
#1052: 'Switch to notification panel' feature does not always switch
#1051: Tooltips always displayed regardless of 'Show description tooltips in connection tree' setting
#1050: Config window retains access to previously selected node after loading new connections file
#1045: Config window shows several incorrect properties for HTTPS connections
#1040: Canceling "select panel" form does not cancel
#1039: Set default theme when themes disabled
#1038: Unable to add connection with active filter
#1036: Exception when themes are active and options page closed on Connections then reopened
#1034: Connection context menu not being translated
#1030: Exception thrown if importing from port scan and no tree node is selected
#1020: BackupFileKeepCount setting not limiting backup file count
#1004: Duplicating root or PuTTy node through hotkey causes unhandled exception
#1002: Disabling filtering without clearing keyword leaves filtered state
#1001: Connection tree context menu hotkeys stop working and disappear in some cases
#999: Some hotkeys stop working if File menu was called when PuTTy Saved Sessions was selected
#998: Can sometimes add connection under PuTTY Sessions node
#991: Error when deleting host in filtered view
#971: Portable Settings now apply to any machine they are used on
#961: Connections file overwritten if correct decryption password not provided
#893: Removed unneeded files from build/package
#868: if statement returned the same value
#762: Increased button size to fit locaized text
1.76.4 Alpha 6 (2018-06-03):
Features/Enhancements:
----------------------
#948: Fixed issue where many menu item translations were not being used
#942: Improved Russian translation of several items
#924: Notification for "No Host Specified" when clicking folders in quick-connect menu
#902: Menu bar can once again be moved. View -> "Lock toolbar positions" now also locks the menu position
Added option for creating an empty panel on startup
Fixes:
------
#938: Minor layout improvements on the Port Scan screen
#916: Default properties were not being saved
1.76.3 Alpha 5 (2018-03-14):
Fixes:
------
#911: Csv exports sometimes do not include all fields
#807: Inheritance is sometimes turned on for nodes under root Connections node
1.76.2 Alpha 4 (2018-03-03):
Fixes:
------
#899: DoNotPlay is Case Sensitive in XML Serialization
1.76.1 Alpha 3 (2018-02-24):
Features/Enhancements:
----------------------
#625: Added ability to import mRemoteNG formatted CSV files
#648: The port scan ping timeout is now configurable
Fixes:
------
Fixed a few Xml serialization bugs that would occur if boolean values weren't capitalized
1.76.0 Alpha 2 (2018-02-01):
Features/Enhancements:
----------------------
#838: Added an option to lock toolbars
#836: Added a Read Only option for SQL connections
#829: Add option that fixes connecting to Azure instances with LoadBalanceInfo
Fixes:
------
#840: Fix theme loading issue in installer version
#800: Fixed issue with PuTTY sessions not showing some extended characters
Fixed a few toolbar layout issues
1.76.0 Alpha 1 (2017-12-08):
Features/Enhancements:
----------------------
#799: Added option to save connections on every edit
#798: Added button to test SQL database connections on SQL options page
#784: Rearranged some settings in the Options pages to prevent overlap with some translations
#704: Portable version now saves settings in application directory
#671: Revamped UI theme system
#611: Added multi-ssh toolbar for sending commands to many SSH clients at once
#558: Connection tree now shows customizable icons instead of play/pause icon
#519: You can now import normal mRemoteNG files - they do not have to be exports
#504: Added Korean translation
#485: The Domain field is now visible/editable for connection with the IntApp protocol
#468: Default connection info Panel property is now saved
#429: Added Czech translation
#421: When a connection file cannot be loaded, we will now prompt for how to proceed rather than always exiting.
#338: Added option to filter connection tree when searching
#357: Updated GeckoFX to v45.45.0.32
#225: Added support for importing Remote Desktop Connection Manager v2.7 RDG files
#207: Can now specify a working directory for external tools
#197: Selecting a quick connect protocol will start a connection with that host
#184: Improve search to include description and hostname fields
#152: Added option "Show on Toolbar" to external tools
Added more logging/notifications options
Fixes:
------
#747: Fixed unnecessary "PuttySessions.Watcher.StartWatching" error message
#650: Fixed German translation typo
#639: Fixed Italian translation typo
#479: New connection tree nodes not starting in edit mode
#233: Fixed crash that can occur when disconnecting from VNC server
#195: Access to https with self-signed certificates not working
General Changes:
----------------
#797: Removed duplicate translation strings
#608: The Help -> Support Forum menu item now directs users to our Reddit community
#493: Changed backup file name time stamp to use local system time rather than UTC
Improved compatability between environments when building mRemoteNG from source
1.75.7012 (2017-12-01):
Fixes:
------
#814: Fixed bug that prevented reordering connections by dragging
#810: Official mRemoteNG builds will now be signed with a DigiCert certificate
#803: File path command line argument not working with network path
1.75.7011 (2017-11-07):
Fixes:
------
#778: Custom connection file path command line argument (/c) not working
#763: Sometimes minimizing folder causes connection tree to disappear
#761: Connections using external tools do not start (introduced in v1.75.7009)
#758: "Decryption failed" message when loading from SQL server
Fixed issues with /resetpanels and /resetpos command line arguments
Resolved bug where connection tree hotkeys would sometimes be disabled
1.75.7010 (2017-10-29):
Fixes:
------
#756: CustomConsPath always null
1.75.7009 (2017-10-28):
Fixes:
------
#676: Portable version ignores /cons param on first run
#675: Attempting to add new connection/folder does not work in some situations
#665: Can not add new connection or new folder in some situations
#658: Keep Port Scan tab open after import
#646: Exception after click on import port scan
#635: Updated PuTTYNG to 0.70
#610: mRemoteNG cannot start /crashes for some users on Windows server 2012 R2 server
#600: Missing horizontal scrollbar on Connections Panel
#596: Exception when launching external tool without a connection selected
#550: Sometimes double-clicking connection tree node began rename instead of connecting
#536: Prevented log file creation when writeLogFile option is not set
#529: Erratic Tree Selection when using SQL Database
#482: Default connection password not decrypted when loaded
#335: The Quick Connect Toolbar > Connection view does not show open connections with the play icon
#176: Unable to enter text in Quick Connect when SSH connection active
Minor error message correction
Minor code refactoring
NO.RELEASE (2017-06-15):
Fixed in previous releases:
---------------------------
#466: Installer still failing on Win7 for updates - v1.75.7005 (Hotifx 5)
#462: Remove no longer used files from portable version - v1.75.7003 (Hotfix 4)
1.75.7008 (2017-06-15):
Fixes:
------
#589: MSI doesn't update with newer PuTTYNG version that fixes #583 (Again, Sorry!)
Minor updates to the installer build
1.75.7007 (2017-06-14):
Fixes:
------
#583: SSH (PuTTYNG) Sessions are not properly integrated into the main mRemoteNG window (Sorry!)
1.75.7006 (2017-06-13):
Fixes:
------
#377: Use all space on About page
#527: Additional protections to avoid problems on update check in heavily firewalled environments
#530: Fixed issue where using External Tool on existing connection causes creation of 'New Connection' entry
#531: Update PuTTYNG to 0.69
#546: Quick Connect from notification area icon displays warning when clicking on a folder (see #334)
1.75.7005 (2017-04-27):
Fixes:
------
#410: Update PuTTYNG to 0.68
#434: Fix complier warnings CA1049 & CA2111
#442: Fixed issue loading PuTTY sessions that have spaces in the name
#502: Problems with ParentID for Duplicated Containers/Connections with SQL Connection Storage
#514: Expanded property not saved/loaded properly from SQL
#518: Exception when Importing File
General Changes:
----------------
Minor code cleanup/optimizations/null checks
1.75.7003 (2017-03-24):
Fixes:
------
#464: Resolved issue when importing a connections file while using SQL server feature
1.75.7002 (2017-03-10):
Fixes:
@@ -25,6 +392,7 @@ Fixes:
#427: Export does not respect filtering user/password/domain
1.75 (2017-03-01):
Known Issue:
@@ -36,17 +404,6 @@ File hash check will fail when updating from 1.75 Beta 1 to newer versions.
Features/Enhancements:
----------------------
#344 - Use SHA512 File Hashes to validate downloads (in the update mechanism & posted to the Downloads page)
1.75 RC1 (2017-01-27):
Known Issue:
------------
Portable build MD5 check will fail when updating from 1.75 Beta 1 to newer versions.
Features/Enhancements:
----------------------
Added Release Channels to the update check functionality allowing users to select one of 3 release channels for updates: Stable, Beta, Dev
#360: Help -> About, Version # is now selectable/copyable
#221: RDP: Optional disconnect after X number of minutes of inactivity

View File

@@ -11,7 +11,20 @@ Bennett Blodinger (github.com/benwa)
Joe Cefoli (github.com/jcefoli)
countchappy (github.com/countchappy)
Tony Lambert
Julien Roncaglia (github.com/vbfox)
github.com/peterchenadded
Brandon Wulf (github.com/mrwulf)
Pedro Rodrigues (github.com/pedro2555)
github.com/dekelMP
github.com/farosch
Bruce (github.com/brucetp)
Camilo Alvarez (github.com/jotatsu)
github.com/DamianBis
github.com/pfjason
github.com/sirLoaf
github.com/Fyers
Vladimir Semenov (github.com/sli-pro)
Stephan (github.com/st-schuler)
Past Contributors
@@ -44,12 +57,18 @@ Robert Siwiec
Hayato Iriumi
Sebastien Thieury (github.com/SebThieu)
Riza Emet
Lukas Plachy (github.com/rheingold)
Gyuha Shin
Stefan (github.com/polluks)
github.com/emazv72
Vladimir Semenov (github.com/sli-pro)
Marco Sousa (github.com/marcomsousa)
Included Source Code
====================
Command Line Arguments Parser 1.0
Command Line Arguments Parser
Copyright <20> 2002 Richard Lopes
MIT License
http://www.codeproject.com/KB/recipes/command_line.aspx
@@ -58,10 +77,6 @@ FilteredPropertyGrid
Copyright <20> 2006 Azuria
http://www.codeproject.com/KB/cs/FilteredPropertyGrid.aspx
Hotkey Selection Control for .NET
Copyright <20> 2006 Thomas Backman
http://www.codeproject.com/Articles/15085/A-simple-hotkey-selection-control-for-NET
InputBox
Copyright <20> 2016 Jan Slama
http://www.csharp-examples.net/inputbox/
@@ -70,37 +85,41 @@ IP TextBox
Copyright <20> 2005 mawnkay
http://www.codeproject.com/Articles/11576/IP-TextBox
PortableSettingsProvider
Copyright <20> 2014 crdx
https://github.com/crdx/PortableSettingsProvider
Included Components
===================
ADTree 1.0
ADTree
Copyright <20> 2004 Marc Merritt
Copyright <20> 2008 Felix Deimel
http://www.codeproject.com/KB/selection/ADPickerCtrl.aspx
DockPanel Suite 2.10.0
DockPanel Suite
Copyright <20> 2016 @roken and @lextm (formerly Weifen Luo)
MIT License
https://github.com/dockpanelsuite/dockpanelsuite
GeckoFX 45
GeckoFX
Copyright <20> 2016 Tom Hindle
Mozilla Public License
https://bitbucket.org/geckofx/
log4net 1.2.15.0
log4net
Copyright <20> 2001-2015 The Apache Software Foundation
Apache License Version 2.0
http://logging.apache.org/log4net/
Magic Library 1.7.4
Magic Library
Copyright <20> 2002-2003 Crownwood Consulting, Ltd.
Freely redistributable with attribution
http://www.dotnetmagic.com/magic_download.html
PuTTY 0.67
Copyright <20> 1997-2016 Simon Tatham
PuTTY
Copyright <20> 1997-2017 Simon Tatham
MIT License
http://www.chiark.greenend.org.uk/~sgtatham/putty/
@@ -109,12 +128,17 @@ Copyright
Creative Commons Attribution 2.5 License
http://www.famfamfam.com/
SSH.NET v2016.0.0
SSH.NET
Copyright <20> 2016
MIT License
https://github.com/sshnet/SSH.NET
VncSharp 1.1
VncSharp
Copyright <20> 2004-2009 David Humphrey
GNU General Public License (GPL) Version 2
https://github.com/humphd/VncSharp
ObjectListView
Copyright <20> 2006-2016 Phillip Piper
GNU General Public License (GPL) Version 3
https://sourceforge.net/projects/objectlistview/

View File

@@ -17,7 +17,7 @@
<?define RequiredDotNetFrameworkServicePackLevel = "" ?>
<?define RequiredDotNetFrameworkVersion = "$(var.RequiredDotNetFrameworkMajorVersion).$(var.RequiredDotNetFrameworkMinorVersion)" ?>
<?define Rdp80Kb = "KB2592687" ?>
<?define Rdp81Kb = "KB2923545" ?>
<?define Rdp81Kb = "KB2830477" ?>
<?define MinimumRdpKb = $(var.Rdp80Kb) ?>
<?define RdpDtlsKb = "KB2574819" ?>
<?define IGNOREPREREQUISITES = 0 ?>

View File

@@ -39,9 +39,6 @@
<Compile Include="mRemoteNGV1.wxs" />
</ItemGroup>
<ItemGroup>
<Content Include="Dependencies\PuTTYNG.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Filters\Harvest_Filter.xslt" />
<Content Include="Includes\Config.wxi" />
<Content Include="Resources\header.bmp" />
@@ -57,7 +54,6 @@
<Folder Include="Localizations" />
<Folder Include="Filters" />
<Folder Include="bin" />
<Folder Include="Dependencies" />
<Folder Include="Resources" />
</ItemGroup>
<ItemGroup>
@@ -68,6 +64,10 @@
<EmbeddedResource Include="Localizations\en-US.wxl" />
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUtilExtension">
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
<Name>WixUtilExtension</Name>
</WixExtension>
<WixExtension Include="WixUIExtension">
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
@@ -115,20 +115,19 @@
<DefineConstants>HarvestPath=$(SolutionDir)mRemoteV1\bin\Release Portable;HelpFilesHarvestPath=$(SolutionDir)mRemoteV1\Resources\Help</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>set /p buildenv=&lt;buildenv.tmp
<PostBuildEvent>:: When passing paths to powershell scripts, check if the path ends with a backslash "\"
:: If it does, then the backslash may be interpreted as an escape character. Add another backslash to cancel the first one.
REM Sign MSI
IF EXIST C:\mRemoteNG_code_signing_cert.pfx (
IF %25buildenv: Portable=%25==Release (
powershell "&amp;""$(SolutionDir)Tools\signfiles.ps1""" %27%25cd%25%27
)
)
powershell -noprofile -command "sleep 2"
set /p buildenv=&lt;buildenv.tmp
set solutionDir=$(SolutionDir)\
set targetDir=%25cd%25
set psScriptsDir=$(SolutionDir)Tools
set certPath=$(CertPath)
set certPassword=$(CertPassword)
REM Rename MSI to include version number
powershell -ExecutionPolicy Bypass -File "$(SolutionDir)Tools\rename_installer_with_version.ps1" $(SolutionDir)
REM Copy MSI to Release folder
IF %25buildenv: Portable=%25==Release (powershell -ExecutionPolicy Bypass -File "$(SolutionDir)Tools\copy_release_installer.ps1" $(TargetDir) $(SolutionDir)Release)</PostBuildEvent>
:: Call the post build powershell script
powershell.exe -ExecutionPolicy Bypass -File "%25psScriptsDir%25\postbuild_installer.ps1" -SolutionDir "%25solutionDir%25" -TargetDir "%25targetDir%25" -TargetFileName "mRemoteNG.exe" -ConfigurationName "%25buildenv%25" -CertificatePath "%25certPath%25" -CertificatePassword "%25certPassword%25"</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>REM Clean the TargetDir
@@ -137,9 +136,9 @@ rmdir /S /Q "$(TargetDir)"
echo $(ConfigurationName) &gt; buildenv.tmp
REM Harvest bin directory of the mRemoteV1 project
call "$(WIX)bin\heat.exe" dir "$(SolutionDir)mRemoteV1\bin\$(Configuration)" -ag -dr INSTALLDIR -var var.HarvestPath -srd -cg MandatoryComponents -template fragment -out "$(ProjectDir)Fragments\FilesFragment.wxs" -t "$(ProjectDir)Filters\Harvest_Filter.xslt" -v
"$(WIX)bin\heat.exe" dir "$(SolutionDir)mRemoteV1\bin\$(Configuration)" -ag -nologo -dr INSTALLDIR -var var.HarvestPath -srd -cg MandatoryComponents -template fragment -out "$(ProjectDir)Fragments\FilesFragment.wxs" -t "$(ProjectDir)Filters\Harvest_Filter.xslt"
REM Convert the license file "COPYING.TXT" to "License.rtf" to be shown in the installer GUI
call "$(ProjectDir)Resources\Pandoc\pandoc.exe" -s -t rtf -o "$(ProjectDir)\Resources\License.rtf" "$(SolutionDir)COPYING.TXT"</PreBuildEvent>
"$(ProjectDir)Resources\Pandoc\pandoc.exe" -s -t rtf -o "$(ProjectDir)\Resources\License.rtf" "$(SolutionDir)COPYING.TXT"</PreBuildEvent>
</PropertyGroup>
</Project>

View File

@@ -6,7 +6,7 @@
<String Id="Install_NeedToBeAdminToInstall">You need to be an administrator to install this product.</String>
<String Id="Install_NeedDotNetFrameworkVersion">mRemoteNG requires Microsoft .NET Framework [REQUIREDDOTNETFRAMEWORKVERSION] or higher.</String>
<String Id="Install_OSVersionRequirement">mRemoteNG requires Windows 7 SP1 or higher to run. Please update your operating system and try again.</String>
<String Id="Install_RDP80Requirement">mRemoteNG requires RDP 8.0 or higher to run. Windows 7 users will need to install KB2592687</String>
<String Id="Install_RDP80Requirement">mRemoteNG requires RDP 8.0 or higher to run. Windows 7 users will need to install either KB2592687 (RDP 8.0) or KB2830477 (RDP 8.1)</String>
<String Id="Install_RDPDtlsRequirement">mRemoteNG requires KB2574819 in order to create RDP connections. Windows 7 users will need to install this KB.</String>
<String Id="Install_Win7RequiresSP1">For mRemoteNG to run on Windows 7, it requires Service Pack 1 to be installed. Please install Service Pack 1 and try again.</String>
@@ -22,6 +22,6 @@
<String Id="Feature_StartMenuShortcut">Start menu shortcut</String>
<!-- GUI Page Text -->
<String Id="FinishPage_LaunchMremoteNow" Overridable="yes">Launch [ProductName] Now</String>
<String Id="FinishPage_LaunchMremoteNow" Overridable="yes">Launch mRemoteNG Now</String>
</WixLocalization>

View File

@@ -10,6 +10,7 @@
<MajorUpgrade DowngradeErrorMessage="!(loc.Upgrade_NewerVersionInstalled)" Schedule="afterInstallExecute" />
<MediaTemplate EmbedCab="yes" />
<Binary Id="CustomActions.CA.dll" SourceFile="$(var.SolutionDir)InstallerProjects\CustomActions\bin\$(var.Configuration)\CustomActions.CA.dll" />
<Property Id="MsiLogging" Value="v" />
<Property Id="ARPPRODUCTICON" Value="mRemoteNG.ico" />
<Property Id="ARPHELPLINK" Value="http://www.mremoteng.org" />
<SetProperty Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" After="CostFinalize" />
@@ -67,7 +68,7 @@
<Condition Message="!(loc.Install_RDPDtlsRequirement)">
<![CDATA[Installed OR (IGNOREPREREQUISITES = 1) OR (VersionNT >= 602 OR VersionNT64 >= 602) OR ((VersionNT = 601 OR VersionNT64 = 601) AND (RDP_DTLS_UPDATE_INSTALLED = 1))]]>
</Condition>
<!-- If Win7, require RDP 8.0 update (KB2592687) -->
<!-- If Win7, require RDP 8.0 (KB2592687) or 8.1 (KB2830477) update -->
<Condition Message="!(loc.Install_RDP80Requirement)">
<![CDATA[Installed OR (IGNOREPREREQUISITES = 1) OR (VersionNT >= 602 OR VersionNT64 >= 602) OR ((VersionNT = 601 OR VersionNT64 = 601) AND (MINIMUM_RDP_VERSION_INSTALLED = 1))]]>
</Condition>
@@ -95,10 +96,22 @@
</Feature>
</Feature>
<UI>
<UIRef Id="WixUI_FeatureTree"/>
<UIRef Id="WixUI_ErrorProgressText" />
<Publish Dialog="ExitDialog"
Control="Finish"
Event="DoAction"
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
</UI>
<UIRef Id="WixUI_FeatureTree"/>
<WixVariable Id="WixUILicenseRtf" Value="Resources\License.rtf" />
<WixVariable Id="WixUIDialogBmp" Value="Resources\welcome.bmp" />
<WixVariable Id="WixUIBannerBmp" Value="Resources\header.bmp" />
<!-- Provide option to run app after install -->
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="!(loc.FinishPage_LaunchMremoteNow)" />
<Property Id="WixShellExecTarget" Value="[#MainExeFile]" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
</Product>
</Wix>

68
Jenkinsfile vendored
View File

@@ -1,23 +1,63 @@
#!groovy
node('windows') {
def jobDir = pwd()
def solutionFilePath = "\"${jobDir}\\mRemoteV1.sln\""
def vsToolsDir = "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools"
def vsExtensionsDir = "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow"
def msBuild = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\msbuild.exe"
def nunitConsolePath = "${jobDir}\\packages\\NUnit.ConsoleRunner.3.7.0\\tools\\nunit3-console.exe"
def openCoverPath = "${jobDir}\\packages\\OpenCover.4.6.519\\tools\\OpenCover.Console.exe"
def reportGeneratorPath = "${jobDir}\\packages\\ReportGenerator.3.0.2\\tools\\ReportGenerator.exe"
def testResultFilePrefix = "TestResult"
def testResultFileNormal = "${testResultFilePrefix}_UnitTests_normal.xml"
def testResultFilePortable = "${testResultFilePrefix}_UnitTests_portable.xml"
def testResultFileAcceptance = "${testResultFilePrefix}_AcceptanceTests.xml"
def coverageReport = "code_coverage_report.xml"
def codeCoverageHtml = "CodeCoverageReport.html"
stage 'Checkout Branch'
checkout scm
stage ('Checkout Branch') {
checkout scm
bat "del /Q \"${jobDir}\\${testResultFilePrefix}*.xml\""
}
stage 'Restore NuGet Packages'
def nugetPath = "C:\\nuget.exe"
bat "${nugetPath} restore ${solutionFilePath}"
stage ('Restore NuGet Packages') {
def nugetPath = "C:\\nuget.exe"
bat "${nugetPath} restore ${solutionFilePath}"
}
stage 'Build mRemoteNG (Normal)'
bat "\"${vsToolsDir}\\VsDevCmd.bat\" && msbuild.exe /nologo /p:Platform=x86 \"${jobDir}\\mRemoteV1.sln\""
stage ('Build mRemoteNG (Normal)') {
bat "\"${msBuild}\" /nologo /p:Platform=x86 \"${jobDir}\\mRemoteV1.sln\""
}
stage 'Build mRemoteNG (Portable)'
bat "\"${vsToolsDir}\\VsDevCmd.bat\" && msbuild.exe /nologo /p:Configuration=\"Debug Portable\";Platform=x86 \"${jobDir}\\mRemoteV1.sln\""
stage ('Build mRemoteNG (Portable)') {
bat "\"${msBuild}\" /nologo /p:Configuration=\"Debug Portable\";Platform=x86 \"${jobDir}\\mRemoteV1.sln\""
}
stage 'Run Unit Tests'
def nunitTestAdapterPath = "C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\VisualStudio\\14.0\\Extensions"
bat "\"${vsToolsDir}\\VsDevCmd.bat\" && VSTest.Console.exe /TestAdapterPath:${nunitTestAdapterPath} \"${jobDir}\\mRemoteNGTests\\bin\\debug\\mRemoteNGTests.dll\""
stage ('Run Unit Tests (Normal, w/coverage)') {
try {
bat "\"${openCoverPath}\" -register:user -target:\"${nunitConsolePath}\" -targetargs:\"\"${jobDir}\\mRemoteNGTests\\bin\\debug\\mRemoteNGTests.dll\" --result=${testResultFileNormal} --x86\" -output:\"${coverageReport}\""
}
catch (ex) {
nunit testResultsPattern: "${testResultFilePrefix}*.xml"
throw ex
}
}
stage ('Run Unit Tests (Portable)') {
try {
bat "\"${nunitConsolePath}\" \"${jobDir}\\mRemoteNGTests\\bin\\debug portable\\mRemoteNGTests.dll\" --result=${testResultFilePortable} --x86"
}
catch (ex) {
nunit testResultsPattern: "${testResultFilePrefix}*.xml"
throw ex
}
}
stage ('Run Acceptance Tests') {
try {
bat "\"${nunitConsolePath}\" \"${jobDir}\\mRemoteNG.Specs\\bin\\debug\\mRemoteNG.Specs.dll\" --result=${testResultFileAcceptance} --x86"
}
catch (ex) {
nunit testResultsPattern: "${testResultFilePrefix}*.xml"
throw ex
}
}
}

View File

@@ -0,0 +1,71 @@
node('windows') {
def jobDir = pwd()
def solutionFilePath = "\"${jobDir}\\mRemoteV1.sln\""
def msBuild = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\msbuild.exe"
def nunitConsolePath = "${jobDir}\\packages\\NUnit.ConsoleRunner.3.7.0\\tools\\nunit3-console.exe"
def openCoverPath = "${jobDir}\\packages\\OpenCover.4.6.519\\tools\\OpenCover.Console.exe"
def testResultFilePrefix = "TestResult"
def testResultFileNormal = "${testResultFilePrefix}_UnitTests_normal.xml"
def testResultFilePortable = "${testResultFilePrefix}_UnitTests_portable.xml"
def coverageReport = "code_coverage_report.xml"
stage ('Clean output dir') {
bat script: "rmdir /S /Q \"${jobDir}\\Release\" 2>nul", returnStatus: true
}
stage ('Checkout Branch') {
checkout([
$class: 'GitSCM',
branches: [[name: '*/${TargetBranch}']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: '9c3fbff4-5b90-402f-a298-00e607fcec87',
url: 'https://github.com/mRemoteNG/mRemoteNG.git'
]]
])
}
stage ('Restore NuGet Packages') {
def nugetPath = "C:\\nuget.exe"
bat "${nugetPath} restore ${solutionFilePath}"
}
withCredentials([file(credentialsId: '9b674d57-6792-48e3-984a-4d1bab2abb64', variable: 'CODE_SIGNING_CERT')]) {
withCredentials([usernamePassword(credentialsId: '05b7449b-05c0-490f-8661-236242526e62', passwordVariable: 'MRNG_CERT_PASSWORD', usernameVariable: 'NO_USERNAME')]) {
stage ('Build mRemoteNG (Normal - MSI)') {
bat "\"${msBuild}\" /nologo /t:Clean,Build /p:Configuration=\"Release Installer\" /p:Platform=x86 /p:CertPath=\"${env.CODE_SIGNING_CERT}\" /p:CertPassword=${env.MRNG_CERT_PASSWORD} \"${jobDir}\\mRemoteV1.sln\""
archiveArtifacts artifacts: "Release\\*.msi", caseSensitive: false, onlyIfSuccessful: true, fingerprint: true
}
stage ('Build mRemoteNG (Portable)') {
bat "\"${msBuild}\" /nologo /t:Clean,Build /p:Configuration=\"Release Portable\" /p:Platform=x86 /p:CertPath=\"${env.CODE_SIGNING_CERT}\" /p:CertPassword=${env.MRNG_CERT_PASSWORD} \"${jobDir}\\mRemoteV1.sln\""
archiveArtifacts artifacts: "Release\\*.zip", caseSensitive: false, onlyIfSuccessful: true, fingerprint: true
}
}
}
stage ('Run Unit Tests (Normal - MSI)') {
bat "\"${nunitConsolePath}\" \"${jobDir}\\mRemoteNGTests\\bin\\release\\mRemoteNGTests.dll\" --result=${testResultFileNormal} --x86"
}
stage ('Run Unit Tests (Portable)') {
bat "\"${nunitConsolePath}\" \"${jobDir}\\mRemoteNGTests\\bin\\release portable\\mRemoteNGTests.dll\" --result=${testResultFilePortable} --x86"
}
stage ('Generate UpdateCheck Files') {
bat "powershell -ExecutionPolicy Bypass -File \"${jobDir}\\Tools\\create_upg_chk_files.ps1\" -TagName \"${env.TagName}\" -UpdateChannel \"${env.UpdateChannel}\""
archiveArtifacts artifacts: "Release\\*.txt", caseSensitive: false, onlyIfSuccessful: true
}
stage ('Publish to GitHub') {
withCredentials([string(credentialsId: '5443a369-dbe8-42d3-b4e8-04d0b4e9039a', variable: 'GH_AUTH_TOKEN')]) {
def releaseFolder = "${jobDir}\\Release"
// because batch files suck at handling newline characters, we have to convert to base64 in groovy and back to text in powershell
def base64Description = env.ReleaseDescription.bytes.encodeBase64().toString()
bat "powershell -ExecutionPolicy Bypass -File \"${jobDir}\\Tools\\publish_to_github.ps1\" -Owner \"mRemoteNG\" -Repository \"mRemoteNG\" -ReleaseTitle \"${env.ReleaseTitle}\" -TagName \"${env.TagName}\" -TargetCommitish \"${env.TargetBranch}\" -Description \"${base64Description}\" -IsDraft ${env.IsDraft} -IsPrerelease ${env.IsPreRelease} -ReleaseFolderPath \"${releaseFolder}\" -AuthToken \"${env.GH_AUTH_TOKEN}\" -DescriptionIsBase64Encoded"
}
}
}

View File

@@ -10,38 +10,50 @@
| Update Channel | Build Status | Downloads |
| ---------------|--------------|-----------|
| Stable | [![Build Status](https://jenkins.mremoteng.org/buildStatus/icon?job=mRemoteNG/mRemoteNG/master)](https://jenkins.mremoteng.org/job/mRemoteNG/job/mRemoteNG/job/master/) | [![Github Releases (by Release)](https://img.shields.io/github/downloads/mRemoteNG/mRemoteNG/v1.74/total.svg)](https://github.com/mRemoteNG/mRemoteNG/releases/tag/v1.74) |
| Beta | [![Build Status](https://jenkins.mremoteng.org/buildStatus/icon?job=mRemoteNG/mRemoteNG/beta_channel)](https://jenkins.mremoteng.org/job/mRemoteNG/job/mRemoteNG/job/beta_channel/) | [![Github Releases (by Release)](https://img.shields.io/github/downloads/mRemoteNG/mRemoteNG/v1.75Beta3/total.svg)](https://github.com/mRemoteNG/mRemoteNG/releases/tag/v1.75Beta3) |
| Development | [![Build Status](https://jenkins.mremoteng.org/buildStatus/icon?job=mRemoteNG/mRemoteNG/develop)](https://jenkins.mremoteng.org/job/mRemoteNG/job/mRemoteNG/job/develop/) | - |
| Stable | [![Build status](https://ci.appveyor.com/api/projects/status/k0sdbxmq90fgdmj6/branch/master?svg=true)](https://ci.appveyor.com/project/mremoteng/mremoteng/branch/master) | [![Github Releases (by Release)](https://img.shields.io/github/downloads/mRemoteNG/mRemoteNG/v1.75.7012/total.svg)](https://github.com/mRemoteNG/mRemoteNG/releases/tag/v1.75.7012) |
| Beta | | [![Github Releases (by Release)](https://img.shields.io/github/downloads/mRemoteNG/mRemoteNG/v1.75.7012/total.svg)](https://github.com/mRemoteNG/mRemoteNG/releases/tag/v1.75.7012) |
| Development | [![Build status](https://ci.appveyor.com/api/projects/status/k0sdbxmq90fgdmj6/branch/develop?svg=true)](https://ci.appveyor.com/project/mremoteng/mremoteng/branch/develop) | [![Github Releases (by Release)](https://img.shields.io/github/downloads/mRemoteNG/mRemoteNG/v1.76Alpha5/total.svg)](https://github.com/mRemoteNG/mRemoteNG/releases/tag/v1.76Alpha5) |
mRemoteNG is the next generation of mRemote, a full-featured, multi-tab remote connections manager.
It allows you to store all your remote connections in a simple yet powerful interface.
## Features
Currently these protocols are supported:
mRemoteNG is a fork of mRemote: an open source, tabbed, multi-protocol, remote connections manager. mRemoteNG adds bug fixes and new features to mRemote.
* RDP (Remote Desktop)
* VNC (Virtual Network Computing)
* ICA (Independent Computing Architecture)
* SSH (Secure Shell)
* Telnet (TELecommunication NETwork)
* HTTP/S (Hypertext Transfer Protocol)
* Rlogin (Rlogin)
* RAW
It allows you to view all of your remote connections in a simple yet powerful tabbed interface.
mRemoteNG can be installed on Windows 7 or later.
mRemoteNG supports the following protocols:
Windows 7 systems require RDP version 8:
https://support.microsoft.com/en-us/kb/2592687
OR
https://support.microsoft.com/en-us/kb/2923545
* RDP (Remote Desktop/Terminal Server)
* VNC (Virtual Network Computing)
* ICA (Citrix Independent Computing Architecture)
* SSH (Secure Shell)
* Telnet (TELecommunication NETwork)
* HTTP/HTTPS (Hypertext Transfer Protocol)
* rlogin (Remote Login)
* Raw Socket Connections
Windows 8+ support RDP version 8+ out of the box.
For a detailed feature list and general usage support, refer to the [User Manual](https://github.com/mRemoteNG/mRemoteNG/wiki/User-Manual).
RDP versions are backwards compatible, so an mRemoteNG client running on Windows 10 can connect successfully to a Windows 2003 host (for example).
## Installation
Before installing make sure you have all the required [prerequisites](https://github.com/mRemoteNG/mRemoteNG/wiki/Prerequisites).
mRemoteNG is available as a redistributable msi package, and can be downloaded from the following locations:
* [GitHub](https://github.com/mRemoteNG/mRemoteNG/releases)
* [Project Website](https://mremoteng.org/download)
mRemoteNG is supported on Windows 7 or later.
Windows 7 and Windows Server 2008 installations must ensure the [listed required updates](https://github.com/mRemoteNG/mRemoteNG/wiki/Prerequisites#full-list-of-required-windows-updates-for-windows-7--server-2008-clients) are installed and active.
## Contribute
If you find mRemoteNG useful and would like to contribute, it would be greatly appreciated. When you contribute, you make it possible for the team to cover the costs of producing mRemoteNG.
### Submit Code
Check out the [Wiki page](https://github.com/mRemoteNG/mRemoteNG/wiki/Development) on how to configure your development environment and submit a pull request.
### Translate
Check out the [Wiki page](https://github.com/mRemoteNG/mRemoteNG/wiki/How%20to%20Help%20Translating%20mRemoteNG) on how to help make mRemoteNG a polygot
[![Developed with ReSharper](https://raw.githubusercontent.com/mRemoteNG/mRemoteNG/develop/.github/icon_ReSharper.png)](https://www.jetbrains.com/resharper/)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -3,7 +3,7 @@
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (C) 1999-2016 Igor Pavlov.
Copyright (C) 1999-2018 Igor Pavlov.
7-Zip Extra files are under the GNU LGPL license.

View File

@@ -1,6 +1,25 @@
7-Zip Extra history
-------------------
This file contains only information about changes related to that package exclusively.
The full history of changes is listed in history.txt in main 7-Zip program.
18.05 2018-04-30
-------------------------
- The speed for LZMA/LZMA2 compressing was increased
by 8% for fastest/fast compression levels and
by 3% for normal/maximum compression levels.
18.03 beta 2018-03-04
-------------------------
- The speed for single-thread LZMA/LZMA2 decoding
was increased by 30% in x64 version and by 3% in x86 version.
- 7-Zip now can use multi-threading for 7z/LZMA2 decoding,
if there are multiple independent data chunks in LZMA2 stream.
9.35 beta 2014-12-07
------------------------------
- SFX modules were moved to LZMA SDK package.

View File

@@ -1,9 +1,9 @@
7-Zip Extra 16.02
7-Zip Extra 18.05
-----------------
7-Zip Extra is package of extra modules of 7-Zip.
7-Zip Copyright (C) 1999-2016 Igor Pavlov.
7-Zip Copyright (C) 1999-2018 Igor Pavlov.
7-Zip is free software. Read License.txt for more information about license.

View File

@@ -0,0 +1,114 @@
#####################################
# Author: David Sparer
# Summary:
# This is intended to be a template for creating connections in bulk. This uses the serializers directly from the mRemoteNG binaries.
# You will still need to create the connection info objects, but the library will handle serialization. It is expected that you
# are familiar with PowerShell. If this is not the case, reach out to the mRemoteNG community for help.
# Usage:
# Replace or modify the examples that are shown toward the end of the script to create your own connection info objects.
#####################################
$EncryptionKey = (Get-Credential -Message "Enter the encryption key you would like to use. This must match the encryption key used by the rest of the confCons file." -UserName "DontNeedUsername").Password
$PathToMrngFolder = ""
if ($PathToMrngFolder -eq "") {
Write-Error -Message 'You must set the $PathToMrngFolder variable in this script to the folder which contains mRemoteNG.exe'
}
$assembly = [System.Reflection.Assembly]::LoadFile((Join-Path -Path $PathToMrngFolder -ChildPath "mRemoteNG.exe"))
$assembly = [System.Reflection.Assembly]::LoadFile((Join-Path -Path $PathToMrngFolder -ChildPath "BouncyCastle.Crypto.dll"))
function New-mRemoteNGXmlSerializer {
[CmdletBinding()]
param (
[SecureString]
$EncryptionKey
)
PROCESS {
$cryptoProvider = New-Object -TypeName mRemoteNG.Security.SymmetricEncryption.AeadCryptographyProvider
$saveFilter = New-Object -TypeName mRemoteNG.Security.SaveFilter -ArgumentList @($false)
$xmlSerializer = New-Object -TypeName mRemoteNG.Config.Serializers.XmlConnectionNodeSerializer -ArgumentList @($cryptoProvider, $encryptionKey, $saveFilter)
Write-Output $xmlSerializer
}
}
function New-mRemoteNGConnectionInfo {
[CmdletBinding()]
param ()
PROCESS {
$connectionInfo = New-Object -TypeName mRemoteNG.Connection.ConnectionInfo
Write-Output $connectionInfo
}
}
function New-mRemoteNGContainerInfo {
[CmdletBinding()]
param ()
PROCESS {
$connectionInfo = New-Object -TypeName mRemoteNG.Container.ContainerInfo
Write-Output $connectionInfo
}
}
# Setup the services needed to do serialization
$xmlSerializer = New-mRemoteNGXmlSerializer -EncryptionKey $EncryptionKey
#----------------------------------------------------------------
# Example 1: serialize many connections, no containers
# Here you can define the number of connection info objects to create
# You can also provide a list of desired hostnames and iterate over those
$xml = ""
foreach($i in 1..5)
{
$connectionInfo = New-mRemoteNGConnectionInfo
# Set connection info properties
$connectionInfo.Name = "server-$i"
$connectionInfo.Hostname = "some-win-server-$i"
$connectionInfo.Protocol = [mRemoteNG.Connection.Protocol.ProtocolType]::RDP
$connectionInfo.Inheritance.Username = $true
$connectionInfo.Inheritance.Domain = $true
$connectionInfo.Inheritance.Password = $true
$serializedConnection = $xmlSerializer.SerializeConnectionInfo($connectionInfo).ToString()
$xml += $serializedConnection + [System.Environment]::NewLine
}
Write-Output $xml
#----------------------------------------------------------------
# Example 2: serialize a container which has connections
# You can also create containers and add connections to them, which will be nested correctly when serialized
$xml = ""
$container = New-mRemoteNGContainerInfo
$container.Name = "ProductionServers"
$serializedContainer = $xmlSerializer.SerializeConnectionInfo($container)
foreach($i in 1..3)
{
$connectionInfo = New-mRemoteNGConnectionInfo
# Set connection info properties
$connectionInfo.Name = "server-$i"
$connectionInfo.Hostname = "some-linux-server-$i"
$connectionInfo.Protocol = [mRemoteNG.Connection.Protocol.ProtocolType]::SSH2
$connectionInfo.Inheritance.Username = $true
$connectionInfo.Inheritance.Domain = $true
$connectionInfo.Inheritance.Password = $true
# serialize the connection
$serializedConnection = $xmlSerializer.SerializeConnectionInfo($connectionInfo)
# add the connection to the container
$serializedContainer.Add($serializedConnection)
}
# Call ToString() on the top-level container to get the XML of it and all its children
Write-Output $serializedContainer.ToString()

View File

@@ -5,7 +5,7 @@ setlocal enabledelayedexpansion
set SOLUTIONDIR=%~dp0..
rem Windows Sysinternals Sigcheck from http://technet.microsoft.com/en-us/sysinternals/bb897441
set SIGCHECK="%SOLUTIONDIR%\Tools\sigcheck.exe"
set SIGCHECK="%SOLUTIONDIR%\Tools\exes\sigcheck.exe"
set SEVENZIP="%SOLUTIONDIR%\Tools\7zip\7za.exe"
set VCVARSALL="%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"

15
Tools/copy_puttyng.ps1 Normal file
View File

@@ -0,0 +1,15 @@
param (
[string]
[Parameter(Mandatory=$true)]
$SolutionDir,
[string]
[Parameter(Mandatory=$true)]
$TargetDir
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
Write-Output "Copying PUTTYNG to correct directory"
Copy-Item -Path (Join-Path -Path $SolutionDir -ChildPath "mRemoteV1\Resources\PuTTYNG.exe") -Destination $TargetDir -Force
Write-Output ""

View File

@@ -1,16 +1,23 @@
$sourcePath = $args[0]
$destinationDir = $args[1]
param (
[string]
$SourcePath,
Write-Host $sourcePath
Write-Host $destinationDir
[string]
$DestinationDir
)
if (!(Test-Path -Path $destinationDir))
Write-Host $SourcePath
Write-Host $DestinationDir
if (!(Test-Path -Path $DestinationDir))
{
New-Item -Path $destinationDir -ItemType "directory"
New-Item -Path $DestinationDir -ItemType "directory"
}
$sourceFiles = Get-ChildItem -Path $sourcePath -Recurse | ?{$_.Extension -match "exe|msi"}
$sourceFiles = Get-ChildItem -Path $SourcePath -Recurse | ?{$_.Extension -match "exe|msi"}
foreach ($item in $sourceFiles)
{
Copy-Item -Path $item.FullName -Destination $destinationDir -Force
$item.Name
(Get-FileHash -Path $item.fullName -Algorithm SHA512).Hash
Copy-Item -Path $item.FullName -Destination $DestinationDir -Force
}

19
Tools/copy_themes.ps1 Normal file
View File

@@ -0,0 +1,19 @@
param (
[string]
[Parameter(Mandatory=$true)]
$SolutionDir,
[string]
[Parameter(Mandatory=$true)]
$TargetDir
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
Write-Output "Copying THEMES folder to output"
$sourceFiles = [io.path]::combine($SolutionDir , 'mRemoteV1\Resources\Themes' )
$DestinationDir = [io.path]::combine($TargetDir , 'Themes')
robocopy $sourceFiles $DestinationDir *.vstheme /s
Write-Output ""

View File

@@ -1,42 +1,109 @@
#Requires -Version 4.0
param (
[string]
[Parameter(Mandatory=$true)]
$TagName,
[string]
[Parameter(Mandatory=$true)]
[ValidateSet("Stable","Beta","Development")]
$UpdateChannel
)
function New-MsiUpdateFileContent {
param (
[System.IO.FileInfo]
[Parameter(Mandatory=$true)]
$MsiFile,
[string]
[Parameter(Mandatory=$true)]
$TagName
)
$version = $MsiFile.BaseName -replace "[a-zA-Z-]*"
$certThumbprint = (Get-AuthenticodeSignature -FilePath $MsiFile).SignerCertificate.Thumbprint
$hash = Get-FileHash -Algorithm SHA512 $MsiFile | % { $_.Hash }
$fileContents = `
"Version: $version
dURL: https://github.com/mRemoteNG/mRemoteNG/releases/download/$TagName/$($MsiFile.Name)
clURL: https://raw.githubusercontent.com/mRemoteNG/mRemoteNG/$TagName/CHANGELOG.TXT
CertificateThumbprint: $certThumbprint
Checksum: $hash"
Write-Output $fileContents
}
function New-ZipUpdateFileContent {
param (
[System.IO.FileInfo]
[Parameter(Mandatory=$true)]
$ZipFile,
[string]
[Parameter(Mandatory=$true)]
$TagName
)
$version = $ZipFile.BaseName -replace "[a-zA-Z-]*"
$hash = Get-FileHash -Algorithm SHA512 $ZipFile | % { $_.Hash }
$fileContents = `
"Version: $version
dURL: https://github.com/mRemoteNG/mRemoteNG/releases/download/$TagName/$($ZipFile.Name)
clURL: https://raw.githubusercontent.com/mRemoteNG/mRemoteNG/$TagName/CHANGELOG.TXT
Checksum: $hash"
Write-Output $fileContents
}
function Resolve-UpdateCheckFileName {
param (
[string]
[Parameter(Mandatory=$true)]
[ValidateSet("Stable","Beta","Development")]
$UpdateChannel,
[string]
[Parameter(Mandatory=$true)]
[ValidateSet("Normal","Portable")]
$Type
)
$fileName = ""
if ($UpdateChannel -eq "Beta") { $fileName += "beta-" }
elseif ($UpdateChannel -eq "Development") { $fileName += "dev-" }
$fileName += "update"
if ($Type -eq "Portable") { $fileName += "-portable" }
$fileName += ".txt"
Write-Output $fileName
}
$releaseFolder = Join-Path -Path $PSScriptRoot -ChildPath "..\Release" -Resolve
$tag = Read-Host -Prompt 'Tag name'
Write-Host
Write-Host
Write-Host
# build msi update file
$msiFile = Get-ChildItem -Path "$releaseFolder\*.msi" | sort LastWriteTime | select -last 1
$msiUpdateContents = New-MsiUpdateFileContent -MsiFile $msiFile -TagName $TagName
$msiUpdateFileName = Resolve-UpdateCheckFileName -UpdateChannel $UpdateChannel -Type Normal
Write-Output "`n`nMSI Update Check File Contents ($msiUpdateFileName)`n------------------------------"
Tee-Object -InputObject $msiUpdateContents -FilePath "$releaseFolder\$msiUpdateFileName"
Write-Host PORTABLE
Write-Host --------
$file = Get-ChildItem -Path "$releaseFolder\*.zip" | sort LastWriteTime | select -last 1 | % { $_.FullName }
$filename = $file.Split("\") | select -last 1
$version = $file.tostring().Split("-")[2].trim(".zip")
Write-Host Version: $version
Write-Host dURL: https://github.com/mRemoteNG/mRemoteNG/releases/download/$tag/$filename
Write-Host clURL: https://raw.githubusercontent.com/mRemoteNG/mRemoteNG/$tag/CHANGELOG.TXT
$hash = Get-FileHash -Algorithm SHA512 $file | % { $_.Hash }
Write-Host Checksum: $hash
Write-Host
Write-Host
Write-Host
Write-Host MSI
Write-Host ---
$file = Get-ChildItem -Path "$releaseFolder\*.msi" | sort LastWriteTime | select -last 1 | % { $_.FullName }
$filename = $file.Split("\") | select -last 1
$version = $file.tostring().Split("-")[2].trim(".msi")
Write-Host Version: $version
Write-Host dURL: https://github.com/mRemoteNG/mRemoteNG/releases/download/$tag/$filename
Write-Host clURL: https://raw.githubusercontent.com/mRemoteNG/mRemoteNG/$tag/CHANGELOG.TXT
Write-Host CertificateThumbprint: 0CEA828E5C787EA8AA89268D83816C1EA03375BA
$hash = Get-FileHash -Algorithm SHA512 $file | % { $_.Hash }
Write-Host Checksum: $hash
# build zip update file
$zipFile = Get-ChildItem -Path "$releaseFolder\*.zip" | sort LastWriteTime | select -last 1
$zipUpdateContents = New-ZipUpdateFileContent -ZipFile $zipFile -TagName $TagName
$zipUpdateFileName = Resolve-UpdateCheckFileName -UpdateChannel $UpdateChannel -Type Portable
Write-Output "`n`nZip Update Check File Contents ($zipUpdateFileName)`n------------------------------"
Tee-Object -InputObject $zipUpdateContents -FilePath "$releaseFolder\$zipUpdateFileName"

BIN
Tools/exes/dumpbin.exe Normal file

Binary file not shown.

BIN
Tools/exes/editbin.exe Normal file

Binary file not shown.

BIN
Tools/exes/link.exe Normal file

Binary file not shown.

BIN
Tools/exes/mspdbcore.dll Normal file

Binary file not shown.

61
Tools/find_vstool.ps1 Normal file
View File

@@ -0,0 +1,61 @@
[CmdletBinding()]
param (
[string]
# Name of the file to find
$FileName
)
function EditBinCertificateIsValid() {
param (
[string]
$Path
)
# Verify file certificate
$valid_microsoft_cert_thumbprints = @(
"3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC",
"98ED99A67886D020C564923B7DF25E9AC019DF26",
"108E2BA23632620C427C570B6D9DB51AC31387FE",
"5EAD300DC7E4D637948ECB0ED829A072BD152E17"
)
$file_signature = Get-AuthenticodeSignature -FilePath $Path
if (($file_signature.Status -ne "Valid") -or ($valid_microsoft_cert_thumbprints -notcontains $file_signature.SignerCertificate.Thumbprint)) {
Write-Warning "Could not validate the signature of $Path"
return $false
} else {
return $true
}
}
function ToolCanBeExecuted {
param (
[string]
$Path
)
$null = & $Path
Write-Output ($LASTEXITCODE -gt 0)
}
$rootSearchPaths = @(
[System.IO.Directory]::EnumerateFileSystemEntries("C:\Program Files", "*Visual Studio*", [System.IO.SearchOption]::TopDirectoryOnly),
[System.IO.Directory]::EnumerateFileSystemEntries("C:\Program Files (x86)", "*Visual Studio*", [System.IO.SearchOption]::TopDirectoryOnly)
)
# Returns the first full path to the $FileName that our search can find
foreach ($searchPath in $rootSearchPaths) {
foreach ($visualStudioFolder in $searchPath) {
Write-Verbose "Searching in folder '$visualStudioFolder'"
$matchingExes = [System.IO.Directory]::EnumerateFileSystemEntries($visualStudioFolder, $FileName, [System.IO.SearchOption]::AllDirectories)
foreach ($matchingExe in $matchingExes) {
if ((EditBinCertificateIsValid -Path $matchingExe) -and (ToolCanBeExecuted -Path $matchingExe)) {
return $matchingExe
}
}
}
}
Write-Error "Could not find any valid file by the name $FileName." -ErrorAction Stop

235
Tools/github_functions.ps1 Normal file
View File

@@ -0,0 +1,235 @@
$githubUrl = 'https://api.github.com'
# GitHub doesn't support the default powershell protocol (TLS 1.0)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
function Publish-GitHubRelease {
param (
[string]
[Parameter(Mandatory=$true)]
#
$Owner,
[string]
[Parameter(Mandatory=$true)]
#
$Repository,
[string]
[Parameter(Mandatory=$true)]
#
$ReleaseTitle,
[string]
[Parameter(Mandatory=$true)]
#
$TagName,
[string]
[Parameter(Mandatory=$true)]
# Either the SHA of the commit to target or the branch name.
$TargetCommitish,
[string]
[Parameter(Mandatory=$true)]
#
$Description,
[bool]
[Parameter(Mandatory=$true)]
#
$IsDraft,
[bool]
[Parameter(Mandatory=$true)]
#
$IsPrerelease,
[string]
[Parameter(Mandatory=$true)]
# The OAuth2 token to use for authentication.
$AuthToken
)
$body = New-GitHubReleaseRequestBody -TagName $TagName -TargetCommitish $TargetCommitish -ReleaseTitle $ReleaseTitle -Description $Description -IsDraft $IsDraft -IsPrerelease $IsPrerelease
$req_publishRelease = Invoke-WebRequest -Uri "$githubUrl/repos/$Owner/$Repository/releases" -Method Post -Headers @{"Authorization"="token $AuthToken"} -Body $body -ErrorAction Stop
$response_publishRelease = ConvertFrom-Json -InputObject $req_publishRelease.Content
Write-Output $response_publishRelease
}
function Edit-GitHubRelease {
param (
[string]
#[Parameter(Mandatory=$true)]
#
$Owner,
[string]
#[Parameter(Mandatory=$true)]
#
$Repository,
[string]
#[Parameter(Mandatory=$true)]
#
$ReleaseId,
[string]
#
$ReleaseTitle,
[string]
#
$TagName,
[string]
# Either the SHA of the commit to target or the branch name.
$TargetCommitish,
[string]
#
$Description,
[bool]
#
$IsDraft,
[bool]
#
$IsPrerelease,
[string]
#[Parameter(Mandatory=$true)]
# The OAuth2 token to use for authentication.
$AuthToken
)
$body_params = @{
"TagName" = $TagName
"TargetCommitish" = $TargetCommitish
"ReleaseTitle" = $ReleaseTitle
"Description" = $Description
}
if ($PSBoundParameters.ContainsKey("IsDraft")) { $body_params.Add("IsDraft", $IsDraft) }
if ($PSBoundParameters.ContainsKey("IsPrerelease")) { $body_params.Add("IsPrerelease", $IsPrerelease) }
$body = New-GitHubReleaseRequestBody @body_params
$req_editRelease = Invoke-WebRequest -Uri "$githubUrl/repos/$Owner/$Repository/releases/$ReleaseId" -Method Post -Headers @{"Authorization"="token $AuthToken"} -Body $body -ErrorAction Stop
$response_editRelease = ConvertFrom-Json -InputObject $req_editRelease.Content
Write-Output $response_editRelease
}
function Get-GitHubRelease {
param (
[string]
[Parameter(Mandatory=$true)]
#
$Owner,
[string]
[Parameter(Mandatory=$true)]
#
$Repository,
[string]
[Parameter(Mandatory=$true)]
#
$ReleaseId,
[string]
[Parameter(Mandatory=$true)]
# The OAuth2 token to use for authentication.
$AuthToken
)
$req_getRelease = Invoke-WebRequest -Uri "$githubUrl/repos/$Owner/$Repository/releases/$ReleaseId" -Method Get -Headers @{"Authorization"="token $AuthToken"} -ErrorAction Stop
$response_getRelease = ConvertFrom-Json -InputObject $req_getRelease.Content
Write-Output $response_getRelease
}
function Upload-GitHubReleaseAsset {
param (
[string]
[Parameter(Mandatory=$true)]
$UploadUri,
[string]
[Parameter(Mandatory=$true)]
# Path to the file to upload with the release
$FilePath,
[string]
[Parameter(Mandatory=$true)]
# Content type of the file
$ContentType,
[string]
[Parameter(Mandatory=$true)]
# The OAuth2 token to use for authentication.
$AuthToken,
[string]
# A short description label for the asset
$Label = ""
)
$UploadUri = $UploadUri -replace "(\{[\w,\?]*\})$"
$files = Get-Item -Path $FilePath
$labelParam = ""
if ($Label -ne "") {
$labelParam = "&label=$Label"
}
# Get-Item could produce an array of files if a wildcard is provided. (C:\*.txt)
# Upload each matching item individually
foreach ($file in $files) {
Write-Output "Uploading asset to GitHub release: '$($file.FullName)'"
$req_uploadZipAsset = Invoke-WebRequest -Uri "$($UploadUri)?name=$($file.Name)$labelParam" -Method Post -Headers @{"Authorization"="token $AuthToken"} -ContentType $ContentType -InFile $file.FullName -ErrorAction Stop
}
}
function New-GitHubReleaseRequestBody {
param (
[string]
#
$TagName,
[string]
# Either the SHA of the commit to target or the branch name.
$TargetCommitish,
[string]
# Title of the release
$ReleaseTitle,
[string]
# Description of the release
$Description,
[bool]
# Is this a draft?
$IsDraft,
[bool]
# Is this a pre-release?
$IsPrerelease
)
$body_params = [ordered]@{}
if ($TagName -ne "") { $body_params.Add("tag_name", $TagName) }
if ($TargetCommitish -ne "") { $body_params.Add("target_commitish", $TargetCommitish) }
if ($ReleaseTitle -ne "") { $body_params.Add("name", $ReleaseTitle) }
if ($Description -ne "") { $body_params.Add("body", $Description) }
if ($PSBoundParameters.ContainsKey("IsDraft")) { $body_params.Add("draft", $IsDraft) }
if ($PSBoundParameters.ContainsKey("IsPrerelease")) { $body_params.Add("prerelease", $IsPrerelease) }
$json_body = ConvertTo-Json -InputObject $body_params -Compress
Write-Output $json_body
}

23
Tools/move_help_files.ps1 Normal file
View File

@@ -0,0 +1,23 @@
param (
[string]
[Parameter(Mandatory=$true)]
$TargetDir
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
$path_HelpFilesDir = Join-Path -Path $TargetDir -ChildPath "Help"
Write-Output "Moving Help files to correct directory"
# Remove stale Help files, if they exist
if (Test-Path -Path $path_HelpFilesDir) {
Remove-Item -Path $path_HelpFilesDir -Recurse -Force
}
# Move Help files
Move-Item -Path (Join-Path -Path $TargetDir -ChildPath "Resources\Help") -Destination $path_HelpFilesDir -Force
Start-Sleep -Seconds 2
Remove-Item -Path (Join-Path -Path $TargetDir -ChildPath "Resources") -Recurse -Force
Write-Output ""

View File

@@ -0,0 +1,43 @@
param (
[string]
[Parameter(Mandatory=$true)]
$SolutionDir,
[string]
[Parameter(Mandatory=$true)]
$TargetDir,
[string]
[Parameter(Mandatory=$true)]
$TargetFileName,
[string]
[Parameter(Mandatory=$true)]
$ConfigurationName,
[string]
$CertificatePath,
[string]
$CertificatePassword,
[string[]]
$ExcludeFromSigning
)
Write-Output "+=================================================================+"
Write-Output "| Beginning mRemoteNG Installer Post Build |"
Write-Output "+=================================================================+"
Format-Table -AutoSize -Wrap -InputObject @{
"SolutionDir" = $SolutionDir
"TargetDir" = $TargetDir
"TargetFileName" = $TargetFileName
"ConfigurationName" = $ConfigurationName
"ExcludeFromSigning" = $ExcludeFromSigning
}
& "$PSScriptRoot\sign_binaries.ps1" -TargetDir $TargetDir -CertificatePath $CertificatePath -CertificatePassword $CertificatePassword -ConfigurationName $ConfigurationName -Exclude $ExcludeFromSigning
& "$PSScriptRoot\verify_binary_signatures.ps1" -TargetDir $TargetDir -ConfigurationName $ConfigurationName -CertificatePath $CertificatePath
& "$PSScriptRoot\rename_installer_with_version.ps1" -SolutionDir $SolutionDir
& "$PSScriptRoot\copy_release_installer.ps1" -SourcePath $TargetDir -DestinationDir (Join-Path -Path $SolutionDir -ChildPath "Release")

View File

@@ -0,0 +1,50 @@
param (
[string]
[Parameter(Mandatory=$true)]
$SolutionDir,
[string]
[Parameter(Mandatory=$true)]
$TargetDir,
[string]
[Parameter(Mandatory=$true)]
$TargetFileName,
[string]
[Parameter(Mandatory=$true)]
$ConfigurationName,
[string]
$CertificatePath,
[string]
$CertificatePassword,
[string[]]
$ExcludeFromSigning
)
Write-Output "+=================================================================+"
Write-Output "| Beginning mRemoteV1 Post Build |"
Write-Output "+=================================================================+"
Format-Table -AutoSize -Wrap -InputObject @{
"SolutionDir" = $SolutionDir
"TargetDir" = $TargetDir
"TargetFileName" = $TargetFileName
"ConfigurationName" = $ConfigurationName
"ExcludeFromSigning" = $ExcludeFromSigning
}
& "$PSScriptRoot\copy_puttyng.ps1" -SolutionDir $SolutionDir -TargetDir $TargetDir
& "$PSScriptRoot\copy_themes.ps1" -SolutionDir $SolutionDir -TargetDir $TargetDir
& "$PSScriptRoot\move_help_files.ps1" -TargetDir $TargetDir
& "$PSScriptRoot\set_LargeAddressAware.ps1" -TargetDir $TargetDir -TargetFileName $TargetFileName
& "$PSScriptRoot\verify_LargeAddressAware.ps1" -TargetDir $TargetDir -TargetFileName $TargetFileName
& "$PSScriptRoot\tidy_files_for_release.ps1" -TargetDir $TargetDir -ConfigurationName $ConfigurationName
& "$PSScriptRoot\sign_binaries.ps1" -TargetDir $TargetDir -CertificatePath $CertificatePath -CertificatePassword $CertificatePassword -ConfigurationName $ConfigurationName -Exclude $ExcludeFromSigning
& "$PSScriptRoot\verify_binary_signatures.ps1" -TargetDir $TargetDir -ConfigurationName $ConfigurationName -CertificatePath $CertificatePath
& "$PSScriptRoot\zip_symbols.ps1" -SolutionDir $SolutionDir -TargetDir $TargetDir -ConfigurationName $ConfigurationName
& "$PSScriptRoot\zip_portable_files.ps1" -SolutionDir $SolutionDir -TargetDir $TargetDir -ConfigurationName $ConfigurationName

View File

@@ -0,0 +1,25 @@
param (
[string]
[Parameter(Mandatory=$true)]
#
$Owner,
[string]
[Parameter(Mandatory=$true)]
#
$Repository,
[string]
[Parameter(Mandatory=$true)]
#
$ReleaseId,
[string]
[Parameter(Mandatory=$true)]
# The OAuth2 token to use for authentication.
$AuthToken
)
. "$PSScriptRoot\github_functions.ps1"
Edit-GitHubRelease -Owner $Owner -Repository $Repository -ReleaseId $ReleaseId -AuthToken $AuthToken -IsDraft $false

View File

@@ -0,0 +1,81 @@
param (
[string]
[Parameter(Mandatory=$true)]
#
$Owner,
[string]
[Parameter(Mandatory=$true)]
#
$Repository,
[string]
[Parameter(Mandatory=$true)]
#
$ReleaseTitle,
[string]
[Parameter(Mandatory=$true)]
#
$TagName,
[string]
[Parameter(Mandatory=$true)]
# Either the SHA of the commit to target or the branch name.
$TargetCommitish,
[string]
[Parameter(Mandatory=$true)]
#
$Description,
[string]
[Parameter(Mandatory=$true)]
[ValidateSet("true","false")]
# true/false
$IsDraft,
[string]
[Parameter(Mandatory=$true)]
[ValidateSet("true","false")]
# true/false
$IsPrerelease,
[string]
[Parameter(Mandatory=$true)]
# Path to the folder which contains release assets to upload
$ReleaseFolderPath,
[string]
[Parameter(Mandatory=$true)]
# The OAuth2 token to use for authentication.
$AuthToken,
[switch]
# Enable this switch to treat $Description as a Base64 encoded string. It will be decoded before being used elsewhere in the script.
$DescriptionIsBase64Encoded
)
if ($DescriptionIsBase64Encoded) {
$Description = ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Description)))
}
. "$PSScriptRoot\github_functions.ps1"
$releaseFolderItems = Get-ChildItem -Path $ReleaseFolderPath
$mrngPortablePath = ($releaseFolderItems | ?{$_.Name -match "portable-[\d\.]+\.zip"}).FullName
$mrngNormalPath = ($releaseFolderItems | ?{$_.Name -match "installer-[\d\.]+\.msi"}).FullName
$mrngPortableSymbolsPath = ($releaseFolderItems | ?{$_.Name -match "mremoteng-portable-symbols-[\d\.]+\.zip"}).FullName
$mrngNormalSymbolsPath = ($releaseFolderItems | ?{$_.Name -match "mremoteng-symbols-[\d\.]+\.zip"}).FullName
$release = Publish-GitHubRelease -Owner $Owner -Repository $Repository -ReleaseTitle $ReleaseTitle -TagName $TagName -TargetCommitish $TargetCommitish -Description $Description -IsDraft ([bool]::Parse($IsDraft)) -IsPrerelease ([bool]::Parse($IsPrerelease)) -AuthToken $AuthToken
$zipUpload = Upload-GitHubReleaseAsset -UploadUri $release.upload_url -FilePath $mrngPortablePath -ContentType "application/zip" -AuthToken $AuthToken -Label "Portable Edition (zip)"
$msiUpload = Upload-GitHubReleaseAsset -UploadUri $release.upload_url -FilePath $mrngNormalPath -ContentType "application/octet-stream" -AuthToken $AuthToken -Label "Normal Edition (msi)"
$portableEditionSymbols = Upload-GitHubReleaseAsset -UploadUri $release.upload_url -FilePath $mrngPortableSymbolsPath -ContentType "application/zip" -AuthToken $AuthToken -Label "Portable Edition Debug Symbols"
$normalEditionSymbols = Upload-GitHubReleaseAsset -UploadUri $release.upload_url -FilePath $mrngNormalSymbolsPath -ContentType "application/zip" -AuthToken $AuthToken -Label "Normal Edition Debug Symbols"
Write-Output (Get-GitHubRelease -Owner $Owner -Repository $Repository -ReleaseId $release.id -AuthToken $AuthToken)

View File

@@ -1,11 +1,15 @@
$solutionDir = $args[0]
$renameTarget = $solutionDir + "InstallerProjects\Installer\bin\Release\en-US\mRemoteNG-Installer.msi"
param (
[string]
$SolutionDir
)
Write-Host $solutionDir
$renameTarget = $SolutionDir + "InstallerProjects\Installer\bin\Release\en-US\mRemoteNG-Installer.msi"
Write-Host $SolutionDir
Write-Host $renameTarget
$targetVersionedFile = "$solutionDir\mRemoteV1\bin\Release\mRemoteNG.exe"
$version = &"$solutionDir\Tools\sigcheck.exe" /accepteula -q -n $targetVersionedFile
$targetVersionedFile = "$SolutionDir\mRemoteV1\bin\Release\mRemoteNG.exe"
$version = &"$SolutionDir\Tools\exes\sigcheck.exe" /accepteula -q -n $targetVersionedFile
$renameTargetFileObject = Get-Item -Path $renameTarget -ErrorAction SilentlyContinue

View File

@@ -0,0 +1,22 @@
[CmdletBinding()]
param (
[string]
[Parameter(Mandatory=$true)]
$TargetDir,
[string]
[Parameter(Mandatory=$true)]
$TargetFileName
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
$path_editBin = Join-Path -Path $PSScriptRoot -ChildPath "exes\editbin.exe"
$path_outputExe = Join-Path -Path $TargetDir -ChildPath $TargetFileName
# Set LargeAddressAware
Write-Output "Setting LargeAddressAware on binary file:`n`"$path_outputExe`" `nwith:`n`"$path_editBin`""
& "$path_editBin" /largeaddressaware "$path_outputExe"
Write-Output ""

76
Tools/sign_binaries.ps1 Normal file
View File

@@ -0,0 +1,76 @@
param (
[string]
[Parameter(Mandatory=$true)]
$TargetDir,
[string]
[Parameter(Mandatory=$true)]
$ConfigurationName,
[string[]]
# File names to exclude from signing
$Exclude,
[string]
# The code signing certificate to use when signing the files.
$CertificatePath,
[string]
# Password to unlock the code signing certificate.
$CertificatePassword
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
$timeserver = "http://timestamp.verisign.com/scripts/timstamp.dll"
if ($ConfigurationName -notmatch "Release") {
Write-Output "This is not a release build - we won't sign files."
return
}
if ($CertificatePath -eq "" -or !(Test-Path -Path $CertificatePath -PathType Leaf)) {
Write-Output "Certificate is not present - we won't sign files."
return
}
if ($CertificatePassword -eq "") {
Write-Output "No certificate password was provided - we won't sign files."
return
}
try {
$certKeyStore = [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::MachineKeySet
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($CertificatePath, $CertificatePassword, $certKeyStore) -ErrorAction Stop
} catch {
Write-Output "Error loading certificate file - we won't sign files."
Write-Output $Error[0]
return
}
# Sign MSI if we are building a release version and the certificate is available
Write-Output "Signing Binaries"
Write-Output "Getting files from path: $TargetDir"
$signableFiles = Get-ChildItem -Path $TargetDir -Recurse | ?{$_.Extension -match "dll|exe|msi"} | ?{$Exclude -notcontains $_.Name}
$excluded_files = Get-ChildItem -Path $TargetDir -Recurse | ?{$_.Extension -match "dll|exe|msi"} | ?{$Exclude -contains $_.Name}
$excluded_files | ForEach-Object `
-Begin { Write-Output "The following files were excluded from signing due to being on the exclusion list:" } `
-Process { Write-Output "-- $($_.FullName)" }
Write-Output "Signable files count: $($signableFiles.Count)"
foreach ($file in $signableFiles) {
Set-AuthenticodeSignature -Certificate $cert -TimestampServer $timeserver -IncludeChain all -FilePath $file.FullName
}
# Release certificate
if ($cert -ne $null) {
$cert.Dispose()
}
Write-Output ""

View File

@@ -1,13 +1,31 @@
$timeserver = "http://timestamp.verisign.com/scripts/timstamp.dll"
$certPath = "C:\mRemoteNG_code_signing_cert.pfx"
$certPassword = (Get-Credential -Message "Enter the password for the certificate" -UserName "USERNAME NOT NEEDED").Password
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certPath, $certPassword)
$targetPath = $args[0]
param(
[string]
[Parameter(Mandatory=$true)]
# Folder path that contains the files you would like to sign. Recursive.
$PathToSignableFiles,
[string]
# The code signing certificate to use when signing the files.
$CertificatePath = "C:\mRemoteNG_code_signing_cert.pfx",
[SecureString]
# Password to unlock the code signing certificate.
$CertificatePassword = (Get-Credential -Message "Enter password for the mRemoteNG code signing certificate" -UserName "USERNAME NOT NEEDED").Password,
[string[]]
# File names to exclude from signing
$Exclude
)
Write-Output "Getting files from path: $targetPath"
$signableFiles = Get-ChildItem -Path $targetPath -Recurse | ?{$_.Extension -match "dll|exe|msi"}
$timeserver = "http://timestamp.verisign.com/scripts/timstamp.dll"
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($CertificatePath, $CertificatePassword)
Write-Output "Getting files from path: $PathToSignableFiles"
$signableFiles = Get-ChildItem -Path $PathToSignableFiles -Recurse | ?{$_.Extension -match "dll|exe|msi"} | ?{$Exclude -notcontains $_.Name}
Write-Output "Signable files count: $($signableFiles.Count)"
foreach ($file in $signableFiles) {
Set-AuthenticodeSignature -Certificate $cert -TimestampServer $timeserver -IncludeChain all -FilePath $file.FullName
}

View File

@@ -0,0 +1,32 @@
param (
[string]
[Parameter(Mandatory=$true)]
$TargetDir,
[string]
[Parameter(Mandatory=$true)]
$ConfigurationName
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
# Remove unnecessary files from Release versions
if ($ConfigurationName -match "Release") {
Write-Output "Removing unnecessary files from Release versions"
Remove-Item -Path (Join-Path -Path $TargetDir -ChildPath "app.publish") -Recurse -Force
$filesToDelete = Get-ChildItem -Path $TargetDir -Recurse -Include @(
"*.publish",
"*.xml",
"*.backup",
"*.log",
"*vshost*",
"*.tmp"
)
Remove-Item -Path $filesToDelete.FullName
Write-Output $filesToDelete.FullName
}
else {
Write-Output "We will not remove anything - this is not a release build."
}
Write-Output ""

View File

@@ -0,0 +1,17 @@
# $FullPath Full path to the Microsoft executable to validate
param (
[string]
[Parameter(Mandatory=$true)]
$FullPath
)
$validMSCertThumbprints = @("3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC", "108E2BA23632620C427C570B6D9DB51AC31387FE", "98ED99A67886D020C564923B7DF25E9AC019DF26", "5EAD300DC7E4D637948ECB0ED829A072BD152E17")
$exeSignature = Get-AuthenticodeSignature -FilePath $FullPath
$baseErrorMsg = "Could not validate the certificate of $FullPath. "
if ($exeSignature.Status -ne "Valid") {
Write-Error -Message ($baseErrorMsg+"The signature was invalid.") -ErrorAction Stop
}
elseif ($validMSCertThumbprints -notcontains $exeSignature.SignerCertificate.Thumbprint) {
Write-Error -Message ($baseErrorMsg+"The certificate thumbprint ($($exeSignature.SignerCertificate.Thumbprint)) is not trusted.") -ErrorAction Stop
}

View File

@@ -0,0 +1,30 @@
[CmdletBinding()]
param (
[string]
[Parameter(Mandatory=$true)]
$TargetDir,
[string]
[Parameter(Mandatory=$true)]
$TargetFileName
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
$path_dumpBin = Join-Path -Path $PSScriptRoot -ChildPath "exes\dumpbin.exe"
$path_outputExe = Join-Path -Path $TargetDir -ChildPath $TargetFileName
# Dump exe header
$output = & "$path_dumpBin" /NOLOGO /HEADERS "$path_outputExe" | Select-String large
if ($output -eq $null)
{
Write-Warning "Could not validate LargeAddressAware"
}
else
{
Write-Output $output.ToString().TrimStart(" ")
}
Write-Output ""

View File

@@ -0,0 +1,48 @@
param (
[string]
[Parameter(Mandatory=$true)]
$TargetDir,
[string]
[Parameter(Mandatory=$true)]
$ConfigurationName,
[string]
[Parameter(Mandatory=$true)]
# The code signing certificate to use when signing the files.
$CertificatePath
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
# validate release versions and if the certificate is available
if ($ConfigurationName -match "Release") {
if ($CertificatePath -eq "" -or !(Test-Path -Path $CertificatePath -PathType Leaf))
{
Write-Output "Certificate is not present - files likely not signed - we won't verify file signatures."
return
}
Write-Output "Verifying signature of binaries"
Write-Output "Getting files from path: $TargetDir"
$signableFiles = Get-ChildItem -Path $TargetDir -Recurse | ?{$_.Extension -match "dll|exe|msi"}
Write-Output "Signable files count: $($signableFiles.Count)"
$badSignatureFound = $false
foreach ($file in $signableFiles) {
$signature = Get-AuthenticodeSignature -FilePath $file.FullName
if ($signature.Status -ne "Valid") {
Write-Warning "File $($file.FullName) does not have a valid signature."
$badSignatureFound = $true
}
}
if ($badSignatureFound) {
Write-Output "One or more files were improperly signed."
} else {
Write-Output "All files have valid signatures."
}
} else {
Write-Output "This is not a release build - we won't verify file signatures."
}
Write-Output ""

View File

@@ -0,0 +1,66 @@
param (
[string]
[Parameter(Mandatory=$true)]
$SolutionDir,
[string]
[Parameter(Mandatory=$true)]
$TargetDir,
[string]
[Parameter(Mandatory=$true)]
$ConfigurationName
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
if(-not [string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) {
Write-Output "Too early to run via Appveyor - artifacts don't get generated properly. Exiting"
Exit
}
Write-Output "Solution Dir: '$($SolutionDir)'"
Write-Output "Target Dir: '$($TargetDir)'"
$ConfigurationName = $ConfigurationName.Trim()
Write-Output "Config Name (tirmmed): '$($ConfigurationName)'"
# Windows Sysinternals Sigcheck from http://technet.microsoft.com/en-us/sysinternals/bb897441
$SIGCHECK="$($SolutionDir)Tools\exes\sigcheck.exe"
$SEVENZIP="$($SolutionDir)Tools\7zip\7za.exe"
# Package Zip
if ($ConfigurationName -eq "Release Portable") {
Write-Output "Packaging Release Portable ZIP"
$version = & $SIGCHECK /accepteula -q -n "$($SolutionDir)mRemoteV1\bin\$($ConfigurationName)\mRemoteNG.exe"
Write-Output "Version is $($version)"
$PortableZip="$($SolutionDir)Release\mRemoteNG-Portable-$($version).zip"
$tempFolderPath = Join-Path -Path $SolutionDir -ChildPath "mRemoteV1\bin\package"
Remove-Item -Recurse $tempFolderPath -ErrorAction SilentlyContinue | Out-Null
New-Item $tempFolderPath -ItemType "directory" | Out-Null
Copy-Item "$($SolutionDir)mRemoteV1\Resources\PuTTYNG.exe" -Destination $tempFolderPath
#Write-Output "$($SolutionDir)mRemoteV1\bin\$ConfigurationName"
#Write-Output "$($SolutionDir)mRemoteV1\bin\package"
Copy-Item "$($SolutionDir)mRemoteV1\bin\$ConfigurationName\*" -Destination $tempFolderPath -Recurse -Force
# Delete any PDB files that accidentally get copied into the temp folder
Get-ChildItem -Path $tempFolderPath -Filter "*.pdb" | Remove-Item
Copy-Item "$($SolutionDir)*.txt" -Destination $tempFolderPath
Write-Output "Creating portable ZIP file $($PortableZip)"
Remove-Item -Force $PortableZip -ErrorAction SilentlyContinue
& $SEVENZIP a -bt -bd -bb1 -mx=9 -tzip -y -r $PortableZip (Join-Path -Path $tempFolderPath -ChildPath "*.*")
#& $SEVENZIP a -bt -mx=9 -tzip -y $PortableZip "$($SolutionDir)*.TXT"
(Get-FileHash -Path $PortableZip -Algorithm SHA512).Hash
}
else {
Write-Output "We will not zip anything - this isnt a portable release build."
}
Write-Output ""

View File

@@ -0,0 +1,39 @@
if([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) {
Write-Output "NOT running via Appveyor - Exiting"
Exit
}
$appvDir = $Env:APPVEYOR_BUILD_FOLDER
Write-Output "Appveyor Build Dir: '$($appvDir)'"
$ConfigurationName = $Env:CONFIGURATION.Trim()
Write-Output "Config Name (tirmmed): '$($ConfigurationName)'"
$SIGCHECK="$($SolutionDir)Tools\exes\sigcheck.exe"
$SEVENZIP="$($SolutionDir)Tools\7zip\7za.exe"
if ($ConfigurationName -eq "Release Portable") {
Write-Output "Packaging Release Portable ZIP"
$version = & $SIGCHECK /accepteula -q -n "$($SolutionDir)mRemoteV1\bin\$($ConfigurationName)\mRemoteNG.exe"
Write-Output "Version is $($version)"
$PortableZip="$($SolutionDir)Release\mRemoteNG-Portable-$($version).zip"
Remove-Item -Recurse "$($SolutionDir)mRemoteV1\bin\package" -ErrorAction SilentlyContinue | Out-Null
New-Item "$($SolutionDir)mRemoteV1\bin\package" -ItemType "directory" | Out-Null
Copy-Item "$($SolutionDir)mRemoteV1\Resources\PuTTYNG.exe" -Destination "$($SolutionDir)mRemoteV1\bin\package"
Copy-Item "$($SolutionDir)mRemoteV1\bin\$ConfigurationName\*" -Destination "$($SolutionDir)mRemoteV1\bin\package" -Recurse -Force
Copy-Item "$($SolutionDir)*.txt" -Destination "$($SolutionDir)mRemoteV1\bin\package"
Write-Output "Creating portable ZIP file $($PortableZip)"
Remove-Item -Force $PortableZip -ErrorAction SilentlyContinue
& $SEVENZIP a -bt -bd -bb1 -mx=9 -tzip -y -r $PortableZip "$($SolutionDir)mRemoteV1\bin\package\*.*"
}
else {
Write-Output "We will not zip anything - this isnt a portable release build."
}

56
Tools/zip_symbols.ps1 Normal file
View File

@@ -0,0 +1,56 @@
param (
[string]
[Parameter(Mandatory=$true)]
$SolutionDir,
[string]
[Parameter(Mandatory=$true)]
$TargetDir,
[string]
[Parameter(Mandatory=$true)]
$ConfigurationName
)
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
if(-not [string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) {
Write-Output "Too early to run via Appveyor - artifacts don't get generated properly. Exiting"
Exit
}
Write-Output "Solution Dir: '$($SolutionDir)'"
Write-Output "Target Dir: '$($TargetDir)'"
$ConfigurationName = $ConfigurationName.Trim()
Write-Output "Config Name (trimmed): '$($ConfigurationName)'"
# Windows Sysinternals Sigcheck from http://technet.microsoft.com/en-us/sysinternals/bb897441
$SIGCHECK="$($SolutionDir)Tools\exes\sigcheck.exe"
$SEVENZIP="$($SolutionDir)Tools\7zip\7za.exe"
# Package Zip
if ($ConfigurationName -match "Release") {
Write-Output "Packaging debug symbols"
$version = & $SIGCHECK /accepteula -q -n "$($SolutionDir)mRemoteV1\bin\$($ConfigurationName)\mRemoteNG.exe"
Write-Output "Version is $($version)"
if ($ConfigurationName -match "Portable") {
$zipFilePrefix = "mRemoteNG-Portable-symbols"
} else {
$zipFilePrefix = "mRemoteNG-symbols"
}
$outputZipPath="$($SolutionDir)Release\$zipFilePrefix-$($version).zip"
Write-Output "Creating debug symbols ZIP file $($outputZipPath)"
Remove-Item -Force $outputZipPath -ErrorAction SilentlyContinue
& $SEVENZIP a -bt -bd -bb1 -mx=9 -tzip -y -r $outputZipPath (Join-Path -Path $TargetDir -ChildPath "*.pdb")
}
else {
Write-Output "We will not package debug symbols - this isnt a release build."
}
Write-Output ""

View File

@@ -1 +0,0 @@
<Playlist Version="1.0"><Add Test="mRemoteNGTests.UI.WindowListTests.TestMethod1" /><Add Test="mRemoteNGTests.UI.WindowListTests.AddWindowToList" /><Add Test="mRemoteNGTests.UI.WindowListTests.CountReturnsCorrectNumber" /></Playlist>

28
appveyor.yml Normal file
View File

@@ -0,0 +1,28 @@
version: 1.76.{build}
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2017
configuration:
- Release
- Release Portable
- Release Installer
platform: x86
clone_depth: 1
install:
- ps: C:\projects\mremoteng\mRemoteV1\Resources\CitrixReceiver.exe DONOTSTARTCC=1 ENABLE_SSON="No" /silent | out-null
before_build:
- cmd: nuget restore
build:
project: mRemoteV1.sln
verbosity: normal
after_build:
- ps: "if([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) {\n Write-Output \"NOT running via Appveyor - Exiting\"\n Exit\n}\n\n$appvDir = $Env:APPVEYOR_BUILD_FOLDER\n\nWrite-Output \"Appveyor Build Dir: '$($appvDir)'\"\n$ConfigurationName = $Env:CONFIGURATION.Trim()\nWrite-Output \"Config Name (tirmmed): '$($ConfigurationName)'\"\n\n\n$SIGCHECK=\"$($SolutionDir)Tools\\exes\\sigcheck.exe\"\n$SEVENZIP=\"$($SolutionDir)Tools\\7zip\\7za.exe\"\n\nif ($ConfigurationName -eq \"Release Portable\") {\n Write-Output \"Packaging Release Portable ZIP\"\n \n $version = & $SIGCHECK /accepteula -q -n \"$($SolutionDir)mRemoteV1\\bin\\$($ConfigurationName)\\mRemoteNG.exe\"\n\n Write-Output \"Version is $($version)\"\n\n $PortableZip=\"$($SolutionDir)Release\\mRemoteNG-Portable-$($version).zip\"\n\n Remove-Item -Recurse \"$($SolutionDir)mRemoteV1\\bin\\package\" -ErrorAction SilentlyContinue | Out-Null\n New-Item \"$($SolutionDir)mRemoteV1\\bin\\package\" -ItemType \"directory\" | Out-Null\n \n Copy-Item \"$($SolutionDir)mRemoteV1\\Resources\\PuTTYNG.exe\" -Destination \"$($SolutionDir)mRemoteV1\\bin\\package\"\n\n Copy-Item \"$($SolutionDir)mRemoteV1\\bin\\$ConfigurationName\\*\" -Destination \"$($SolutionDir)mRemoteV1\\bin\\package\" -Recurse -Force \n Copy-Item \"$($SolutionDir)*.txt\" -Destination \"$($SolutionDir)mRemoteV1\\bin\\package\"\n\n Write-Output \"Creating portable ZIP file $($PortableZip)\"\n Remove-Item -Force $PortableZip -ErrorAction SilentlyContinue\n & $SEVENZIP a -bt -bd -bb1 -mx=9 -tzip -y -r $PortableZip \"$($SolutionDir)mRemoteV1\\bin\\package\\*.*\"\n}\nelse {\n Write-Output \"We will not zip anything - this isnt a portable release build.\"\n}"
test:
assemblies:
only:
- mRemoteNGTests\bin\$(configuration)\mRemoteNGTests.dll
artifacts:
- path: Release\*.msi
name: mRemoteNG-installer.msi
- path: Release\*.zip
name: mRemoteNG-portable.zip

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" />
</configSections>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="WeifenLuo.WinFormsUI.Docking" publicKeyToken="5cded1a1a0a7b481" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.16.0.0" newVersion="2.16.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
<specFlow>
<!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config -->
<!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config -->
<unitTestProvider name="NUnit" />
</specFlow>
</configuration>

View File

@@ -0,0 +1,25 @@
Feature: CredentialRepository
As a user with several environments
I would like to load multiple credential repositories
In order to keep credentials separate
@credentials
Scenario: Load credential repository
Given I have a credential repository
And the credential repository is unloaded
When I click load
Then the credential repository is loaded
Scenario: Add credential record
Given I have a credential repository
And The credential repository is loaded
And The repository has 0 credentials
When I click add credential
Then the repository has 1 credentials
Scenario: Unload credential repository
Given I have a credential repository
And The credential repository is loaded
And The repository has 1 credentials
When I click unload
Then the credentials in the repository will no longer be available

View File

@@ -0,0 +1,138 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:2.2.0.0
// SpecFlow Generator Version:2.2.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
using NUnit.Framework;
#pragma warning disable
namespace mRemoteNG.Specs.Features
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "2.2.0.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[NUnit.Framework.TestFixtureAttribute()]
[NUnit.Framework.DescriptionAttribute("CredentialRepository")]
public partial class CredentialRepositoryFeature
{
private TechTalk.SpecFlow.ITestRunner testRunner;
#line 1 "CredentialRepository.feature"
#line hidden
[NUnit.Framework.OneTimeSetUpAttribute()]
public virtual void FeatureSetup()
{
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "CredentialRepository", "\tAs a user with several environments\r\n\tI would like to load multiple credential r" +
"epositories\r\n\tIn order to keep credentials separate", ProgrammingLanguage.CSharp, ((string[])(null)));
testRunner.OnFeatureStart(featureInfo);
}
[NUnit.Framework.OneTimeTearDownAttribute()]
public virtual void FeatureTearDown()
{
testRunner.OnFeatureEnd();
testRunner = null;
}
[NUnit.Framework.SetUpAttribute()]
public virtual void TestInitialize()
{
}
[NUnit.Framework.TearDownAttribute()]
public virtual void ScenarioTearDown()
{
testRunner.OnScenarioEnd();
}
public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
{
testRunner.OnScenarioStart(scenarioInfo);
}
public virtual void ScenarioCleanup()
{
testRunner.CollectScenarioErrors();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Load credential repository")]
[NUnit.Framework.CategoryAttribute("credentials")]
[Ignore("Cred Repo not implmented currently.")]
public virtual void LoadCredentialRepository()
{
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Load credential repository", new string[] {
"credentials"});
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
testRunner.Given("I have a credential repository", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 9
testRunner.And("the credential repository is unloaded", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 10
testRunner.When("I click load", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 11
testRunner.Then("the credential repository is loaded", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Add credential record")]
[Ignore("Cred Repo not implmented currently.")]
public virtual void AddCredentialRecord()
{
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add credential record", ((string[])(null)));
#line 13
this.ScenarioSetup(scenarioInfo);
#line 14
testRunner.Given("I have a credential repository", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 15
testRunner.And("The credential repository is loaded", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 16
testRunner.And("The repository has 0 credentials", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 17
testRunner.When("I click add credential", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 18
testRunner.Then("the repository has 1 credentials", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Unload credential repository")]
[Ignore("Cred Repo not implmented currently.")]
public virtual void UnloadCredentialRepository()
{
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Unload credential repository", ((string[])(null)));
#line 20
this.ScenarioSetup(scenarioInfo);
#line 21
testRunner.Given("I have a credential repository", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 22
testRunner.And("The credential repository is loaded", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 23
testRunner.And("The repository has 1 credentials", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 24
testRunner.When("I click unload", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 25
testRunner.Then("the credentials in the repository will no longer be available", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
}
}
#pragma warning restore
#endregion

View File

@@ -0,0 +1,17 @@
Feature: CredentialRepositoryList
As a user with several environments
I would like to load multiple credential repositories
In order to keep credentials separate
@credentials
Scenario: Add a new credential repository
Given I have a credential repository list
And It has 0 repositories set up
When I press add and complete the creation wizard
Then I will have 1 credential repository
Scenario: Remove a credential repository
Given I have a credential repository list
And It has 2 repositories set up
When I remove the first repository
Then I will have 1 credential repository

View File

@@ -0,0 +1,115 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:2.2.0.0
// SpecFlow Generator Version:2.2.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
using NUnit.Framework;
#pragma warning disable
namespace mRemoteNG.Specs.Features
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "2.2.0.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[NUnit.Framework.TestFixtureAttribute()]
[NUnit.Framework.DescriptionAttribute("CredentialRepositoryList")]
[Ignore("Cred Repo not implmented currently.")]
public partial class CredentialRepositoryListFeature
{
private TechTalk.SpecFlow.ITestRunner testRunner;
#line 1 "CredentialRepositoryList.feature"
#line hidden
[NUnit.Framework.OneTimeSetUpAttribute()]
public virtual void FeatureSetup()
{
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "CredentialRepositoryList", "\tAs a user with several environments\r\n\tI would like to load multiple credential r" +
"epositories\r\n\tIn order to keep credentials separate", ProgrammingLanguage.CSharp, ((string[])(null)));
testRunner.OnFeatureStart(featureInfo);
}
[NUnit.Framework.OneTimeTearDownAttribute()]
public virtual void FeatureTearDown()
{
testRunner.OnFeatureEnd();
testRunner = null;
}
[NUnit.Framework.SetUpAttribute()]
public virtual void TestInitialize()
{
}
[NUnit.Framework.TearDownAttribute()]
public virtual void ScenarioTearDown()
{
testRunner.OnScenarioEnd();
}
public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
{
testRunner.OnScenarioStart(scenarioInfo);
}
public virtual void ScenarioCleanup()
{
testRunner.CollectScenarioErrors();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Add a new credential repository")]
[NUnit.Framework.CategoryAttribute("credentials")]
[Ignore("Cred Repo not implmented currently.")]
public virtual void AddANewCredentialRepository()
{
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Add a new credential repository", new string[] {
"credentials"});
#line 7
this.ScenarioSetup(scenarioInfo);
#line 8
testRunner.Given("I have a credential repository list", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 9
testRunner.And("It has 0 repositories set up", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 10
testRunner.When("I press add and complete the creation wizard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 11
testRunner.Then("I will have 1 credential repository", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Remove a credential repository")]
[Ignore("Cred Repo not implmented currently.")]
public virtual void RemoveACredentialRepository()
{
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Remove a credential repository", ((string[])(null)));
#line 13
this.ScenarioSetup(scenarioInfo);
#line 14
testRunner.Given("I have a credential repository list", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 15
testRunner.And("It has 2 repositories set up", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 16
testRunner.When("I remove the first repository", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 17
testRunner.Then("I will have 1 credential repository", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
}
}
#pragma warning restore
#endregion

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("mRemoteNG.Specs")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("mRemoteNG.Specs")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("16aa21e2-d6b7-427d-ab7d-aa8c611b724e")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,48 @@
using System.Linq;
using mRemoteNG.Credential.Repositories;
using mRemoteNG.Specs.Utilities;
using NUnit.Framework;
using TechTalk.SpecFlow;
namespace mRemoteNG.Specs.StepDefinitions
{
[Binding]
public class CredentialRepositoryListSteps
{
private CredentialRepositoryList _credentialRepositoryList;
private readonly XmlCredentialRepoBuilder _credentialRepoUtilities = new XmlCredentialRepoBuilder();
[Given(@"I have a credential repository list")]
public void GivenIHaveACredentialRepositoryList()
{
_credentialRepositoryList = new CredentialRepositoryList();
}
[Given(@"It has (.*) repositories set up")]
public void GivenItHasRepositoriesSetUp(int numberOfCredentialRepos)
{
for (var i = 0; i < numberOfCredentialRepos; i++)
_credentialRepositoryList.AddProvider(_credentialRepoUtilities.BuildXmlCredentialRepo());
}
[When(@"I press add and complete the creation wizard")]
public void WhenIPressAddAndCompleteTheCreationWizard()
{
var credentialRepo = _credentialRepoUtilities.BuildXmlCredentialRepo();
_credentialRepositoryList.AddProvider(credentialRepo);
}
[When(@"I remove the first repository")]
public void WhenIRemoveTheFirstRepository()
{
var firstRepo = _credentialRepositoryList.CredentialProviders.First();
_credentialRepositoryList.RemoveProvider(firstRepo);
}
[Then(@"I will have (.*) credential repository")]
public void ThenIWillHaveCredentialRepository(int expectedCredRepoCount)
{
Assert.That(_credentialRepositoryList.CredentialProviders.Count(), Is.EqualTo(expectedCredRepoCount));
}
}
}

View File

@@ -0,0 +1,80 @@
using System.Security;
using mRemoteNG.Credential;
using mRemoteNG.Security;
using mRemoteNG.Specs.Utilities;
using NUnit.Framework;
using TechTalk.SpecFlow;
namespace mRemoteNG.Specs.StepDefinitions
{
[Binding]
public class CredentialRepositorySteps
{
private ICredentialRepository _credentialRepository;
private readonly SecureString _key = "somePassword".ConvertToSecureString();
[Given(@"I have a credential repository")]
public void GivenIHaveACredentialRepository()
{
var utilityFactory = new XmlCredentialRepoBuilder {EncryptionKey = _key};
_credentialRepository = utilityFactory.BuildXmlCredentialRepo();
}
[Given(@"The repository has (.*) credentials")]
public void GivenTheRepositoryHasCredentials(int numberOfCreds)
{
for (var i = 0; i < numberOfCreds; i++)
_credentialRepository.CredentialRecords.Add(new CredentialRecord());
Assert.That(_credentialRepository.CredentialRecords.Count, Is.EqualTo(numberOfCreds));
}
[Given(@"The credential repository is loaded")]
public void GivenTheCredentialRepositoryIsLoaded()
{
_credentialRepository.LoadCredentials(_key);
Assert.That(_credentialRepository.IsLoaded);
}
[Given(@"the credential repository is unloaded")]
public void GivenTheCredentialRepositoryIsUnloaded()
{
Assert.That(_credentialRepository.IsLoaded, Is.False);
}
[When(@"I click load")]
public void WhenIClickLoad()
{
_credentialRepository.LoadCredentials(_key);
}
[Then(@"the credential repository is loaded")]
public void ThenTheCredentialRepositoryIsLoaded()
{
Assert.That(_credentialRepository.IsLoaded);
}
[When(@"I click add credential")]
public void WhenIClickAddCredential()
{
_credentialRepository.CredentialRecords.Add(new CredentialRecord());
}
[Then(@"the repository has (.*) credentials")]
public void ThenTheRepositoryHasCredentials(int numberOfCreds)
{
Assert.That(_credentialRepository.CredentialRecords.Count, Is.EqualTo(numberOfCreds));
}
[When(@"I click unload")]
public void WhenIClickUnload()
{
_credentialRepository.UnloadCredentials();
}
[Then(@"the credentials in the repository will no longer be available")]
public void ThenTheCredentialsInTheRepositoryWillNoLongerBeAvailable()
{
Assert.That(_credentialRepository.CredentialRecords, Is.Empty);
}
}
}

View File

@@ -0,0 +1,12 @@
namespace mRemoteNG.Specs.Utilities
{
public class CredRepoXmlFileBuilder
{
public string Build(string authHeader)
{
return "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
$"<Credentials EncryptionEngine=\"AES\" BlockCipherMode=\"GCM\" KdfIterations=\"1000\" Auth=\"{authHeader}\" SchemaVersion=\"1.0\">" +
"</Credentials>";
}
}
}

View File

@@ -0,0 +1,42 @@
using System.Security;
using mRemoteNG.Config;
using mRemoteNG.Config.DataProviders;
using mRemoteNG.Config.Serializers.CredentialSerializer;
using mRemoteNG.Credential;
using mRemoteNG.Credential.Repositories;
using mRemoteNG.Security;
using mRemoteNG.Security.SymmetricEncryption;
namespace mRemoteNG.Specs.Utilities
{
public class XmlCredentialRepoBuilder
{
public SecureString EncryptionKey { get; set; } = "someKey1".ConvertToSecureString();
public ICryptographyProvider CryptographyProvider { get; set; } = new AeadCryptographyProvider();
public ICredentialRepository BuildXmlCredentialRepo()
{
var xmlFileBuilder = new CredRepoXmlFileBuilder();
var xmlFileContent = xmlFileBuilder.Build(CryptographyProvider.Encrypt("someheaderdata", EncryptionKey));
var dataProvider = new InMemoryStringDataProvider(xmlFileContent);
var encryptor = new XmlCredentialPasswordEncryptorDecorator(
CryptographyProvider,
new XmlCredentialRecordSerializer()
);
var decryptor = new XmlCredentialPasswordDecryptorDecorator(
new XmlCredentialRecordDeserializer()
);
return new XmlCredentialRepository(
new CredentialRepositoryConfig(),
new CredentialRecordSaver(
dataProvider,
encryptor
), new CredentialRecordLoader(
dataProvider,
decryptor
)
);
}
}
}

View File

@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{16AA21E2-D6B7-427D-AB7D-AA8C611B724E}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>mRemoteNG.Specs</RootNamespace>
<AssemblyName>mRemoteNG.Specs</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="nunit.framework, Version=3.9.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="TechTalk.SpecFlow, Version=2.2.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41, processorArchitecture=MSIL">
<HintPath>..\packages\SpecFlow.2.2.1\lib\net45\TechTalk.SpecFlow.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Features\CredentialRepository.feature.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CredentialRepository.feature</DependentUpon>
</Compile>
<Compile Include="Features\CredentialRepositoryList.feature.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CredentialRepositoryList.feature</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="StepDefinitions\CredentialRepositoryListSteps.cs" />
<Compile Include="StepDefinitions\CredentialRepositorySteps.cs" />
<Compile Include="Utilities\CredRepoXmlFileBuilder.cs" />
<Compile Include="Utilities\XmlCredentialRepoBuilder.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="Features\CredentialRepository.feature">
<Generator>SpecFlowSingleFileGenerator</Generator>
<LastGenOutput>CredentialRepository.feature.cs</LastGenOutput>
</None>
<None Include="Features\CredentialRepositoryList.feature">
<Generator>SpecFlowSingleFileGenerator</Generator>
<LastGenOutput>CredentialRepositoryList.feature.cs</LastGenOutput>
</None>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\mRemoteV1\mRemoteV1.csproj">
<Project>{4934a491-40bc-4e5b-9166-ea1169a220f6}</Project>
<Name>mRemoteV1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net46" />
<package id="NUnit" version="3.9.0" targetFramework="net46" />
<package id="NUnit.Console" version="3.7.0" targetFramework="net46" />
<package id="NUnit.ConsoleRunner" version="3.7.0" targetFramework="net46" />
<package id="NUnit.Extension.NUnitProjectLoader" version="3.6.0" targetFramework="net46" />
<package id="NUnit.Extension.NUnitV2Driver" version="3.7.0" targetFramework="net46" />
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.6.0" targetFramework="net46" />
<package id="NUnit.Extension.TeamCityEventListener" version="1.0.3" targetFramework="net46" />
<package id="NUnit.Extension.VSProjectLoader" version="3.7.0" targetFramework="net46" />
<package id="NUnit.Runners" version="3.7.0" targetFramework="net46" />
<package id="SpecFlow" version="2.2.1" targetFramework="net46" />
<package id="SpecFlow.NUnit" version="2.2.1" targetFramework="net46" />
<package id="SpecFlow.NUnit.Runners" version="2.2.1" targetFramework="net46" />
</packages>

View File

@@ -0,0 +1,47 @@
using System.IO;
using mRemoteNG.App;
using mRemoteNG.Config.Putty;
using mRemoteNG.Connection;
using mRemoteNG.Container;
using mRemoteNGTests.Properties;
using mRemoteNGTests.TestHelpers;
using NUnit.Framework;
namespace mRemoteNGTests.App
{
public class ImportTests
{
[Test]
public void ErrorHandlerCalledWhenUnsupportedFileExtensionFound()
{
using (FileTestHelpers.DisposableTempFile(out var file, ".blah"))
{
var conService = new ConnectionsService(PuttySessionsManager.Instance);
var container = new ContainerInfo();
var exceptionOccurred = false;
Import.HeadlessFileImport(new []{file}, container, conService, s => exceptionOccurred = true);
Assert.That(exceptionOccurred);
}
}
[Test]
public void AnErrorInOneFileDoNotPreventOtherFilesFromProcessing()
{
using (FileTestHelpers.DisposableTempFile(out var badFile, ".blah"))
using (FileTestHelpers.DisposableTempFile(out var rdpFile, ".rdp"))
{
File.AppendAllText(rdpFile, Resources.test_remotedesktopconnection_rdp);
var conService = new ConnectionsService(PuttySessionsManager.Instance);
var container = new ContainerInfo();
var exceptionCount = 0;
Import.HeadlessFileImport(new[] { badFile, rdpFile }, container, conService, s => exceptionCount++);
Assert.That(exceptionCount, Is.EqualTo(1));
Assert.That(container.Children, Has.One.Items);
}
}
}
}

View File

@@ -1,25 +0,0 @@
using System;
using NUnit.Framework;
using mRemoteNG.App;
using log4net;
namespace mRemoteNGTests.App
{
[TestFixture]
public class LoggerTests
{
[Test]
public void GetSingletonInstanceReturnsAnILogObject()
{
Assert.That(Logger.Instance, Is.InstanceOf<ILog>());
}
[Test]
public void SingletonOnlyEverReturnsTheSameInstance()
{
ILog log1 = Logger.Instance;
ILog log2 = Logger.Instance;
Assert.That(log1, Is.EqualTo(log2));
}
}
}

View File

@@ -1,5 +1,6 @@
using NUnit.Framework;
using System.IO;
using System.Runtime.CompilerServices;
namespace mRemoteNGTests
{
@@ -13,41 +14,42 @@ namespace mRemoteNGTests
Assert.That(IsLargeAware(exePath), Is.True);
}
static string GetTargetPath([System.Runtime.CompilerServices.CallerFilePath] string sourceFilePath = "")
public string GetTargetPath([CallerFilePath] string sourceFilePath = "")
{
string debugOrRelease = "";
string normalOrPortable = "";
const string debugOrRelease =
#if DEBUG
debugOrRelease = "Debug";
"Debug";
#else
debugOrRelease = "Release";
"Release";
#endif
const string normalOrPortable =
#if PORTABLE
normalOrPortable = " Portable";
" Portable";
#else
normalOrPortable = "";
"";
#endif
var path = Path.GetDirectoryName(sourceFilePath);
string FilePath = $"{path}\\..\\mRemoteV1\\bin\\{debugOrRelease}{normalOrPortable}\\mRemoteNG.exe";
return FilePath;
var filePath = $"{path}\\..\\mRemoteV1\\bin\\{debugOrRelease}{normalOrPortable}\\mRemoteNG.exe";
return filePath;
}
static bool IsLargeAware(string file)
private bool IsLargeAware(string file)
{
using (var fs = File.OpenRead(file))
{
return IsLargeAware(fs);
}
}
/// <summary>
/// Checks if the stream is a MZ header and if it is large address aware
/// </summary>
/// <param name="stream">Stream to check, make sure its at the start of the MZ header</param>
/// <exception cref=""></exception>
/// <returns></returns>
static bool IsLargeAware(Stream stream)
private bool IsLargeAware(Stream stream)
{
const int IMAGE_FILE_LARGE_ADDRESS_AWARE = 0x20;
const int imageFileLargeAddressAware = 0x20;
var br = new BinaryReader(stream);
@@ -55,14 +57,14 @@ namespace mRemoteNGTests
return false;
br.BaseStream.Position = 0x3C;
var peloc = br.ReadInt32(); //Get the PE header location.
var peHeaderLocation = br.ReadInt32(); //Get the PE header location.
br.BaseStream.Position = peloc;
br.BaseStream.Position = peHeaderLocation;
if (br.ReadInt32() != 0x4550) //No PE header
return false;
br.BaseStream.Position += 0x12;
return (br.ReadInt16() & IMAGE_FILE_LARGE_ADDRESS_AWARE) == IMAGE_FILE_LARGE_ADDRESS_AWARE;
return (br.ReadInt16() & imageFileLargeAddressAware) == imageFileLargeAddressAware;
}
}
}

View File

@@ -0,0 +1,42 @@
using System;
using mRemoteNG.Config.Connections.Multiuser;
using mRemoteNG.Config.DatabaseConnectors;
using NSubstitute;
using NUnit.Framework;
// ReSharper disable ObjectCreationAsStatement
namespace mRemoteNGTests.Config.Connections.Multiuser
{
public class ConnectionsUpdateAvailableEventArgsTests
{
private IDatabaseConnector _databaseConnector;
private DateTime _dateTime;
[SetUp]
public void Setup()
{
_databaseConnector = Substitute.For<IDatabaseConnector>();
_dateTime = DateTime.MinValue;
}
[Test]
public void CantProvideNullDatabaseConnectorToCtor()
{
Assert.Throws<ArgumentNullException>(() => new ConnectionsUpdateAvailableEventArgs(null, _dateTime));
}
[Test]
public void DatabaseConnectorPropertySet()
{
var eventArgs = new ConnectionsUpdateAvailableEventArgs(_databaseConnector, _dateTime);
Assert.That(eventArgs.DatabaseConnector, Is.EqualTo(_databaseConnector));
}
[Test]
public void UpdateTimePropertySet()
{
var eventArgs = new ConnectionsUpdateAvailableEventArgs(_databaseConnector, _dateTime);
Assert.That(eventArgs.UpdateTime, Is.EqualTo(_dateTime));
}
}
}

View File

@@ -0,0 +1,21 @@
using mRemoteNG.Config.Connections;
using mRemoteNGTests.TestHelpers;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace mRemoteNGTests.Config.Connections
{
class XmlConnectionsLoaderTests
{
[Test]
public void ThrowsFileNotFound()
{
Assert.Throws<FileNotFoundException>(() => (new XmlConnectionsLoader(FileTestHelpers.NewTempFilePath())).Load());
}
}
}

View File

@@ -0,0 +1,132 @@
using System;
using System.Linq;
using System.Security;
using System.Xml.Linq;
using mRemoteNG.Config;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Config.Serializers.Xml;
using mRemoteNG.Connection;
using mRemoteNG.Container;
using mRemoteNG.Security;
using mRemoteNG.Security.Factories;
using mRemoteNG.Tree.Root;
using NUnit.Framework;
namespace mRemoteNGTests.Config
{
#pragma warning disable 618
public class CredentialHarvesterTests
{
private CredentialHarvester _credentialHarvester;
private ICryptographyProvider _cryptographyProvider;
private SecureString _key;
[SetUp]
public void Setup()
{
_credentialHarvester = new CredentialHarvester();
_cryptographyProvider = new CryptoProviderFactory(BlockCipherEngines.AES, BlockCipherModes.GCM).Build();
_key = "testKey123".ConvertToSecureString();
}
[Test]
public void HarvestsUsername()
{
var connection = new ConnectionInfo { Username = "myuser", Domain = "somedomain", Password = "mypass" };
var xdoc = CreateTestData(connection);
var credentials = _credentialHarvester.Harvest(xdoc, _key);
Assert.That(credentials.Single().Username, Is.EqualTo(connection.Username));
}
[Test]
public void HarvestsDomain()
{
var connection = new ConnectionInfo { Username = "myuser", Domain = "somedomain", Password = "mypass" };
var xdoc = CreateTestData(connection);
var credentials = _credentialHarvester.Harvest(xdoc, _key);
Assert.That(credentials.Single().Domain, Is.EqualTo(connection.Domain));
}
[Test]
public void HarvestsPassword()
{
var connection = new ConnectionInfo { Username = "myuser", Domain = "somedomain", Password = "mypass" };
var xdoc = CreateTestData(connection);
var credentials = _credentialHarvester.Harvest(xdoc, _key);
Assert.That(credentials.Single().Password.ConvertToUnsecureString(), Is.EqualTo(connection.Password));
}
[Test]
public void DoesNotHarvestEmptyCredentials()
{
var connection = new ConnectionInfo();
var xdoc = CreateTestData(connection);
var credentials = _credentialHarvester.Harvest(xdoc, _key);
Assert.That(credentials.Count(), Is.EqualTo(0));
}
[Test]
public void HarvestsAllCredentials()
{
var container = new ContainerInfo();
var con1 = new ConnectionInfo {Username = "blah"};
var con2 = new ConnectionInfo {Username = "something"};
container.AddChildRange(new [] {con1, con2});
var xdoc = CreateTestData(container);
var credentials = _credentialHarvester.Harvest(xdoc, _key);
Assert.That(credentials.Count(), Is.EqualTo(2));
}
[Test]
public void OnlyReturnsUniqueCredentials()
{
var container = new ContainerInfo();
var con1 = new ConnectionInfo { Username = "something" };
var con2 = new ConnectionInfo { Username = "something" };
container.AddChildRange(new[] { con1, con2 });
var xdoc = CreateTestData(container);
var credentials = _credentialHarvester.Harvest(xdoc, _key);
Assert.That(credentials.Count(), Is.EqualTo(1));
}
[Test]
public void CredentialMapCorrectForSingleCredential()
{
var connection = new ConnectionInfo { Username = "myuser", Domain = "somedomain", Password = "mypass" };
var connectionGuid = Guid.Parse(connection.ConstantID);
var xdoc = CreateTestData(connection);
_credentialHarvester.Harvest(xdoc, _key);
var map = _credentialHarvester.ConnectionToCredentialMap;
Assert.That(map[connectionGuid].Username, Is.EqualTo(connection.Username));
}
[Test]
public void CredentialMapDoesntContainDuplicateCredentialObjects()
{
var container = new ContainerInfo();
var con1 = new ConnectionInfo { Username = "something" };
var con2 = new ConnectionInfo { Username = "something" };
container.AddChildRange(new[] { con1, con2 });
var xdoc = CreateTestData(container);
var con1Id = Guid.Parse(con1.ConstantID);
var con2Id = Guid.Parse(con2.ConstantID);
_credentialHarvester.Harvest(xdoc, _key);
var map = _credentialHarvester.ConnectionToCredentialMap;
Assert.That(map[con1Id], Is.EqualTo(map[con2Id]));
}
private XDocument CreateTestData(ConnectionInfo connectionInfo)
{
var rootNode = new RootNodeInfo(RootNodeType.Connection) {PasswordString = _key.ConvertToUnsecureString()};
rootNode.AddChild(connectionInfo);
var nodeSerializer = new XmlConnectionNodeSerializer26(_cryptographyProvider, _key, new SaveFilter());
var serializer = new XmlConnectionsSerializer(_cryptographyProvider, nodeSerializer);
var serializedData = serializer.Serialize(rootNode);
return XDocument.Parse(serializedData);
}
}
#pragma warning restore 618
}

View File

@@ -0,0 +1,42 @@
using System.Collections.Generic;
using System.Security;
using mRemoteNG.Config;
using mRemoteNG.Config.DataProviders;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Credential;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config
{
public class CredentialRecordLoaderTests
{
private CredentialRecordLoader _credentialRecordLoader;
private IDataProvider<string> _dataProvider;
private ISecureDeserializer<string, IEnumerable<ICredentialRecord>> _deserializer;
[SetUp]
public void Setup()
{
_dataProvider = Substitute.For<IDataProvider<string>>();
_deserializer = Substitute.For<ISecureDeserializer<string, IEnumerable<ICredentialRecord>>>();
_credentialRecordLoader = new CredentialRecordLoader(_dataProvider, _deserializer);
}
[Test]
public void LoadsFromDataProvider()
{
_credentialRecordLoader.Load(new SecureString());
_dataProvider.Received(1).Load();
}
[Test]
public void DeserializesDataFromDataProvider()
{
var key = new SecureString();
_dataProvider.Load().Returns("mydata");
_credentialRecordLoader.Load(key);
_deserializer.Received(1).Deserialize("mydata", key);
}
}
}

View File

@@ -0,0 +1,50 @@
using System.IO;
using mRemoteNG.Config.DataProviders;
using mRemoteNGTests.TestHelpers;
using NUnit.Framework;
namespace mRemoteNGTests.Config.DataProviders
{
public class FileBackupCreatorTests
{
private FileBackupCreator _fileBackupCreator;
private string _testFilePath;
private string _testFilePathBackup;
private string _testFileDirectory;
private string _testFileRollingBackup;
[SetUp]
public void Setup()
{
_testFilePath = FileTestHelpers.NewTempFilePath();
_testFileDirectory = Path.GetDirectoryName(_testFilePath);
_testFileRollingBackup = Path.GetFileName(_testFilePath) + ".*-*.backup";
_testFilePathBackup = _testFilePath + ".backup";
_fileBackupCreator = new FileBackupCreator();
}
[TearDown]
public void Teardown()
{
if (Directory.Exists(_testFileDirectory))
Directory.Delete(_testFileDirectory, true);
}
[Test]
public void BackupCreatedWhenFileAlreadyExists()
{
File.WriteAllText(_testFilePath, "");
_fileBackupCreator.CreateBackupFile(_testFilePath);
var rollingBackupFiles = Directory.GetFiles(_testFileDirectory, _testFileRollingBackup);
Assert.That(rollingBackupFiles.Length, Is.EqualTo(1));
}
[Test]
public void BackupNotCreatedIfFileDidntAlreadyExist()
{
_fileBackupCreator.CreateBackupFile(_testFilePath);
var backupFileExists = File.Exists(_testFilePathBackup);
Assert.That(backupFileExists, Is.False);
}
}
}

View File

@@ -0,0 +1,60 @@
using System;
using System.IO;
using mRemoteNG.Config.DataProviders;
using mRemoteNGTests.TestHelpers;
using NUnit.Framework;
namespace mRemoteNGTests.Config.DataProviders
{
public class FileDataProviderTests
{
private FileDataProvider _dataProvider;
private string _testFilePath;
private string _testFileDirectory;
[SetUp]
public void Setup()
{
_testFilePath = FileTestHelpers.NewTempFilePath();
_testFileDirectory = Path.GetDirectoryName(_testFilePath);
_dataProvider = new FileDataProvider(_testFilePath);
}
[TearDown]
public void Teardown()
{
if (Directory.Exists(_testFileDirectory))
Directory.Delete(_testFileDirectory, true);
}
[Test]
public void SetsFileContent()
{
Assert.That(File.Exists(_testFilePath), Is.False);
var expectedFileContent = Guid.NewGuid().ToString();
_dataProvider.Save(expectedFileContent);
var fileContent = File.ReadAllText(_testFilePath);
Assert.That(fileContent, Is.EqualTo(expectedFileContent));
}
[Test]
public void LoadingFileThatDoesntExistProvidesEmptyString()
{
var fileThatShouldntExist = Guid.NewGuid().ToString();
var dataProvider = new FileDataProvider(fileThatShouldntExist);
var loadedData = dataProvider.Load();
Assert.That(loadedData, Is.Empty);
}
[Test]
public void SaveCreatesDirectoriesThatDontExist()
{
var folder1 = Guid.NewGuid().ToString();
var folder2 = Guid.NewGuid().ToString();
var fileThatShouldExist = Path.Combine(_testFileDirectory, folder1, folder2, Path.GetRandomFileName());
_dataProvider.FilePath = fileThatShouldExist;
_dataProvider.Save("");
Assert.That(File.Exists(fileThatShouldExist), Is.True);
}
}
}

View File

@@ -0,0 +1,53 @@
using System.IO;
using System.Threading;
using mRemoteNG.Config.DataProviders;
using mRemoteNGTests.TestHelpers;
using NUnit.Framework;
namespace mRemoteNGTests.Config.DataProviders
{
public class FileDataProviderWithRollingBackupTests
{
private FileDataProviderWithRollingBackup _dataProvider;
private string _testFilePath;
private string _testFileDirectory;
private string _testFileRollingBackup;
[SetUp]
public void Setup()
{
_testFilePath = FileTestHelpers.NewTempFilePath();
_testFileDirectory = Path.GetDirectoryName(_testFilePath);
_testFileRollingBackup = Path.GetFileName(_testFilePath) + ".*-*.backup";
_dataProvider = new FileDataProviderWithRollingBackup(_testFilePath);
}
[TearDown]
public void Teardown()
{
if (Directory.Exists(_testFileDirectory))
Directory.Delete(_testFileDirectory, true);
}
[Test]
public void RollingBackupCreatedIfRegularBackupExists()
{
for (var i = 0; i < 3; i++)
{
_dataProvider.Save("");
Thread.Sleep(100);
}
var rollingBackupFiles = Directory.GetFiles(_testFileDirectory, _testFileRollingBackup);
Assert.That(rollingBackupFiles.Length, Is.EqualTo(2));
}
[Test]
public void NoRollingBackupCreatedIfRegularFileDoesntExists()
{
_dataProvider.Save("");
var rollingBackupFiles = Directory.GetFiles(_testFileDirectory, _testFileRollingBackup);
Assert.That(rollingBackupFiles.Length, Is.EqualTo(0));
}
}
}

View File

@@ -0,0 +1,46 @@
using System;
using System.Xml.Linq;
using mRemoteNG.Config.Serializers;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
{
public class ConfConsEnsureConnectionsHaveIdsTests
{
private ConfConsEnsureConnectionsHaveIds _consEnsureConnectionsHaveIds;
[SetUp]
public void Setup()
{
_consEnsureConnectionsHaveIds = new ConfConsEnsureConnectionsHaveIds();
}
[Test]
public void IdAttributeIsAddedIfItDidntExist()
{
var xdoc = CreateTestDocument();
_consEnsureConnectionsHaveIds.EnsureElementsHaveIds(xdoc);
var attribute = xdoc.Root?.Element("Node")?.Attribute("Id");
Assert.That(attribute, Is.Not.Null);
}
[Test]
public void NewIdAttributeShouldNotBeAnEmptyGuid()
{
var xdoc = CreateTestDocument();
_consEnsureConnectionsHaveIds.EnsureElementsHaveIds(xdoc);
var attribute = xdoc.Root?.Element("Node")?.Attribute("Id");
Assert.That(attribute?.Value, Is.Not.EqualTo(Guid.Empty.ToString()));
}
private XDocument CreateTestDocument()
{
var xdoc = new XDocument();
xdoc.Add(new XElement("Root",
new XElement("Node",
new XAttribute("Thingy",""))));
return xdoc;
}
}
}

View File

@@ -0,0 +1,185 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using mRemoteNG.Config.Serializers.Csv;
using mRemoteNG.Connection;
using mRemoteNG.Connection.Protocol;
using mRemoteNG.Connection.Protocol.Http;
using mRemoteNG.Connection.Protocol.ICA;
using mRemoteNG.Connection.Protocol.RDP;
using mRemoteNG.Connection.Protocol.VNC;
using mRemoteNG.Credential;
using mRemoteNG.Security;
using mRemoteNGTests.TestHelpers;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.ConnectionSerializers.Csv
{
public class CsvConnectionsDeserializerMremotengFormatTests
{
private CsvConnectionsDeserializerMremotengFormat _deserializer;
private CsvConnectionsSerializerMremotengFormat _serializer;
[SetUp]
public void Setup()
{
_deserializer = new CsvConnectionsDeserializerMremotengFormat();
var credentialRepositoryList = Substitute.For<ICredentialRepositoryList>();
_serializer = new CsvConnectionsSerializerMremotengFormat(new SaveFilter(), credentialRepositoryList);
}
[TestCaseSource(typeof(DeserializationTestSource), nameof(DeserializationTestSource.ConnectionPropertyTestCases))]
public object ConnectionPropertiesDeserializedCorrectly(string propertyToCheck)
{
var csv = _serializer.Serialize(GetTestConnection());
var deserializedConnections = _deserializer.Deserialize(csv);
var connection = deserializedConnections.GetRecursiveChildList().FirstOrDefault();
var propertyValue = typeof(ConnectionInfo).GetProperty(propertyToCheck)?.GetValue(connection);
return propertyValue;
}
[TestCaseSource(typeof(DeserializationTestSource), nameof(DeserializationTestSource.InheritanceTestCases))]
public object InheritancePropertiesDeserializedCorrectly(string propertyToCheck)
{
var csv = _serializer.Serialize(GetTestConnectionWithAllInherited());
var deserializedConnections = _deserializer.Deserialize(csv);
var connection = deserializedConnections.GetRecursiveChildList().FirstOrDefault();
connection?.RemoveParent();
var propertyValue = typeof(ConnectionInfoInheritance).GetProperty(propertyToCheck)?.GetValue(connection?.Inheritance);
return propertyValue;
}
[Test]
public void TreeStructureDeserializedCorrectly()
{
//Root
// |- folder1
// | |- Con1
// |- Con2
var treeModel = new ConnectionTreeModelBuilder().Build();
var csv = _serializer.Serialize(treeModel);
var deserializedConnections = _deserializer.Deserialize(csv);
var con1 = deserializedConnections.GetRecursiveChildList().First(info => info.Name == "Con1");
var folder1 = deserializedConnections.GetRecursiveChildList().First(info => info.Name == "folder1");
Assert.That(con1.Parent, Is.EqualTo(folder1));
}
internal static ConnectionInfo GetTestConnection()
{
return new ConnectionInfo
{
Name = "SomeName",
Description = "SomeDescription",
Icon = "SomeIcon",
Panel = "SomePanel",
Username = "SomeUsername",
Password = "SomePassword",
Domain = "SomeDomain",
Hostname = "SomeHostname",
PuttySession = "SomePuttySession",
LoadBalanceInfo = "SomeLoadBalanceInfo",
PreExtApp = "SomePreExtApp",
PostExtApp = "SomePostExtApp",
MacAddress = "SomeMacAddress",
UserField = "SomeUserField",
ExtApp = "SomeExtApp",
VNCProxyUsername = "SomeVNCProxyUsername",
VNCProxyPassword = "SomeVNCProxyPassword",
RDGatewayUsername = "SomeRDGatewayUsername",
RDGatewayPassword = "SomeRDGatewayPassword",
RDGatewayDomain = "SomeRDGatewayDomain",
VNCProxyIP = "SomeVNCProxyIP",
RDGatewayHostname = "SomeRDGatewayHostname",
Protocol = ProtocolType.ICA,
Port = 999,
UseConsoleSession = true,
UseCredSsp = true,
RenderingEngine = HTTPBase.RenderingEngine.Gecko,
ICAEncryptionStrength = IcaProtocol.EncryptionStrength.Encr40Bit,
RDPAuthenticationLevel = RdpProtocol.AuthenticationLevel.WarnOnFailedAuth,
Colors = RdpProtocol.RDPColors.Colors16Bit,
Resolution = RdpProtocol.RDPResolutions.Res1366x768,
AutomaticResize = true,
DisplayWallpaper = true,
DisplayThemes = true,
EnableFontSmoothing = true,
EnableDesktopComposition = true,
CacheBitmaps = true,
RedirectDiskDrives = true,
RedirectPorts = true,
RedirectPrinters = true,
RedirectSmartCards = true,
RedirectSound = RdpProtocol.RDPSounds.LeaveAtRemoteComputer,
RedirectKeys = true,
VNCCompression = ProtocolVNC.Compression.Comp4,
VNCEncoding = ProtocolVNC.Encoding.EncRRE,
VNCAuthMode = ProtocolVNC.AuthMode.AuthVNC,
VNCProxyType = ProtocolVNC.ProxyType.ProxySocks5,
VNCProxyPort = 123,
VNCColors = ProtocolVNC.Colors.Col8Bit,
VNCSmartSizeMode = ProtocolVNC.SmartSizeMode.SmartSAspect,
VNCViewOnly = true,
RDGatewayUsageMethod = RdpProtocol.RDGatewayUsageMethod.Detect,
RDGatewayUseConnectionCredentials = RdpProtocol.RDGatewayUseConnectionCredentials.SmartCard
};
}
internal static ConnectionInfo GetTestConnectionWithAllInherited()
{
var connectionInfo = new ConnectionInfo();
connectionInfo.Inheritance.TurnOnInheritanceCompletely();
return connectionInfo;
}
private class DeserializationTestSource
{
public static IEnumerable ConnectionPropertyTestCases()
{
var ignoreProperties = new[]
{
nameof(ConnectionInfo.Inheritance),
nameof(ConnectionInfo.ConstantID),
nameof(ConnectionInfo.Parent)
};
var properties = typeof(ConnectionInfo)
.GetProperties()
.Where(property => !ignoreProperties.Contains(property.Name));
var testCases = new List<TestCaseData>();
var testConnectionInfo = GetTestConnection();
foreach (var property in properties)
{
testCases.Add(
new TestCaseData(property.Name)
.Returns(property.GetValue(testConnectionInfo)));
}
return testCases;
}
public static IEnumerable InheritanceTestCases()
{
var ignoreProperties = new[]
{
nameof(ConnectionInfoInheritance.EverythingInherited),
nameof(ConnectionInfoInheritance.Parent)
};
var properties = typeof(ConnectionInfoInheritance)
.GetProperties()
.Where(property => !ignoreProperties.Contains(property.Name));
var testCases = new List<TestCaseData>();
var testInheritance = GetTestConnectionWithAllInherited().Inheritance;
foreach (var property in properties)
{
testCases.Add(
new TestCaseData(property.Name)
.Returns(property.GetValue(testInheritance)));
}
return testCases;
}
}
}
}

View File

@@ -0,0 +1,156 @@
using System;
using System.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Config.Serializers.Csv;
using mRemoteNG.Connection;
using mRemoteNG.Container;
using mRemoteNG.Credential;
using mRemoteNG.Security;
using mRemoteNG.Tree;
using mRemoteNGTests.TestHelpers;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.ConnectionSerializers.Csv
{
public class CsvConnectionsSerializerMremotengFormatTests
{
private ICredentialRepositoryList _credentialRepositoryList;
private const string ConnectionName = "myconnection";
private const string Username = "myuser";
private const string Domain = "mydomain";
private const string Password = "mypass123";
[OneTimeSetUp]
public void OneTimeSetup()
{
var credRecord = Substitute.For<ICredentialRecord>();
credRecord.Username.Returns(Username);
credRecord.Domain.Returns(Domain);
credRecord.Password.Returns(Password.ConvertToSecureString());
_credentialRepositoryList = Substitute.For<ICredentialRepositoryList>();
_credentialRepositoryList.GetCredentialRecord(new Guid()).ReturnsForAnyArgs(credRecord);
}
[Test]
public void SerializesNodeId()
{
var serializer = new CsvConnectionsSerializerMremotengFormat(new SaveFilter(), _credentialRepositoryList);
var connectionInfo = BuildConnectionInfo();
var csv = serializer.Serialize(connectionInfo);
Assert.That(csv, Does.Match(connectionInfo.ConstantID));
}
[Test]
public void DoesntSerializeTheRootNode()
{
var serializer = new CsvConnectionsSerializerMremotengFormat(new SaveFilter(), _credentialRepositoryList);
var treeModel = new ConnectionTreeModelBuilder().Build();
var csv = serializer.Serialize(treeModel);
Assert.That(csv, Does.Not.Match($"{treeModel.RootNodes[0].ConstantID};.*;{TreeNodeType.Root}"));
}
[TestCase(Username)]
[TestCase(Domain)]
[TestCase(Password)]
[TestCase("InheritColors")]
public void CreatesCsv(string valueThatShouldExist)
{
var serializer = new CsvConnectionsSerializerMremotengFormat(new SaveFilter(), _credentialRepositoryList);
var connectionInfo = BuildConnectionInfo();
var csv = serializer.Serialize(connectionInfo);
Assert.That(csv, Does.Match(valueThatShouldExist));
}
[TestCase(Username)]
[TestCase(Domain)]
[TestCase(Password)]
[TestCase("InheritColors")]
public void SerializerRespectsSaveFilterSettings(string valueThatShouldntExist)
{
var saveFilter = new SaveFilter(true);
var serializer = new CsvConnectionsSerializerMremotengFormat(saveFilter, _credentialRepositoryList);
var connectionInfo = BuildConnectionInfo();
var csv = serializer.Serialize(connectionInfo);
Assert.That(csv, Does.Not.Match(valueThatShouldntExist));
}
[Test]
public void CanSerializeEmptyConnectionInfo()
{
var serializer = new CsvConnectionsSerializerMremotengFormat(new SaveFilter(), _credentialRepositoryList);
var connectionInfo = new ConnectionInfo();
var csv = serializer.Serialize(connectionInfo);
Assert.That(csv, Is.Not.Empty);
}
[Test]
public void CantPassNullToConstructor()
{
Assert.Throws<ArgumentNullException>(() => new CsvConnectionsSerializerMremotengFormat(null, _credentialRepositoryList));
}
[Test]
public void CantPassNullToSerializeConnectionInfo()
{
var serializer = new CsvConnectionsSerializerMremotengFormat(new SaveFilter(), _credentialRepositoryList);
Assert.Throws<ArgumentNullException>(() => serializer.Serialize((ConnectionInfo)null));
}
[Test]
public void CantPassNullToSerializeConnectionTreeModel()
{
var serializer = new CsvConnectionsSerializerMremotengFormat(new SaveFilter(), _credentialRepositoryList);
Assert.Throws<ArgumentNullException>(() => serializer.Serialize((ConnectionTreeModel)null));
}
[Test]
public void FoldersAreSerialized()
{
var serializer = new CsvConnectionsSerializerMremotengFormat(new SaveFilter(), _credentialRepositoryList);
var container = BuildContainer();
var csv = serializer.Serialize(container);
Assert.That(csv, Does.Match(container.Name));
Assert.That(csv, Does.Match(container.Username));
Assert.That(csv, Does.Match(container.Domain));
Assert.That(csv, Does.Match(container.Password));
Assert.That(csv, Does.Contain(TreeNodeType.Container.ToString()));
}
[Test]
public void SerializationIncludesRawInheritedValuesIfObjectInheritsFromParentOutsideOfSerializationScope()
{
var serializer = new CsvConnectionsSerializerMremotengFormat(new SaveFilter(), _credentialRepositoryList);
var treeModel = new ConnectionTreeModelBuilder().Build();
var serializationTarget = treeModel.GetRecursiveChildList().First(info => info.Name == "folder3");
var csv = serializer.Serialize(serializationTarget);
var lineWithFolder3 = csv.Split(new[] {Environment.NewLine}, StringSplitOptions.None).First(s => s.Contains(serializationTarget.Name));
Assert.That(lineWithFolder3, Does.Contain(serializationTarget.Username));
Assert.That(lineWithFolder3, Does.Contain(serializationTarget.Domain));
Assert.That(lineWithFolder3, Does.Contain(serializationTarget.Password));
}
private ConnectionInfo BuildConnectionInfo()
{
return new ConnectionInfo
{
Name = ConnectionName,
Username = Username,
Domain = Domain,
Password = Password,
Inheritance = {Colors = true}
};
}
private ContainerInfo BuildContainer()
{
return new ContainerInfo
{
Name = "MyFolder",
Username = "BlahBlah1",
Domain = "aklkskkksh8",
Password = "qweraslkdjf87"
};
}
}
}

View File

@@ -0,0 +1,96 @@
using System;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using mRemoteNG.Config.Serializers.Xml;
using mRemoteNG.Security;
using mRemoteNG.Security.SymmetricEncryption;
using mRemoteNG.Tree;
using mRemoteNG.Tree.Root;
using mRemoteNGTests.TestHelpers;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.ConnectionSerializers.Xml
{
public class ValidateXmlSchemas
{
private XmlConnectionsSerializer _serializer;
private ConnectionTreeModel _connectionTreeModel;
private ICryptographyProvider _cryptographyProvider;
private XmlReaderSettings _xmlReaderSettings;
[SetUp]
public void Setup()
{
_connectionTreeModel = new ConnectionTreeModelBuilder().Build();
_cryptographyProvider = new AeadCryptographyProvider();
var connectionNodeSerializer = new XmlConnectionNodeSerializer26(
_cryptographyProvider,
_connectionTreeModel.RootNodes.OfType<RootNodeInfo>().First().PasswordString.ConvertToSecureString(),
new SaveFilter());
_serializer = new XmlConnectionsSerializer(_cryptographyProvider, connectionNodeSerializer);
_xmlReaderSettings = new XmlReaderSettings
{
ValidationType = ValidationType.Schema,
ValidationFlags = XmlSchemaValidationFlags.ProcessInlineSchema |
XmlSchemaValidationFlags.ProcessSchemaLocation |
XmlSchemaValidationFlags.ReportValidationWarnings
};
}
[Test]
public void ValidateSchema()
{
var sb = new StringBuilder();
var xml = _serializer.Serialize(_connectionTreeModel);
var schemaFile = GetTargetPath("mremoteng_confcons_v2_6.xsd");
_xmlReaderSettings.Schemas.Add("http://mremoteng.org", schemaFile);
_xmlReaderSettings.ValidationEventHandler += (sender, args) =>
{
sb.AppendLine($"{args.Severity}: {args.Message}");
};
using (var stream = GenerateStreamFromString(xml))
{
var reader = XmlReader.Create(stream, _xmlReaderSettings);
while (reader.Read()) ;
}
Assert.That(sb.ToString(), Is.Empty);
}
public string GetTargetPath(string fileName, [CallerFilePath] string sourceFilePath = "")
{
const string debugOrRelease =
#if DEBUG
"Debug";
#else
"Release";
#endif
const string normalOrPortable =
#if PORTABLE
" Portable";
#else
"";
#endif
var path = Path.GetDirectoryName(sourceFilePath);
var filePath = $@"{path}\..\..\..\..\bin\{debugOrRelease}{normalOrPortable}\Schemas\{fileName}";
return filePath;
}
private Stream GenerateStreamFromString(string s)
{
var stream = new MemoryStream();
var writer = new StreamWriter(stream);
writer.Write(s);
writer.Flush();
stream.Position = 0;
return stream;
}
}
}

View File

@@ -1,7 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Config.Serializers.Xml;
using mRemoteNG.Connection;
using mRemoteNG.Container;
using mRemoteNG.Security;
@@ -9,7 +9,7 @@ using mRemoteNG.Tree;
using mRemoteNGTests.Properties;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
namespace mRemoteNGTests.Config.Serializers.ConnectionSerializers.Xml
{
public class XmlConnectionsDeserializerTests
{
@@ -18,8 +18,8 @@ namespace mRemoteNGTests.Config.Serializers
public void Setup(string confCons, string password)
{
_xmlConnectionsDeserializer = new XmlConnectionsDeserializer(confCons, password.ConvertToSecureString);
_connectionTreeModel = _xmlConnectionsDeserializer.Deserialize();
_xmlConnectionsDeserializer = new XmlConnectionsDeserializer(() => password.ConvertToSecureString());
_connectionTreeModel = _xmlConnectionsDeserializer.Deserialize(confCons);
}
[TearDown]
@@ -104,6 +104,14 @@ namespace mRemoteNGTests.Config.Serializers
Assert.That(folder22.Inheritance.Username, Is.True);
}
[TestCaseSource(typeof(XmlConnectionsDeserializerFixtureData), nameof(XmlConnectionsDeserializerFixtureData.FixtureParams))]
public void ExpandedPropertyGetsDeserialized(Datagram testData)
{
Setup(testData.ConfCons, testData.Password);
var folder1 = GetFolderNamed("Folder1", _connectionTreeModel.GetRecursiveChildList());
Assert.That(folder1.IsExpanded, Is.True);
}
private bool ContainsNodeNamed(string name, IEnumerable<ConnectionInfo> list)
{
return list.Any(node => node.Name == name);

View File

@@ -1,16 +1,18 @@
using System.Xml.XPath;
using System.Linq;
using System.Xml.XPath;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Config.Serializers.Xml;
using mRemoteNG.Connection;
using mRemoteNG.Container;
using mRemoteNG.Security;
using mRemoteNG.Security.Factories;
using mRemoteNG.Tree;
using mRemoteNG.Tree.Root;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
namespace mRemoteNGTests.Config.Serializers.ConnectionSerializers.Xml
{
public class XmlConnectionsDocumentCompilerTests
public class XmlConnectionsDocumentCompilerTests
{
private XmlConnectionsDocumentCompiler _documentCompiler;
private ConnectionTreeModel _connectionTreeModel;
@@ -27,23 +29,26 @@ namespace mRemoteNGTests.Config.Serializers
[SetUp]
public void Setup()
{
_cryptographyProvider = new CryptographyProviderFactory().CreateAeadCryptographyProvider(BlockCipherEngines.AES, BlockCipherModes.GCM);
var saveFilter = new SaveFilter();
_documentCompiler = new XmlConnectionsDocumentCompiler(_cryptographyProvider, saveFilter);
_connectionTreeModel = SetupConnectionTreeModel();
_cryptographyProvider = new CryptoProviderFactory(BlockCipherEngines.AES, BlockCipherModes.GCM).Build();
var connectionNodeSerializer = new XmlConnectionNodeSerializer26(
_cryptographyProvider,
_connectionTreeModel.RootNodes.OfType<RootNodeInfo>().First().PasswordString.ConvertToSecureString(),
new SaveFilter());
_documentCompiler = new XmlConnectionsDocumentCompiler(_cryptographyProvider, connectionNodeSerializer);
}
[Test]
public void XDocumentHasXmlDeclaration()
{
var xdoc = _documentCompiler.CompileDocument(_connectionTreeModel, false, false);
var xdoc = _documentCompiler.CompileDocument(_connectionTreeModel, false);
Assert.That(xdoc.Declaration, Is.Not.Null);
}
[Test]
public void DocumentHasRootConnectionElement()
{
var xdoc =_documentCompiler.CompileDocument(_connectionTreeModel, false, false);
var xdoc =_documentCompiler.CompileDocument(_connectionTreeModel, false);
var rootElementName = xdoc.Root?.Name.LocalName;
Assert.That(rootElementName, Is.EqualTo("Connections"));
}
@@ -51,7 +56,7 @@ namespace mRemoteNGTests.Config.Serializers
[Test]
public void ConnectionNodesSerializedRecursively()
{
var xdoc = _documentCompiler.CompileDocument(_connectionTreeModel, false, false);
var xdoc = _documentCompiler.CompileDocument(_connectionTreeModel, false);
var con4 = xdoc.Root?.XPathSelectElement("Node[@Name='folder2']/Node[@Name='folder3']/Node[@Name='con4']");
Assert.That(con4, Is.Not.Null);
}
@@ -59,7 +64,7 @@ namespace mRemoteNGTests.Config.Serializers
[Test]
public void XmlContentEncryptedWhenFullFileEncryptionTurnedOn()
{
var xdoc = _documentCompiler.CompileDocument(_connectionTreeModel, true, false);
var xdoc = _documentCompiler.CompileDocument(_connectionTreeModel, true);
var rootElementValue = xdoc.Root?.Value;
Assert.That(rootElementValue, Is.Not.EqualTo(string.Empty));
}

View File

@@ -1,16 +1,18 @@
using System.Xml.Linq;
using System.Linq;
using System.Xml.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Config.Serializers.Xml;
using mRemoteNG.Connection;
using mRemoteNG.Container;
using mRemoteNG.Security;
using mRemoteNG.Security.Factories;
using mRemoteNG.Tree;
using mRemoteNG.Tree.Root;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
namespace mRemoteNGTests.Config.Serializers.ConnectionSerializers.Xml
{
public class XmlConnectionsDocumentEncryptorTests
public class XmlConnectionsDocumentEncryptorTests
{
private XmlConnectionsDocumentEncryptor _documentEncryptor;
private XDocument _originalDocument;
@@ -19,9 +21,12 @@ namespace mRemoteNGTests.Config.Serializers
public void Setup()
{
var connectionTreeModel = SetupConnectionTreeModel();
var cryptoProvider = new CryptographyProviderFactory().CreateAeadCryptographyProvider(BlockCipherEngines.AES, BlockCipherModes.GCM);
var saveFilter = new SaveFilter();
_originalDocument = new XmlConnectionsDocumentCompiler(cryptoProvider, saveFilter).CompileDocument(connectionTreeModel, false, false);
var cryptoProvider = new CryptoProviderFactory(BlockCipherEngines.AES, BlockCipherModes.GCM).Build();
var connectionNodeSerializer = new XmlConnectionNodeSerializer26(
cryptoProvider,
connectionTreeModel.RootNodes.OfType<RootNodeInfo>().First().PasswordString.ConvertToSecureString(),
new SaveFilter());
_originalDocument = new XmlConnectionsDocumentCompiler(cryptoProvider, connectionNodeSerializer).CompileDocument(connectionTreeModel, false);
_documentEncryptor = new XmlConnectionsDocumentEncryptor(cryptoProvider);
}

View File

@@ -1,6 +1,8 @@
using System.Xml;
using System.Linq;
using System.Xml;
using System.Xml.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Config.Serializers.Xml;
using mRemoteNG.Connection;
using mRemoteNG.Container;
using mRemoteNG.Security;
@@ -9,21 +11,25 @@ using mRemoteNG.Tree;
using mRemoteNG.Tree.Root;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
namespace mRemoteNGTests.Config.Serializers.ConnectionSerializers.Xml
{
public class XmlConnectionsSerializerTests
public class XmlConnectionsSerializerTests
{
private XmlConnectionsSerializer _serializer;
private ConnectionTreeModel _connectionTreeModel;
private ICryptographyProvider _cryptographyProvider;
[SetUp]
public void Setup()
{
var encryptor = new AeadCryptographyProvider();
_serializer = new XmlConnectionsSerializer(encryptor);
_connectionTreeModel = SetupConnectionTreeModel();
_cryptographyProvider = new AeadCryptographyProvider();
var connectionNodeSerializer = new XmlConnectionNodeSerializer26(
_cryptographyProvider,
_connectionTreeModel.RootNodes.OfType<RootNodeInfo>().First().PasswordString.ConvertToSecureString(),
new SaveFilter());
_serializer = new XmlConnectionsSerializer(_cryptographyProvider, connectionNodeSerializer);
}
[Test]
@@ -50,19 +56,20 @@ namespace mRemoteNGTests.Config.Serializers
[TestCase("Username", "")]
[TestCase("Domain", "")]
[TestCase("Password", "")]
[TestCase("InheritAutomaticResize", "False")]
[TestCase("InheritAutomaticResize", "false")]
public void SerializerRespectsSaveFilterSettings(string attributeName, string expectedValue)
{
_serializer.SaveFilter = new SaveFilter(true);
var connectionNodeSerializer = new XmlConnectionNodeSerializer26(
_cryptographyProvider,
_connectionTreeModel.RootNodes.OfType<RootNodeInfo>().First().PasswordString.ConvertToSecureString(),
new SaveFilter(true));
var serializer = new XmlConnectionsSerializer(_cryptographyProvider, connectionNodeSerializer);
var connectionInfo = new ConnectionInfo
{
Name = "myConnection",
Username = "somefilteredstuff",
Domain = "somefilteredstuff",
Password = "somefilteredstuff",
Inheritance = {AutomaticResize = true}
};
var serializedConnections = _serializer.Serialize(connectionInfo);
var serializedConnections = serializer.Serialize(connectionInfo);
var xdoc = XDocument.Parse(serializedConnections);
var attributeValue = xdoc.Root?.Element("Node")?.Attribute(attributeName)?.Value;
Assert.That(attributeValue, Is.EqualTo(expectedValue));

View File

@@ -2,13 +2,14 @@
using System.Collections;
using System.Xml.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Config.Serializers.Xml;
using mRemoteNG.Security;
using mRemoteNG.Security.Factories;
using mRemoteNG.Security.SymmetricEncryption;
using mRemoteNG.Tree.Root;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
namespace mRemoteNGTests.Config.Serializers.ConnectionSerializers.Xml
{
public class XmlRootNodeSerializerTests
{
@@ -39,19 +40,10 @@ namespace mRemoteNGTests.Config.Serializers
Assert.That(attributeValue, Is.EqualTo("Connections"));
}
[TestCase(true)]
[TestCase(false)]
public void ExportValueSerialized(bool export)
{
var element = _rootNodeSerializer.SerializeRootNodeInfo(_rootNodeInfo, _cryptographyProvider, export:export);
var attributeValue = element.Attribute(XName.Get("Export"))?.Value;
Assert.That(attributeValue, Is.EqualTo(export.ToString()));
}
[TestCaseSource(typeof(TestCaseSources), nameof(TestCaseSources.AllEngineAndModeCombos))]
public void EncryptionEngineSerialized(BlockCipherEngines engine, BlockCipherModes mode)
{
var cryptoProvider = new CryptographyProviderFactory().CreateAeadCryptographyProvider(engine, mode);
var cryptoProvider = new CryptoProviderFactory(engine, mode).Build();
var element = _rootNodeSerializer.SerializeRootNodeInfo(_rootNodeInfo, cryptoProvider);
var attributeValue = element.Attribute(XName.Get("EncryptionEngine"))?.Value;
Assert.That(attributeValue, Is.EqualTo(engine.ToString()));
@@ -60,7 +52,7 @@ namespace mRemoteNGTests.Config.Serializers
[TestCaseSource(typeof(TestCaseSources), nameof(TestCaseSources.AllEngineAndModeCombos))]
public void EncryptionModeSerialized(BlockCipherEngines engine, BlockCipherModes mode)
{
var cryptoProvider = new CryptographyProviderFactory().CreateAeadCryptographyProvider(engine, mode);
var cryptoProvider = new CryptoProviderFactory(engine, mode).Build();
var element = _rootNodeSerializer.SerializeRootNodeInfo(_rootNodeInfo, cryptoProvider);
var attributeValue = element.Attribute(XName.Get("BlockCipherMode"))?.Value;
Assert.That(attributeValue, Is.EqualTo(mode.ToString()));
@@ -84,7 +76,7 @@ namespace mRemoteNGTests.Config.Serializers
{
var element = _rootNodeSerializer.SerializeRootNodeInfo(_rootNodeInfo, _cryptographyProvider, fullFileEncryption);
var attributeValue = element.Attribute(XName.Get("FullFileEncryption"))?.Value;
Assert.That(attributeValue, Is.EqualTo(fullFileEncryption.ToString()));
Assert.That(bool.Parse(attributeValue), Is.EqualTo(fullFileEncryption));
}
[TestCase("", "ThisIsNotProtected")]
@@ -100,23 +92,13 @@ namespace mRemoteNGTests.Config.Serializers
Assert.That(attributeValuePlainText, Is.EqualTo(expectedPlainText));
}
[TestCase("", "ThisIsNotProtected")]
[TestCase("customPassword1", "ThisIsNotProtected")]
public void EncryptWithDefaultPasswordWhenExporting(string customPassword, string expectedPlainText)
{
_rootNodeInfo.PasswordString = customPassword;
var element = _rootNodeSerializer.SerializeRootNodeInfo(_rootNodeInfo, _cryptographyProvider, export:true);
var attributeValue = element.Attribute(XName.Get("Protected"))?.Value;
var attributeValuePlainText = _cryptographyProvider.Decrypt(attributeValue, _rootNodeInfo.DefaultPassword.ConvertToSecureString());
Assert.That(attributeValuePlainText, Is.EqualTo(expectedPlainText));
}
[Test]
public void ConfVersionSerialized()
{
var element = _rootNodeSerializer.SerializeRootNodeInfo(_rootNodeInfo, _cryptographyProvider);
var attributeValue = element.Attribute(XName.Get("ConfVersion"))?.Value;
Assert.That(attributeValue, Is.EqualTo("2.6"));
var attributeValue = element.Attribute(XName.Get("ConfVersion"))?.Value ?? "";
var versionAsNumber = double.Parse(attributeValue);
Assert.That(versionAsNumber, Is.GreaterThan(0));
}
private class TestCaseSources

View File

@@ -0,0 +1,37 @@
using System;
using mRemoteNG.Config.Serializers.CredentialProviderSerializer;
using mRemoteNG.Credential;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
{
public class CredentialProviderSerializerTests
{
private CredentialRepositoryListSerializer _credentialProviderSerializer;
[SetUp]
public void Setup()
{
_credentialProviderSerializer = new CredentialRepositoryListSerializer();
}
private ICredentialRepository InitializeMockProvider()
{
var provider = Substitute.For<ICredentialRepository>();
provider.Config.TypeName.Returns("ProviderName");
provider.Config.Id.Returns(Guid.NewGuid());
return provider;
}
[Test]
public void SerializeExists()
{
var mockProvider = InitializeMockProvider();
var providers = new[] { mockProvider };
var serializedContent = _credentialProviderSerializer.Serialize(providers);
Assert.That(serializedContent, Is.Not.Null);
}
}
}

View File

@@ -0,0 +1,51 @@
using System.Linq;
using System.Security;
using mRemoteNG.Config.Serializers.CredentialSerializer;
using mRemoteNG.Security;
using mRemoteNG.Security.SymmetricEncryption;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.CredentialSerializers
{
public class XmlCredentialPasswordDecryptorDecoratorTests
{
private XmlCredentialPasswordDecryptorDecorator _sut;
private readonly SecureString _decryptionKey = "myKey1".ConvertToSecureString();
private string _unencryptedPassword = "myPassword1";
[SetUp]
public void Setup()
{
var baseDeserializer = new XmlCredentialRecordDeserializer();
_sut = new XmlCredentialPasswordDecryptorDecorator(baseDeserializer);
}
[Test]
public void OutputedCredentialHasDecryptedPassword()
{
var xml = GenerateCredentialXml();
var output = _sut.Deserialize(xml, _decryptionKey);
Assert.That(output.First().Password.ConvertToUnsecureString(), Is.EqualTo(_unencryptedPassword));
}
[Test]
public void DecryptionThrowsExceptionWhenAuthHeaderNotFound()
{
var xml = GenerateCredentialXml(false);
Assert.Throws<EncryptionException>(() => _sut.Deserialize(xml, _decryptionKey));
}
private string GenerateCredentialXml(bool includeAuthHeader = true)
{
var cryptoProvider = new AeadCryptographyProvider();
var authHeader = includeAuthHeader ? $"Auth=\"{cryptoProvider.Encrypt("someheader", _decryptionKey)}\"" : "";
var encryptedPassword = cryptoProvider.Encrypt(_unencryptedPassword, _decryptionKey);
return
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
$"<Credentials EncryptionEngine=\"{cryptoProvider.CipherEngine}\" BlockCipherMode=\"{cryptoProvider.CipherMode}\" KdfIterations=\"{cryptoProvider.KeyDerivationIterations}\" {authHeader} SchemaVersion=\"1.0\">" +
$"<Credential Id=\"ce6b0397-d476-4ffe-884b-dbe9347a88a8\" Title=\"New Credential\" Username=\"asdfasdf\" Domain=\"\" Password=\"{encryptedPassword}\" />" +
"</Credentials>";
}
}
}

View File

@@ -0,0 +1,86 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using System.Xml.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Config.Serializers.CredentialSerializer;
using mRemoteNG.Credential;
using mRemoteNG.Security;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.CredentialSerializers
{
public class XmlCredentialPasswordEncryptorDecoratorTests
{
private XmlCredentialPasswordEncryptorDecorator _sut;
private const BlockCipherEngines CipherEngine = BlockCipherEngines.Twofish;
private const BlockCipherModes CipherMode = BlockCipherModes.EAX;
private const int KdfIterations = 2000;
private SecureString _key = "myKey1".ConvertToSecureString();
[SetUp]
public void Setup()
{
var cryptoProvider = SetupCryptoProvider();
var baseSerializer = SetupBaseSerializer();
_sut = new XmlCredentialPasswordEncryptorDecorator(cryptoProvider, baseSerializer);
}
[Test]
public void CantPassNullCredentialList()
{
Assert.Throws<ArgumentNullException>(() => _sut.Serialize(null, new SecureString()));
}
[Test]
public void EncryptsPasswordAttributesInXml()
{
var credList = Substitute.For<IEnumerable<ICredentialRecord>>();
var output = _sut.Serialize(credList, _key);
var outputAsXdoc = XDocument.Parse(output);
var firstElementPassword = outputAsXdoc.Root?.Descendants().First().FirstAttribute.Value;
Assert.That(firstElementPassword, Is.EqualTo("encrypted"));
}
[TestCase("EncryptionEngine", CipherEngine)]
[TestCase("BlockCipherMode", CipherMode)]
[TestCase("KdfIterations", KdfIterations)]
[TestCase("Auth", "encrypted")]
public void SetsRootNodeEncryptionAttributes(string attributeName, object expectedValue)
{
var credList = Substitute.For<IEnumerable<ICredentialRecord>>();
var output = _sut.Serialize(credList, _key);
var outputAsXdoc = XDocument.Parse(output);
var authField = outputAsXdoc.Root?.Attribute(attributeName)?.Value;
Assert.That(authField, Is.EqualTo(expectedValue.ToString()));
}
private ISerializer<IEnumerable<ICredentialRecord>, string> SetupBaseSerializer()
{
var baseSerializer = Substitute.For<ISerializer<IEnumerable<ICredentialRecord>, string>>();
var randomString = Guid.NewGuid().ToString();
baseSerializer.Serialize(null).ReturnsForAnyArgs(
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<Root>" +
$"<Element1 Password=\"{randomString}\" />" +
$"<Element1 Password=\"{randomString}\">" +
$"<Element1 Password=\"{randomString}\" />" +
"</Element1>" +
"</Root>");
return baseSerializer;
}
private ICryptographyProvider SetupCryptoProvider()
{
var cryptoProvider = Substitute.For<ICryptographyProvider>();
cryptoProvider.CipherEngine.Returns(CipherEngine);
cryptoProvider.CipherMode.Returns(CipherMode);
cryptoProvider.KeyDerivationIterations.Returns(KdfIterations);
cryptoProvider.Encrypt(null, null).ReturnsForAnyArgs("encrypted");
return cryptoProvider;
}
}
}

View File

@@ -0,0 +1,90 @@
using System;
using System.Linq;
using mRemoteNG.Config.Serializers.CredentialSerializer;
using mRemoteNG.Security;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.CredentialSerializers
{
public class XmlCredentialRecordDeserializerTests
{
private XmlCredentialRecordDeserializer _deserializer;
private readonly Guid _id = Guid.NewGuid();
private const string Title = "sometitle";
private const string Username = "myusername";
private const string Domain = "mydomain";
private const string PlaintextPassword = "mypassword";
[SetUp]
public void Setup()
{
_deserializer = new XmlCredentialRecordDeserializer();
}
[Test]
public void HasCorrectId()
{
var xml = GenerateXml();
var creds = _deserializer.Deserialize(xml);
Assert.That(creds.First().Id, Is.EqualTo(_id));
}
[Test]
public void HasCorrectTitle()
{
var xml = GenerateXml();
var creds = _deserializer.Deserialize(xml);
Assert.That(creds.First().Title, Is.EqualTo(Title));
}
[Test]
public void HasCorrectUsername()
{
var xml = GenerateXml();
var creds = _deserializer.Deserialize(xml);
Assert.That(creds.First().Username, Is.EqualTo(Username));
}
[Test]
public void HasCorrectDomain()
{
var xml = GenerateXml();
var creds = _deserializer.Deserialize(xml);
Assert.That(creds.First().Domain, Is.EqualTo(Domain));
}
[Test]
public void HasCorrectPassword()
{
var xml = GenerateXml();
var creds = _deserializer.Deserialize(xml);
Assert.That(creds.First().Password.ConvertToUnsecureString(), Is.EqualTo(PlaintextPassword));
}
[Test]
public void DeserializesAllCredentials()
{
var xml = GenerateXml();
var creds = _deserializer.Deserialize(xml);
Assert.That(creds.Count(), Is.EqualTo(2));
}
[Test]
public void CanDecryptNonStandardEncryptions()
{
var xml = GenerateXml(BlockCipherEngines.Serpent, BlockCipherModes.EAX, 3000);
var creds = _deserializer.Deserialize(xml);
Assert.That(creds.First().Password.ConvertToUnsecureString(), Is.EqualTo(PlaintextPassword));
}
private string GenerateXml(BlockCipherEngines engine = BlockCipherEngines.AES, BlockCipherModes mode = BlockCipherModes.GCM, int interations = 1000)
{
return $"<Credentials EncryptionEngine=\"{engine}\" BlockCipherMode=\"{mode}\" KdfIterations=\"{interations}\" SchemaVersion=\"1.0\">" +
$"<Credential Id=\"{_id}\" Title=\"{Title}\" Username=\"{Username}\" Domain=\"{Domain}\" Password=\"{PlaintextPassword}\" />" +
$"<Credential Id=\"{Guid.NewGuid()}\" Title=\"{Title}\" Username=\"{Username}\" Domain=\"{Domain}\" Password=\"{PlaintextPassword}\" />" +
"</Credentials>";
}
}
}

View File

@@ -0,0 +1,47 @@
using System.Linq;
using System.Xml.Linq;
using mRemoteNG.Config.Serializers.CredentialSerializer;
using mRemoteNG.Credential;
using mRemoteNG.Security;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.CredentialSerializers
{
public class XmlCredentialSerializerTests
{
private XmlCredentialRecordSerializer _serializer;
private ICredentialRecord _cred1;
[SetUp]
public void Setup()
{
_serializer = new XmlCredentialRecordSerializer();
_cred1 = new CredentialRecord { Title = "testcred", Username = "davids", Domain = "mydomain", Password = "mypass".ConvertToSecureString() };
}
[Test]
public void ProducesValidXml()
{
var serialized = _serializer.Serialize(new[] { _cred1 });
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
Assert.DoesNotThrow(() => XDocument.Parse(serialized));
}
[Test]
public void AllCredentialsSerialized()
{
var cred2 = new CredentialRecord { Title = "testcred2", Username = "admin", Domain = "otherdomain", Password = "somepass".ConvertToSecureString() };
var serialized = _serializer.Serialize(new[] { _cred1, cred2 });
var serializedCount = XDocument.Parse(serialized).Descendants("Credential").Count();
Assert.That(serializedCount, Is.EqualTo(2));
}
[Test]
public void IncludesSchemaVersionParameter()
{
var serialized = _serializer.Serialize(new[] { _cred1 });
var xdoc = XDocument.Parse(serialized);
Assert.That(xdoc.Root?.Attribute("SchemaVersion")?.Value, Is.EqualTo(_serializer.SchemaVersion));
}
}
}

View File

@@ -0,0 +1,57 @@
using System.Data;
using System.Security;
using mRemoteNG.Config.Serializers.MsSql;
using mRemoteNG.Connection;
using mRemoteNG.Security;
using mRemoteNG.Security.SymmetricEncryption;
using mRemoteNG.Tree;
using mRemoteNGTests.TestHelpers;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
{
public class DataTableDeserializerTests
{
private DataTableDeserializer _deserializer;
private ICryptographyProvider _cryptographyProvider;
[SetUp]
public void Setup()
{
_cryptographyProvider = new LegacyRijndaelCryptographyProvider();
}
[Test]
public void WeCanDeserializeATree()
{
var model = CreateConnectionTreeModel();
var dataTable = CreateDataTable(model.RootNodes[0]);
_deserializer = new DataTableDeserializer(_cryptographyProvider, new SecureString());
var output = _deserializer.Deserialize(dataTable);
Assert.That(output.GetRecursiveChildList().Count, Is.EqualTo(model.GetRecursiveChildList().Count));
}
[Test]
public void WeCanDeserializeASingleEntry()
{
var dataTable = CreateDataTable(new ConnectionInfo());
_deserializer = new DataTableDeserializer(_cryptographyProvider, new SecureString());
var output = _deserializer.Deserialize(dataTable);
Assert.That(output.GetRecursiveChildList().Count, Is.EqualTo(1));
}
private DataTable CreateDataTable(ConnectionInfo tableContent)
{
var serializer = new DataTableSerializer(new SaveFilter(), _cryptographyProvider, new SecureString());
return serializer.Serialize(tableContent);
}
private ConnectionTreeModel CreateConnectionTreeModel()
{
var builder = new ConnectionTreeModelBuilder();
return builder.Build();
}
}
}

View File

@@ -1,9 +1,15 @@
using mRemoteNG.Config.Serializers;
using System.Linq;
using System.Security;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Config.Serializers.MsSql;
using mRemoteNG.Connection;
using mRemoteNG.Container;
using mRemoteNG.Security;
using mRemoteNG.Security.SymmetricEncryption;
using mRemoteNG.Tree;
using mRemoteNG.Tree.Root;
using mRemoteNGTests.TestHelpers;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
@@ -17,14 +23,10 @@ namespace mRemoteNGTests.Config.Serializers
public void Setup()
{
_saveFilter = new SaveFilter();
_dataTableSerializer = new DataTableSerializer(_saveFilter);
}
[TearDown]
public void Teardown()
{
_saveFilter = null;
_dataTableSerializer = null;
_dataTableSerializer = new DataTableSerializer(
_saveFilter,
new LegacyRijndaelCryptographyProvider(),
new SecureString());
}
[Test]
@@ -32,7 +34,15 @@ namespace mRemoteNGTests.Config.Serializers
{
var model = CreateConnectionTreeModel();
var dataTable = _dataTableSerializer.Serialize(model);
Assert.That(dataTable.Rows.Count, Is.EqualTo(3));
Assert.That(dataTable.Rows.Count, Is.EqualTo(model.GetRecursiveChildList().Count()));
}
[Test]
public void ReturnsEmptyDataTableWhenGivenEmptyConnectionTreeModel()
{
var model = new ConnectionTreeModel();
var dataTable = _dataTableSerializer.Serialize(model);
Assert.That(dataTable.Rows.Count, Is.EqualTo(0));
}
[Test]
@@ -109,20 +119,18 @@ namespace mRemoteNGTests.Config.Serializers
Assert.That(dataTable.Rows[0]["InheritUsername"], Is.False);
}
[Test]
public void CanSerializeEmptyConnectionInfo()
{
var dataTable = _dataTableSerializer.Serialize(new ConnectionInfo());
Assert.That(dataTable.Rows.Count, Is.EqualTo(1));
}
private ConnectionTreeModel CreateConnectionTreeModel()
{
var model = new ConnectionTreeModel();
var root = new RootNodeInfo(RootNodeType.Connection);
var folder1 = new ContainerInfo {Name = "folder1", Username = "user1", Domain = "domain1", Password = "password1"};
var con1 = new ConnectionInfo {Name = "Con1", Username = "user1", Domain = "domain1", Password = "password1" };
var con2 = new ConnectionInfo {Name = "Con2", Username = "user2", Domain = "domain2", Password = "password2" };
root.AddChild(folder1);
root.AddChild(con2);
folder1.AddChild(con1);
model.AddRootNode(root);
return model;
var builder = new ConnectionTreeModelBuilder();
return builder.Build();
}
}
}

View File

@@ -5,8 +5,7 @@ using mRemoteNG.Connection.Protocol;
using mRemoteNG.Tools;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
namespace mRemoteNGTests.Config.Serializers.MiscSerializers
{
public class PortScanDeserializerTests
{
@@ -24,11 +23,10 @@ namespace mRemoteNGTests.Config.Serializers
var host = new ScanHost("10.20.30.40")
{
HostName = "server1.domain.com",
SSH = true
Ssh = true
};
_deserializer = new PortScanDeserializer(new [] {host}, ProtocolType.SSH2);
_deserializer.Deserialize();
var connectionTreeModel = _deserializer.Deserialize();
_deserializer = new PortScanDeserializer(ProtocolType.SSH2);
var connectionTreeModel = _deserializer.Deserialize(new[] { host });
var root = connectionTreeModel.RootNodes.First();
_importedConnectionInfo = root.Children.First();
}

View File

@@ -6,8 +6,7 @@ using mRemoteNG.Container;
using mRemoteNGTests.Properties;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
namespace mRemoteNGTests.Config.Serializers.MiscSerializers
{
public class PuttyConnectionManagerDeserializerTests
{
@@ -28,8 +27,8 @@ namespace mRemoteNGTests.Config.Serializers
public void OnetimeSetup()
{
var fileContents = Resources.test_puttyConnectionManager_database;
_deserializer = new PuttyConnectionManagerDeserializer(fileContents);
var connectionTreeModel = _deserializer.Deserialize();
_deserializer = new PuttyConnectionManagerDeserializer();
var connectionTreeModel = _deserializer.Deserialize(fileContents);
var rootNode = connectionTreeModel.RootNodes.First();
_rootImportedFolder = rootNode.Children.Cast<ContainerInfo>().First();
}

View File

@@ -1,5 +1,4 @@
using System;
using System.Linq;
using System.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Connection;
using mRemoteNG.Connection.Protocol.RDP;
@@ -7,13 +6,11 @@ using mRemoteNG.Tree;
using mRemoteNGTests.Properties;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
namespace mRemoteNGTests.Config.Serializers.MiscSerializers
{
public class RemoteDesktopConnectionDeserializerTests
{
// .rdp file schema: https://technet.microsoft.com/en-us/library/ff393699(v=ws.10).aspx
private string[] _connectionFileContents;
private RemoteDesktopConnectionDeserializer _deserializer;
private ConnectionTreeModel _connectionTreeModel;
private const string ExpectedHostname = "testhostname.domain.com";
@@ -21,9 +18,9 @@ namespace mRemoteNGTests.Config.Serializers
private const string ExpectedDomain = "myspecialdomain";
private const string ExpectedGatewayHostname = "gatewayhostname.domain.com";
private const int ExpectedPort = 9933;
private const ProtocolRDP.RDPColors ExpectedColors = ProtocolRDP.RDPColors.Colors24Bit;
private const RdpProtocol.RDPColors ExpectedColors = RdpProtocol.RDPColors.Colors24Bit;
private const bool ExpectedBitmapCaching = false;
private const ProtocolRDP.RDPResolutions ExpectedResolutionMode = ProtocolRDP.RDPResolutions.FitToWindow;
private const RdpProtocol.RDPResolutions ExpectedResolutionMode = RdpProtocol.RDPResolutions.FitToWindow;
private const bool ExpectedWallpaperDisplay = true;
private const bool ExpectedThemesDisplay = true;
private const bool ExpectedFontSmoothing = true;
@@ -32,21 +29,15 @@ namespace mRemoteNGTests.Config.Serializers
private const bool ExpectedDriveRedirection = true;
private const bool ExpectedPortRedirection = true;
private const bool ExpectedPrinterRedirection = true;
private const ProtocolRDP.RDPSounds ExpectedSoundRedirection = ProtocolRDP.RDPSounds.BringToThisComputer;
private const RdpProtocol.RDPSounds ExpectedSoundRedirection = RdpProtocol.RDPSounds.BringToThisComputer;
[OneTimeSetUp]
public void OnetimeSetup()
{
_connectionFileContents = Resources.test_remotedesktopconnection_rdp.Split(Environment.NewLine.ToCharArray());
_deserializer = new RemoteDesktopConnectionDeserializer(_connectionFileContents);
_connectionTreeModel = _deserializer.Deserialize();
}
[OneTimeTearDown]
public void OnetimeTeardown()
{
_deserializer = null;
var connectionFileContents = Resources.test_remotedesktopconnection_rdp;
_deserializer = new RemoteDesktopConnectionDeserializer();
_connectionTreeModel = _deserializer.Deserialize(connectionFileContents);
}
[Test]

View File

@@ -0,0 +1,198 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Connection;
using mRemoteNG.Connection.Protocol;
using mRemoteNG.Connection.Protocol.RDP;
using mRemoteNG.Container;
using mRemoteNGTests.Properties;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.MiscSerializers
{
public class RemoteDesktopConnectionManager27DeserializerTests
{
private string _connectionFileContents;
private RemoteDesktopConnectionManagerDeserializer _deserializer;
private const string ExpectedName = "server1_displayname";
private const string ExpectedHostname = "server1";
private const string ExpectedDescription = "Comment text here";
private const string ExpectedUsername = "myusername1";
private const string ExpectedDomain = "mydomain";
private const string ExpectedPassword = "passwordHere!";
private const bool ExpectedUseConsoleSession = true;
private const int ExpectedPort = 9933;
private const RdpProtocol.RDGatewayUsageMethod ExpectedGatewayUsageMethod = RdpProtocol.RDGatewayUsageMethod.Always;
private const string ExpectedGatewayHostname = "gatewayserverhost.innerdomain.net";
private const string ExpectedGatewayUsername = "gatewayusername";
private const string ExpectedGatewayDomain = "innerdomain";
private const string ExpectedGatewayPassword = "gatewayPassword123";
private const RdpProtocol.RDPResolutions ExpectedRdpResolution = RdpProtocol.RDPResolutions.FitToWindow;
private const RdpProtocol.RDPColors ExpectedRdpColorDepth = RdpProtocol.RDPColors.Colors24Bit;
private const RdpProtocol.RDPSounds ExpectedAudioRedirection = RdpProtocol.RDPSounds.DoNotPlay;
private const bool ExpectedKeyRedirection = true;
private const bool ExpectedSmartcardRedirection = true;
private const bool ExpectedDriveRedirection = true;
private const bool ExpectedPortRedirection = true;
private const bool ExpectedPrinterRedirection = true;
private const RdpProtocol.AuthenticationLevel ExpectedAuthLevel = RdpProtocol.AuthenticationLevel.WarnOnFailedAuth;
[OneTimeSetUp]
public void OnetimeSetup()
{
_connectionFileContents = Resources.test_rdcman_v2_7_schema3;
_deserializer = new RemoteDesktopConnectionManagerDeserializer();
}
[Test]
public void ConnectionTreeModelHasARootNode()
{
var connectionTreeModel = _deserializer.Deserialize(_connectionFileContents);
var numberOfRootNodes = connectionTreeModel.RootNodes.Count;
Assert.That(numberOfRootNodes, Is.GreaterThan(0));
}
[Test]
public void RootNodeHasContents()
{
var connectionTreeModel = _deserializer.Deserialize(_connectionFileContents);
var rootNodeContents = connectionTreeModel.RootNodes.First().Children;
Assert.That(rootNodeContents, Is.Not.Empty);
}
[Test]
public void AllSubRootFoldersImported()
{
var connectionTreeModel = _deserializer.Deserialize(_connectionFileContents);
var rootNode = connectionTreeModel.RootNodes.First();
var importedRdcmanRootNode = rootNode.Children.OfType<ContainerInfo>().First();
var rootNodeContents = importedRdcmanRootNode.Children.Count(node => node.Name == "Group1" || node.Name == "Group2");
Assert.That(rootNodeContents, Is.EqualTo(2));
}
[TestCaseSource(nameof(ExpectedPropertyValues))]
public void PropertiesWithValuesAreCorrectlyImported(Func<ConnectionInfo, object> propSelector, object expectedValue)
{
var connectionTreeModel = _deserializer.Deserialize(_connectionFileContents);
var connection = connectionTreeModel
.GetRecursiveChildList()
.OfType<ContainerInfo>()
.First(node => node.Name == "Group1")
.Children
.First();
Assert.That(propSelector(connection), Is.EqualTo(expectedValue));
}
[TestCaseSource(nameof(NullPropertyValues))]
public void PropertiesWithoutValuesAreIgnored(Func<ConnectionInfo, object> propSelector)
{
var connectionTreeModel = _deserializer.Deserialize(Resources.test_rdcman_v2_7_schema3_empty_values);
var importedConnection = connectionTreeModel
.GetRecursiveChildList()
.OfType<ContainerInfo>()
.First(node => node.Name == "Group1")
.Children
.First();
Assert.That(propSelector(importedConnection), Is.EqualTo(propSelector(new ConnectionInfo())));
}
[TestCaseSource(nameof(NullPropertyValues))]
public void NonExistantPropertiesAreIgnored(Func<ConnectionInfo, object> propSelector)
{
var connectionTreeModel = _deserializer.Deserialize(Resources.test_rdcman_v2_7_schema3_null_values);
var importedConnection = connectionTreeModel
.GetRecursiveChildList()
.OfType<ContainerInfo>()
.First(node => node.Name == "Group1")
.Children
.First();
Assert.That(propSelector(importedConnection), Is.EqualTo(propSelector(new ConnectionInfo())));
}
[Test]
public void ExceptionThrownOnBadSchemaVersion()
{
var badFileContents = Resources.test_rdcman_v2_2_badschemaversion;
Assert.That(() => _deserializer.Deserialize(badFileContents), Throws.TypeOf<FileFormatException>());
}
[Test]
public void ExceptionThrownOnUnsupportedVersion()
{
var badFileContents = Resources.test_rdcman_badVersionNumber;
Assert.That(() => _deserializer.Deserialize(badFileContents), Throws.TypeOf<FileFormatException>());
}
[Test]
public void ExceptionThrownOnNoVersion()
{
var badFileContents = Resources.test_rdcman_noversion;
Assert.That(() => _deserializer.Deserialize(badFileContents), Throws.TypeOf<FileFormatException>());
}
private static IEnumerable<TestCaseData> ExpectedPropertyValues()
{
return new[]
{
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Name), ExpectedName).SetName(nameof(ConnectionInfo.Name)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Hostname), ExpectedHostname).SetName(nameof(ConnectionInfo.Hostname)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Description), ExpectedDescription).SetName(nameof(ConnectionInfo.Description)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Username), ExpectedUsername).SetName(nameof(ConnectionInfo.Username)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Domain), ExpectedDomain).SetName(nameof(ConnectionInfo.Domain)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Protocol), ProtocolType.RDP).SetName(nameof(ConnectionInfo.Protocol)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.UseConsoleSession), ExpectedUseConsoleSession).SetName(nameof(ConnectionInfo.UseConsoleSession)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Port), ExpectedPort).SetName(nameof(ConnectionInfo.Port)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDGatewayUsageMethod), ExpectedGatewayUsageMethod).SetName(nameof(ConnectionInfo.RDGatewayUsageMethod)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDGatewayHostname), ExpectedGatewayHostname).SetName(nameof(ConnectionInfo.RDGatewayHostname)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDGatewayUsername), ExpectedGatewayUsername).SetName(nameof(ConnectionInfo.RDGatewayUsername)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDGatewayDomain), ExpectedGatewayDomain).SetName(nameof(ConnectionInfo.RDGatewayDomain)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Resolution), ExpectedRdpResolution).SetName(nameof(ConnectionInfo.Resolution)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Colors), ExpectedRdpColorDepth).SetName(nameof(ConnectionInfo.Colors)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectSound), ExpectedAudioRedirection).SetName(nameof(ConnectionInfo.RedirectSound)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectKeys), ExpectedKeyRedirection).SetName(nameof(ConnectionInfo.RedirectKeys)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDPAuthenticationLevel), ExpectedAuthLevel).SetName(nameof(ConnectionInfo.RDPAuthenticationLevel)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectSmartCards), ExpectedSmartcardRedirection).SetName(nameof(ConnectionInfo.RedirectSmartCards)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectPrinters), ExpectedPrinterRedirection).SetName(nameof(ConnectionInfo.RedirectPrinters)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectPorts), ExpectedPortRedirection).SetName(nameof(ConnectionInfo.RedirectPorts)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectDiskDrives), ExpectedDriveRedirection).SetName(nameof(ConnectionInfo.RedirectDiskDrives)),
};
}
private static IEnumerable<TestCaseData> NullPropertyValues()
{
return new[]
{
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Name)).SetName(nameof(ConnectionInfo.Name)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Hostname)).SetName(nameof(ConnectionInfo.Hostname)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Description)).SetName(nameof(ConnectionInfo.Description)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Username)).SetName(nameof(ConnectionInfo.Username)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Domain)).SetName(nameof(ConnectionInfo.Domain)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Protocol)).SetName(nameof(ConnectionInfo.Protocol)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.UseConsoleSession)).SetName(nameof(ConnectionInfo.UseConsoleSession)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Port)).SetName(nameof(ConnectionInfo.Port)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDGatewayUsageMethod)).SetName(nameof(ConnectionInfo.RDGatewayUsageMethod)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDGatewayHostname)).SetName(nameof(ConnectionInfo.RDGatewayHostname)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDGatewayUsername)).SetName(nameof(ConnectionInfo.RDGatewayUsername)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDGatewayDomain)).SetName(nameof(ConnectionInfo.RDGatewayDomain)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Resolution)).SetName(nameof(ConnectionInfo.Resolution)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.Colors)).SetName(nameof(ConnectionInfo.Colors)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectSound)).SetName(nameof(ConnectionInfo.RedirectSound)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectKeys)).SetName(nameof(ConnectionInfo.RedirectKeys)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RDPAuthenticationLevel)).SetName(nameof(ConnectionInfo.RDPAuthenticationLevel)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectSmartCards)).SetName(nameof(ConnectionInfo.RedirectSmartCards)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectPrinters)).SetName(nameof(ConnectionInfo.RedirectPrinters)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectPorts)).SetName(nameof(ConnectionInfo.RedirectPorts)),
new TestCaseData((Func<ConnectionInfo,object>)(con => con.RedirectDiskDrives)).SetName(nameof(ConnectionInfo.RedirectDiskDrives)),
};
}
}
}

View File

@@ -1,4 +1,5 @@
using System.Linq;
using System.IO;
using System.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Connection.Protocol;
using mRemoteNG.Connection.Protocol.RDP;
@@ -6,9 +7,8 @@ using mRemoteNG.Container;
using mRemoteNG.Tree;
using mRemoteNGTests.Properties;
using NUnit.Framework;
using System.IO;
namespace mRemoteNGTests.Config.Serializers
namespace mRemoteNGTests.Config.Serializers.MiscSerializers
{
public class RemoteDesktopConnectionManagerDeserializerTests
{
@@ -23,34 +23,28 @@ namespace mRemoteNGTests.Config.Serializers
private const string ExpectedPassword = "passwordHere!";
private const bool ExpectedUseConsoleSession = true;
private const int ExpectedPort = 9933;
private const ProtocolRDP.RDGatewayUsageMethod ExpectedGatewayUsageMethod = ProtocolRDP.RDGatewayUsageMethod.Always;
private const RdpProtocol.RDGatewayUsageMethod ExpectedGatewayUsageMethod = RdpProtocol.RDGatewayUsageMethod.Always;
private const string ExpectedGatewayHostname = "gatewayserverhost.innerdomain.net";
private const string ExpectedGatewayUsername = "gatewayusername";
private const string ExpectedGatewayDomain = "innerdomain";
private const string ExpectedGatewayPassword = "gatewayPassword123";
private const ProtocolRDP.RDPResolutions ExpectedRdpResolution = ProtocolRDP.RDPResolutions.FitToWindow;
private const ProtocolRDP.RDPColors ExpectedRdpColorDepth = ProtocolRDP.RDPColors.Colors24Bit;
private const ProtocolRDP.RDPSounds ExpectedAudioRedirection = ProtocolRDP.RDPSounds.DoNotPlay;
private const RdpProtocol.RDPResolutions ExpectedRdpResolution = RdpProtocol.RDPResolutions.FitToWindow;
private const RdpProtocol.RDPColors ExpectedRdpColorDepth = RdpProtocol.RDPColors.Colors24Bit;
private const RdpProtocol.RDPSounds ExpectedAudioRedirection = RdpProtocol.RDPSounds.DoNotPlay;
private const bool ExpectedKeyRedirection = true;
private const bool ExpectedSmartcardRedirection = true;
private const bool ExpectedDriveRedirection = true;
private const bool ExpectedPortRedirection = true;
private const bool ExpectedPrinterRedirection = true;
private const ProtocolRDP.AuthenticationLevel ExpectedAuthLevel = ProtocolRDP.AuthenticationLevel.AuthRequired;
private const RdpProtocol.AuthenticationLevel ExpectedAuthLevel = RdpProtocol.AuthenticationLevel.AuthRequired;
[OneTimeSetUp]
public void OnetimeSetup()
{
_connectionFileContents = Resources.test_rdcman_v2_2_schema1;
_deserializer = new RemoteDesktopConnectionManagerDeserializer(_connectionFileContents);
_connectionTreeModel = _deserializer.Deserialize();
}
[OneTimeTearDown]
public void OnetimeTeardown()
{
_deserializer = null;
_deserializer = new RemoteDesktopConnectionManagerDeserializer();
_connectionTreeModel = _deserializer.Deserialize(_connectionFileContents);
}
[Test]
@@ -312,24 +306,21 @@ namespace mRemoteNGTests.Config.Serializers
public void ExceptionThrownOnBadSchemaVersion()
{
var badFileContents = Resources.test_rdcman_v2_2_badschemaversion;
var deserializer = new RemoteDesktopConnectionManagerDeserializer(badFileContents);
Assert.That(() => deserializer.Deserialize(), Throws.TypeOf<FileFormatException>());
Assert.That(() => _deserializer.Deserialize(badFileContents), Throws.TypeOf<FileFormatException>());
}
[Test]
public void ExceptionThrownOnUnsupportedVersion()
{
var badFileContents = Resources.test_rdcman_badVersionNumber;
var deserializer = new RemoteDesktopConnectionManagerDeserializer(badFileContents);
Assert.That(() => deserializer.Deserialize(), Throws.TypeOf<FileFormatException>());
Assert.That(() => _deserializer.Deserialize(badFileContents), Throws.TypeOf<FileFormatException>());
}
[Test]
public void ExceptionThrownOnNoVersion()
{
var badFileContents = Resources.test_rdcman_noversion;
var deserializer = new RemoteDesktopConnectionManagerDeserializer(badFileContents);
Assert.That(() => deserializer.Deserialize(), Throws.TypeOf<FileFormatException>());
Assert.That(() => _deserializer.Deserialize(badFileContents), Throws.TypeOf<FileFormatException>());
}
}
}

View File

@@ -0,0 +1,28 @@
using System;
using mRemoteNG.Config.DatabaseConnectors;
using mRemoteNG.Config.Serializers.Versioning;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.Versioning
{
public class SqlVersion22To23UpgraderTests
{
private SqlVersion22To23Upgrader _versionUpgrader;
[SetUp]
public void Setup()
{
var sqlConnector = Substitute.For<SqlDatabaseConnector>("", "", "", "");
_versionUpgrader = new SqlVersion22To23Upgrader(sqlConnector);
}
[Test]
public void CanUpgradeIfVersionIs22()
{
var currentVersion = new Version(2, 2);
var canUpgrade = _versionUpgrader.CanUpgrade(currentVersion);
Assert.That(canUpgrade, Is.True);
}
}
}

View File

@@ -0,0 +1,28 @@
using System;
using mRemoteNG.Config.DatabaseConnectors;
using mRemoteNG.Config.Serializers.Versioning;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.Versioning
{
public class SqlVersion23To24UpgraderTests
{
private SqlVersion23To24Upgrader _versionUpgrader;
[SetUp]
public void Setup()
{
var sqlConnector = Substitute.For<SqlDatabaseConnector>("", "", "", "");
_versionUpgrader = new SqlVersion23To24Upgrader(sqlConnector);
}
[Test]
public void CanUpgradeIfVersionIs23()
{
var currentVersion = new Version(2, 3);
var canUpgrade = _versionUpgrader.CanUpgrade(currentVersion);
Assert.That(canUpgrade, Is.True);
}
}
}

View File

@@ -0,0 +1,28 @@
using System;
using mRemoteNG.Config.DatabaseConnectors;
using mRemoteNG.Config.Serializers.Versioning;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.Versioning
{
public class SqlVersion24To25UpgraderTests
{
private SqlVersion24To25Upgrader _versionUpgrader;
[SetUp]
public void Setup()
{
var sqlConnector = Substitute.For<SqlDatabaseConnector>("", "", "", "");
_versionUpgrader = new SqlVersion24To25Upgrader(sqlConnector);
}
[Test]
public void CanUpgradeIfVersionIs24()
{
var currentVersion = new Version(2, 4);
var canUpgrade = _versionUpgrader.CanUpgrade(currentVersion);
Assert.That(canUpgrade, Is.True);
}
}
}

View File

@@ -0,0 +1,28 @@
using System;
using mRemoteNG.Config.DatabaseConnectors;
using mRemoteNG.Config.Serializers.Versioning;
using NSubstitute;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers.Versioning
{
public class SqlVersion25To26UpgraderTests
{
private SqlVersion25To26Upgrader _versionUpgrader;
[SetUp]
public void Setup()
{
var sqlConnector = Substitute.For<SqlDatabaseConnector>("", "", "", "");
_versionUpgrader = new SqlVersion25To26Upgrader(sqlConnector);
}
[Test]
public void CanUpgradeIfVersionIs25()
{
var currentVersion = new Version(2, 5);
var canUpgrade = _versionUpgrader.CanUpgrade(currentVersion);
Assert.That(canUpgrade, Is.True);
}
}
}

View File

@@ -1,254 +0,0 @@
using System.Collections;
using System.Xml.Linq;
using mRemoteNG.Config.Serializers;
using mRemoteNG.Connection;
using mRemoteNG.Container;
using mRemoteNG.Security;
using NUnit.Framework;
namespace mRemoteNGTests.Config.Serializers
{
public class XmlConnectionNodeSerializerTests
{
private XmlConnectionNodeSerializer _connectionNodeSerializer;
private ICryptographyProvider _cryptographyProvider;
[SetUp]
public void Setup()
{
_cryptographyProvider = new CryptographyProviderFactory().CreateAeadCryptographyProvider(
BlockCipherEngines.AES, BlockCipherModes.GCM);
_connectionNodeSerializer = new XmlConnectionNodeSerializer(_cryptographyProvider, "myPassword1".ConvertToSecureString(), new SaveFilter());
}
[Test]
public void ReturnsXElement()
{
var returnVal = _connectionNodeSerializer.SerializeConnectionInfo(new ConnectionInfo());
Assert.That(returnVal, Is.TypeOf<XElement>());
}
[TestCaseSource(typeof(TestCaseDataSource), nameof(TestCaseDataSource.AttributesAndExpectedValues))]
public void XmlElementContainsSerializedAttribute(string attributeName, string expectedValue, ConnectionInfo connectionInfo)
{
var returnVal = _connectionNodeSerializer.SerializeConnectionInfo(connectionInfo);
var targetAttribute = returnVal.Attribute(XName.Get(attributeName));
Assert.That(targetAttribute?.Value, Is.EqualTo(expectedValue));
}
[TestCaseSource(typeof(TestCaseDataSource), nameof(TestCaseDataSource.PasswordAttributes))]
public void PasswordFieldsAreSerialized(string attributeName, ConnectionInfo connectionInfo)
{
var returnVal = _connectionNodeSerializer.SerializeConnectionInfo(connectionInfo);
var targetAttribute = returnVal.Attribute(XName.Get(attributeName));
Assert.That(targetAttribute?.Value, Is.Not.Empty);
}
[TestCaseSource(typeof(TestCaseDataSource), nameof(TestCaseDataSource.SaveFilterTests))]
public void AttributesNotSerializedWhenFiltered(string attributeName, ConnectionInfo connectionInfo)
{
var saveFilter = new SaveFilter(true);
_connectionNodeSerializer = new XmlConnectionNodeSerializer(_cryptographyProvider, "myPassword1".ConvertToSecureString(), saveFilter);
var returnVal = _connectionNodeSerializer.SerializeConnectionInfo(connectionInfo);
var targetAttribute = returnVal.Attribute(XName.Get(attributeName));
Assert.That(targetAttribute?.Value, Is.EqualTo(string.Empty));
}
[TestCaseSource(typeof(TestCaseDataSource), nameof(TestCaseDataSource.InheritanceFilterTests))]
public void InheritanceNotSerialiedWhenFiltered(string attributeName, ConnectionInfo connectionInfo)
{
var saveFilter = new SaveFilter(true);
_connectionNodeSerializer = new XmlConnectionNodeSerializer(_cryptographyProvider, "myPassword1".ConvertToSecureString(), saveFilter);
var returnVal = _connectionNodeSerializer.SerializeConnectionInfo(connectionInfo);
var targetAttribute = returnVal.Attribute(XName.Get(attributeName));
Assert.That(targetAttribute?.Value, Is.EqualTo(false.ToString()));
}
private class TestCaseDataSource
{
private static readonly ConnectionInfo ConnectionInfo = new ConnectionInfo
{
Name = "HeresACustomName",
Description = "myDescription",
Username = "myuser",
Domain = "superdomain",
Password = "pass",
Hostname = "somehost",
ExtApp = "myextapp",
PreExtApp = "preext1",
PostExtApp = "postext1",
MacAddress = "asdf-asdf-asdf-asdf23423",
LoadBalanceInfo = "loadbalanceinfohere",
RDGatewayUsername = "gatewayuser",
RDGatewayDomain = "somegatewaydomain",
RDGatewayHostname = "somegatewayhost",
RDGatewayPassword = "gatewaypass",
UserField = "userfield data here",
VNCProxyIP = "192.168.1.1",
VNCProxyUsername = "vncproxyuser",
VNCProxyPassword = "vncproxypass",
};
private static readonly ConnectionInfo ConnectionInfoWithInheritance = new ConnectionInfo
{
Inheritance = {EverythingInherited = true}
};
private static readonly ContainerInfo ContainerInfo = new ContainerInfo();
public static IEnumerable SaveFilterTests
{
get
{
yield return new TestCaseData("Username", ConnectionInfo);
yield return new TestCaseData("Domain", ConnectionInfo);
yield return new TestCaseData("Password", ConnectionInfo);
yield return new TestCaseData("RDGatewayUsername", ConnectionInfo);
yield return new TestCaseData("RDGatewayDomain", ConnectionInfo);
yield return new TestCaseData("RDGatewayPassword", ConnectionInfo);
yield return new TestCaseData("VNCProxyUsername", ConnectionInfo);
yield return new TestCaseData("VNCProxyPassword", ConnectionInfo);
}
}
public static IEnumerable InheritanceFilterTests
{
get
{
yield return new TestCaseData("InheritUsername", ConnectionInfoWithInheritance);
yield return new TestCaseData("InheritDomain", ConnectionInfoWithInheritance);
yield return new TestCaseData("InheritPassword", ConnectionInfoWithInheritance);
yield return new TestCaseData("InheritRDGatewayUsername", ConnectionInfoWithInheritance);
yield return new TestCaseData("InheritRDGatewayDomain", ConnectionInfoWithInheritance);
yield return new TestCaseData("InheritRDGatewayPassword", ConnectionInfoWithInheritance);
yield return new TestCaseData("InheritVNCProxyUsername", ConnectionInfoWithInheritance);
yield return new TestCaseData("InheritVNCProxyPassword", ConnectionInfoWithInheritance);
}
}
public static IEnumerable PasswordAttributes
{
get
{
yield return new TestCaseData("Password", ConnectionInfo);
yield return new TestCaseData("VNCProxyPassword", ConnectionInfo);
yield return new TestCaseData("RDGatewayPassword", ConnectionInfo);
}
}
public static IEnumerable AttributesAndExpectedValues
{
get
{
yield return new TestCaseData("Name", ConnectionInfo.Name, ConnectionInfo);
yield return new TestCaseData("Type", "Connection", ConnectionInfo);
yield return new TestCaseData("Type", "Container", ContainerInfo);
yield return new TestCaseData("Expanded", ContainerInfo.IsExpanded.ToString(), ContainerInfo);
yield return new TestCaseData("Descr", ConnectionInfo.Description, ConnectionInfo);
yield return new TestCaseData("Icon", ConnectionInfo.Icon, ConnectionInfo);
yield return new TestCaseData("Panel", "General", ConnectionInfo);
yield return new TestCaseData("Username", ConnectionInfo.Username, ConnectionInfo);
yield return new TestCaseData("Domain", ConnectionInfo.Domain, ConnectionInfo);
yield return new TestCaseData("Hostname", ConnectionInfo.Hostname, ConnectionInfo);
yield return new TestCaseData("Protocol", "RDP", ConnectionInfo);
yield return new TestCaseData("PuttySession", ConnectionInfo.PuttySession, ConnectionInfo);
yield return new TestCaseData("Port", ConnectionInfo.Port.ToString(), ConnectionInfo);
yield return new TestCaseData("ConnectToConsole", ConnectionInfo.UseConsoleSession.ToString(), ConnectionInfo);
yield return new TestCaseData("UseCredSsp", ConnectionInfo.UseCredSsp.ToString(), ConnectionInfo);
yield return new TestCaseData("RenderingEngine", ConnectionInfo.RenderingEngine.ToString(), ConnectionInfo);
yield return new TestCaseData("ICAEncryptionStrength", ConnectionInfo.ICAEncryptionStrength.ToString(), ConnectionInfo);
yield return new TestCaseData("RDPAuthenticationLevel", ConnectionInfo.RDPAuthenticationLevel.ToString(), ConnectionInfo);
yield return new TestCaseData("LoadBalanceInfo", ConnectionInfo.LoadBalanceInfo, ConnectionInfo);
yield return new TestCaseData("Colors", ConnectionInfo.Colors.ToString(), ConnectionInfo);
yield return new TestCaseData("Resolution", ConnectionInfo.Resolution.ToString(), ConnectionInfo);
yield return new TestCaseData("AutomaticResize", ConnectionInfo.AutomaticResize.ToString(), ConnectionInfo);
yield return new TestCaseData("DisplayWallpaper", ConnectionInfo.DisplayWallpaper.ToString(), ConnectionInfo);
yield return new TestCaseData("DisplayThemes", ConnectionInfo.DisplayThemes.ToString(), ConnectionInfo);
yield return new TestCaseData("EnableFontSmoothing", ConnectionInfo.EnableFontSmoothing.ToString(), ConnectionInfo);
yield return new TestCaseData("EnableDesktopComposition", ConnectionInfo.EnableDesktopComposition.ToString(), ConnectionInfo);
yield return new TestCaseData("CacheBitmaps", ConnectionInfo.CacheBitmaps.ToString(), ConnectionInfo);
yield return new TestCaseData("RedirectDiskDrives", ConnectionInfo.RedirectDiskDrives.ToString(), ConnectionInfo);
yield return new TestCaseData("RedirectPorts", ConnectionInfo.RedirectPorts.ToString(), ConnectionInfo);
yield return new TestCaseData("RedirectPrinters", ConnectionInfo.RedirectPrinters.ToString(), ConnectionInfo);
yield return new TestCaseData("RedirectSmartCards", ConnectionInfo.RedirectSmartCards.ToString(), ConnectionInfo);
yield return new TestCaseData("RedirectSound", ConnectionInfo.RedirectSound.ToString(), ConnectionInfo);
yield return new TestCaseData("RedirectKeys", ConnectionInfo.RedirectKeys.ToString(), ConnectionInfo);
yield return new TestCaseData("Connected", false.ToString(), ConnectionInfo);
yield return new TestCaseData("PreExtApp", ConnectionInfo.PreExtApp, ConnectionInfo);
yield return new TestCaseData("PostExtApp", ConnectionInfo.PostExtApp, ConnectionInfo);
yield return new TestCaseData("MacAddress", ConnectionInfo.MacAddress, ConnectionInfo);
yield return new TestCaseData("UserField", ConnectionInfo.UserField, ConnectionInfo);
yield return new TestCaseData("ExtApp", ConnectionInfo.ExtApp, ConnectionInfo);
yield return new TestCaseData("VNCCompression", ConnectionInfo.VNCCompression.ToString(), ConnectionInfo);
yield return new TestCaseData("VNCEncoding", ConnectionInfo.VNCEncoding.ToString(), ConnectionInfo);
yield return new TestCaseData("VNCAuthMode", ConnectionInfo.VNCAuthMode.ToString(), ConnectionInfo);
yield return new TestCaseData("VNCProxyType", ConnectionInfo.VNCProxyType.ToString(), ConnectionInfo);
yield return new TestCaseData("VNCProxyIP", ConnectionInfo.VNCProxyIP, ConnectionInfo);
yield return new TestCaseData("VNCProxyPort", ConnectionInfo.VNCProxyPort.ToString(), ConnectionInfo);
yield return new TestCaseData("VNCProxyUsername", ConnectionInfo.VNCProxyUsername, ConnectionInfo);
yield return new TestCaseData("VNCColors", ConnectionInfo.VNCColors.ToString(), ConnectionInfo);
yield return new TestCaseData("VNCSmartSizeMode", ConnectionInfo.VNCSmartSizeMode.ToString(), ConnectionInfo);
yield return new TestCaseData("VNCViewOnly", ConnectionInfo.VNCViewOnly.ToString(), ConnectionInfo);
yield return new TestCaseData("RDGatewayUsageMethod", ConnectionInfo.RDGatewayUsageMethod.ToString(), ConnectionInfo);
yield return new TestCaseData("RDGatewayHostname", ConnectionInfo.RDGatewayHostname, ConnectionInfo);
yield return new TestCaseData("RDGatewayUseConnectionCredentials", ConnectionInfo.RDGatewayUseConnectionCredentials.ToString(), ConnectionInfo);
yield return new TestCaseData("RDGatewayUsername", ConnectionInfo.RDGatewayUsername, ConnectionInfo);
yield return new TestCaseData("RDGatewayDomain", ConnectionInfo.RDGatewayDomain, ConnectionInfo);
yield return new TestCaseData("InheritCacheBitmaps", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritColors", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritDescription", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritDisplayThemes", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritDisplayWallpaper", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritEnableFontSmoothing", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritEnableDesktopComposition", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritDomain", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritIcon", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritPanel", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritPassword", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritPort", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritProtocol", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritPuttySession", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRedirectDiskDrives", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRedirectKeys", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRedirectPorts", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRedirectPrinters", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRedirectSmartCards", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRedirectSound", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritSoundQuality", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritResolution", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritAutomaticResize", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritUseConsoleSession", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritUseCredSsp", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRenderingEngine", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritUsername", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritICAEncryptionStrength", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRDPAuthenticationLevel", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritLoadBalanceInfo", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritPreExtApp", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritPostExtApp", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritMacAddress", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritUserField", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritExtApp", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCCompression", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCEncoding", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCAuthMode", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCProxyType", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCProxyIP", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCProxyPort", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCProxyUsername", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCProxyPassword", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCColors", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCSmartSizeMode", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritVNCViewOnly", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRDGatewayUsageMethod", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRDGatewayHostname", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRDGatewayUseConnectionCredentials", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRDGatewayUsername", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRDGatewayPassword", false.ToString(), ConnectionInfo);
yield return new TestCaseData("InheritRDGatewayDomain", false.ToString(), ConnectionInfo);
}
}
}
}
}

View File

@@ -0,0 +1,35 @@
using System;
using System.Xml.Linq;
using mRemoteNG.Config.Settings;
using NUnit.Framework;
using WeifenLuo.WinFormsUI.Docking;
namespace mRemoteNGTests.Config.Settings
{
public class DockPanelSerializerTests
{
private DockPanelLayoutSerializer _dockPanelLayoutSerializer;
private DockPanel _dockPanel;
[SetUp]
public void Setup()
{
_dockPanelLayoutSerializer = new DockPanelLayoutSerializer();
_dockPanel = new DockPanel();
}
[Test]
public void SerializerProducesValidDockPanelXml()
{
var serializedData = _dockPanelLayoutSerializer.Serialize(_dockPanel);
var serializedDataAsXDoc = XDocument.Parse(serializedData);
Assert.That(serializedDataAsXDoc.Root?.Name.ToString(), Is.EqualTo("DockPanel"));
}
[Test]
public void CantProvideNullDockPanel()
{
Assert.Throws<ArgumentNullException>(() => _dockPanelLayoutSerializer.Serialize(null));
}
}
}

View File

@@ -1,4 +1,5 @@
using mRemoteNG.Connection;
using System;
using mRemoteNG.Connection;
using mRemoteNG.Connection.Protocol;
using mRemoteNG.Connection.Protocol.Http;
using mRemoteNG.Connection.Protocol.ICA;
@@ -9,9 +10,15 @@ using NUnit.Framework;
namespace mRemoteNGTests.Connection
{
public class AbstractConnectionInfoDataTests
public class AbstractConnectionInfoDataTests
{
private class TestAbstractConnectionInfoData : AbstractConnectionInfoData {}
#pragma warning disable 618
private class TestAbstractConnectionInfoData : AbstractConnectionRecord {
public TestAbstractConnectionInfoData() : base(Guid.NewGuid().ToString())
{
}
}
#pragma warning restore 618
private TestAbstractConnectionInfoData _testAbstractConnectionInfoData;
[SetUp]
@@ -140,7 +147,7 @@ namespace mRemoteNGTests.Connection
{
var wasCalled = false;
_testAbstractConnectionInfoData.PropertyChanged += (sender, args) => wasCalled = true;
_testAbstractConnectionInfoData.ICAEncryptionStrength = ProtocolICA.EncryptionStrength.Encr128BitLogonOnly;
_testAbstractConnectionInfoData.ICAEncryptionStrength = IcaProtocol.EncryptionStrength.Encr128BitLogonOnly;
Assert.That(wasCalled, Is.True);
}
@@ -158,7 +165,7 @@ namespace mRemoteNGTests.Connection
{
var wasCalled = false;
_testAbstractConnectionInfoData.PropertyChanged += (sender, args) => wasCalled = true;
_testAbstractConnectionInfoData.RDPAuthenticationLevel = ProtocolRDP.AuthenticationLevel.AuthRequired;
_testAbstractConnectionInfoData.RDPAuthenticationLevel = RdpProtocol.AuthenticationLevel.AuthRequired;
Assert.That(wasCalled, Is.True);
}
@@ -194,7 +201,7 @@ namespace mRemoteNGTests.Connection
{
var wasCalled = false;
_testAbstractConnectionInfoData.PropertyChanged += (sender, args) => wasCalled = true;
_testAbstractConnectionInfoData.RDGatewayUsageMethod = ProtocolRDP.RDGatewayUsageMethod.Always;
_testAbstractConnectionInfoData.RDGatewayUsageMethod = RdpProtocol.RDGatewayUsageMethod.Always;
Assert.That(wasCalled, Is.True);
}
@@ -212,7 +219,7 @@ namespace mRemoteNGTests.Connection
{
var wasCalled = false;
_testAbstractConnectionInfoData.PropertyChanged += (sender, args) => wasCalled = true;
_testAbstractConnectionInfoData.RDGatewayUseConnectionCredentials = ProtocolRDP.RDGatewayUseConnectionCredentials.SmartCard;
_testAbstractConnectionInfoData.RDGatewayUseConnectionCredentials = RdpProtocol.RDGatewayUseConnectionCredentials.SmartCard;
Assert.That(wasCalled, Is.True);
}
@@ -248,7 +255,7 @@ namespace mRemoteNGTests.Connection
{
var wasCalled = false;
_testAbstractConnectionInfoData.PropertyChanged += (sender, args) => wasCalled = true;
_testAbstractConnectionInfoData.Resolution = ProtocolRDP.RDPResolutions.Res1366x768;
_testAbstractConnectionInfoData.Resolution = RdpProtocol.RDPResolutions.Res1366x768;
Assert.That(wasCalled, Is.True);
}
@@ -266,7 +273,7 @@ namespace mRemoteNGTests.Connection
{
var wasCalled = false;
_testAbstractConnectionInfoData.PropertyChanged += (sender, args) => wasCalled = true;
_testAbstractConnectionInfoData.Colors = ProtocolRDP.RDPColors.Colors16Bit;
_testAbstractConnectionInfoData.Colors = RdpProtocol.RDPColors.Colors16Bit;
Assert.That(wasCalled, Is.True);
}
@@ -365,7 +372,7 @@ namespace mRemoteNGTests.Connection
{
var wasCalled = false;
_testAbstractConnectionInfoData.PropertyChanged += (sender, args) => wasCalled = true;
_testAbstractConnectionInfoData.RedirectSound = ProtocolRDP.RDPSounds.DoNotPlay;
_testAbstractConnectionInfoData.RedirectSound = RdpProtocol.RDPSounds.DoNotPlay;
Assert.That(wasCalled, Is.True);
}

View File

@@ -1,8 +1,9 @@
using mRemoteNG.Connection;
using mRemoteNG.Container;
using NUnit.Framework;
using System.Reflection;
using System.Collections;
using System.Linq;
using System.Reflection;
namespace mRemoteNGTests.Connection
{
@@ -74,6 +75,22 @@ namespace mRemoteNGTests.Connection
Assert.That(hasEverythingInheritedProperty, Is.False);
}
[Test]
public void AlwaysReturnInheritedValueIfRequested()
{
var expectedSetting = false;
var container = new ContainerInfo { AutomaticResize = expectedSetting };
var con1 = new ConnectionInfo
{
AutomaticResize = true,
Inheritance = {AutomaticResize = true}
};
container.AddChild(con1);
Assert.That(con1.AutomaticResize, Is.EqualTo(expectedSetting));
}
private bool AllInheritancePropertiesAreTrue()
{
var allPropertiesTrue = true;

Some files were not shown because too many files have changed in this diff Show More