Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentNullException on short deployment-env #22

Open
eduardomb08 opened this issue Jul 8, 2021 · 1 comment
Open

ArgumentNullException on short deployment-env #22

eduardomb08 opened this issue Jul 8, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@eduardomb08
Copy link

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

@probertdaniel probertdaniel added the bug Something isn't working label Jul 20, 2021
@probertdaniel
Copy link
Collaborator

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 probertdaniel self-assigned this Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants