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

build error when MicrosoftAppPassword contains a '|' symbol #7994

Closed
bolleman opened this issue Jun 2, 2021 · 1 comment
Closed

build error when MicrosoftAppPassword contains a '|' symbol #7994

bolleman opened this issue Jun 2, 2021 · 1 comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. Type: Bug Something isn't working

Comments

@bolleman
Copy link

bolleman commented Jun 2, 2021

Describe the bug

Error occurred building the bot

Message:
Command failed: func settings add MicrosoftAppPassword WRh=@BqPlb0D:wvchm]u!y|H%JI
'H%JI' is not recognized as an internal or external command,
operable program or batch file.
Command:
func settings add MicrosoftAppPassword WRh=@BqPlb0D:wvchm]u!y|H%JI
Stack Trace:
Error: Command failed: func settings add MicrosoftAppPassword WRh=@BqPlb0D:wvchm]u!y|H%JI
'H%JI' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

Output:
Killed:
Code:
255
Stderr:
'H%JI' is not recognized as an internal or external command,
operable program or batch file.

Version

Version: 2.0.0
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0

Browser

Electron distribution

OS

Windows10

To Reproduce

Add MicrosoftAppID and MicrosoftAppPassword to a bot and restart. Build fails with error message above. Based on the specifics of the error notification, I tried simply deleting the '|' character from the AppPassword and it builds fine. Of course, this generates a 401 Unauthorized as you would expect. This AD app registration was originally created during the creation of an Azure Bot instance. This could just be coincidence, but when I created another Azure Bot instance with an automatically generated app registration it also generated another password containing a '|', which threw the same error. However, when I create the AD app and client secret / app password separately, the passwords don't have this symbol, and accordingly work fine.

Expected behavior

No error.

@bolleman bolleman added Needs-triage A new issue that require triage Type: Bug Something isn't working labels Jun 2, 2021
@v-kydela v-kydela added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Required for internal Azure reporting. Do not delete. labels Jun 3, 2021
@tonyanziano
Copy link
Contributor

Hello @bolleman ,

Thanks for reporting the issue. This has already been fixed via #7938 and should be available in the latest nightly release of Composer

@tonyanziano tonyanziano added customer-replied-to Required for internal reporting. Do not delete. and removed Needs-triage A new issue that require triage labels Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants