DevExpress / DevExpress/testcafe-browser-provider-electron

appArgs inside Configuration file doesn't allow whitespaces ( ) or quotation marks (")

Open
#111 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

STATE: Need clarification
Dominant language
JavaScript
Stars
48
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm trying to use app arguments for my executable electron application but I'm having 2 issues.

  1. If an argument contains a white space, it would automatically add quotation marks around the argument:
{
    "mainWindowUrl": "./index.html",
    "appArgs": ["--test:1"]
}
vs
{
    "mainWindowUrl": "./index.html",
    "appArgs": ["--test: 1"]
}

Here is the app's arguments in Task Manager:
image
vs
image

  1. Quotation marks aren't escaped properly and breaks escape characters:
{
    "mainWindowUrl": "./index.html",
    "appArgs": ["--location=C:\\"]
}
vs
{
    "mainWindowUrl": "./index.html",
    "appArgs": ["--location=\"C:\\\""]
}

image
vs
image

Thank you very much for your time.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Electron provider's appArgs handling with an argument containing a space and another containing escaped quotation marks and backslashes. Trace how these arguments are passed to the executable; done means whitespace, quotation marks, and escape characters arrive unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript, node.js
Domain
desktop, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.