build error when MicrosoftAppPassword contains a '|' symbol #7994
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
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.
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.
The text was updated successfully, but these errors were encountered: