aimtool icon indicating copy to clipboard operation
aimtool copied to clipboard

ArgumentNullException on short deployment-env

Open eduardomb08 opened this issue 3 years ago • 1 comments

Description

I got some errors because of names too long for resources and tried to shorten them by using "D" as deployment-env. As a result I got an ArgumentNullException (see stacktrace below).

Environment and tool versions

  • AIM Tool Version (aim --version): 0.5.1-beta.2020102844785

  • Windows Version (systeminfo): Win10

  • Shell: Powershell

  • Shell Version ($PSVersionTable | bash --version):

    PSVersion                      7.1.3
    PSEdition                      Core
    GitCommitId                    7.1.3
    OS                             Microsoft Windows 10.0.18363
    Platform                       Win32NT
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
    PSRemotingProtocolVersion      2.3
    SerializationVersion           1.1.0.1
    WSManStackVersion              3.0
    

Repro steps

run the tool using options like:

aim migrate -a "microsoft.biztalk.msidiscoverer.msidir=..\msi" --deployment-env d -v

Expected result

Either success or a more descriptive error message stating any restrictions for the deployment-env parameter.

Current result

ArgumentNullException

image

eduardomb08 avatar Jul 08 '21 18:07 eduardomb08

Thanks, @eduardomb08. The environment names map to an enum (Dev or Prod) so specifying "D" will fail - however, you should definitely get a better error message than that.

We'll get it fixed.

probertdaniel avatar Jul 20 '21 19:07 probertdaniel