SenseNet / sn-admin

Upgrade and package executor tool for sensenet.
https://sensenet.com
GNU General Public License v2.0
0 stars 2 forks source link

Incorrect encoding when a parameter ends with a backslash #8

Closed tusmester closed 3 years ago

tusmester commented 7 years ago

The following SnAdmin parameter list results in an incorrectly interpreted param list:

SnAdmin.exe export source:/Root/IMS target:c:\temp\

Note the backslash at the end of the target path. The problem is that SnAdmin puts a quote around the parameter value and passes it over to the SnAdminRuntime tool as a command line argument. It will become this:

target:"c:\temp\"

The result is that SnAdminRuntime receives an incorrect argument (and all arguments after the wrong one will be missing) - so this problem needs to be fixed here, in SnAdmin.

Current workaround is to remove the backslash - which is OK in case of a path, but there can be a different type of parameter where that character is mandatory.

Note: using a manual quote around the target parameter does not work either, so that cannot be a workaround.

tusmester commented 3 years ago

closed as obsolete