Botframework-solutions: [Botskills] wrap path with quotes

Created on 9 Jul 2020  路  6Comments  路  Source: microsoft/botframework-solutions

What project is affected?

Botskills

What language is this in?

Typescript

What happens?

Not all parameters are wrapped with quotes

Like here https://github.com/microsoft/botframework-solutions/blob/96db93b187d838e978d6502827bf8f92169ee28f/tools/botskills/src/functionality/connectSkill.ts#L124, https://github.com/microsoft/botframework-solutions/blob/96db93b187d838e978d6502827bf8f92169ee28f/tools/botskills/src/functionality/refreshSkill.ts#L96 etc.

What are the steps to reproduce this issue?

See this https://github.com/microsoft/botframework-skills/issues/279

What were you expecting to happen?

Can you share any logs, error output, etc.?

Any screenshots or additional context?

Kobuk bug in-progress stale

All 6 comments

Thanks @xieofxie for reporting this issue. We will be reviewing it and as soon as we have any update we will back to you 馃槉.

Hi @xieofxie - sorry for the delay.

We successfully reproduced the mentioned scenario using a path with whitespaces on it. We will be analyzing the solution for the issue and back to you later 馃槉.

image

Hi @xieofxie - we created the PR #3587 fixing this issue.

You can validate the changes following these steps:

  1. Checkout to the branch southworks:feature/southworks/fix-path-botskills-error
  2. Go to the botskills tool
  3. Execute npm install to install the depedencies
  4. Execute npm run build to compile the solution
  5. Execute npm link to link the tool. If you have installed botskills, you should execute npm uninstall -g botskills to uninstall the tool.
  6. Check that the values are wrapped between quotes using the botskills' commands

We will be attentive to your answer 馃槉!

@xieofxie - we successfully wrapped the values with quotes in the bf luis:convert and bf luis:generate commands too. After these changes, we confirmed that if any argument's values contains whitespaces, the tool will correctly work. You can see the new changes in the PR #3587.

Also, we identified that if we wrap the values with quotes in the dispatch add and dispatch refresh commands, botskills fails, so we can't update the mentioned runCommand.

Finally, you can validate the changes following the mentioned repro steps.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VladPapacostea-SM picture VladPapacostea-SM  路  3Comments

elaine-chang picture elaine-chang  路  4Comments

igor17400 picture igor17400  路  4Comments

lauren-mills picture lauren-mills  路  4Comments

darrenj picture darrenj  路  3Comments