Fix xvfb-run failure when environment variables with spaces exist#249
Conversation
|
damn, same thing. Debug containers do not work. |
|
this is only Mac specific, and can be easily circumvented by specifying some options.
|
|
@ddavison Thank you for the reference to the specific issue with NO_PROXY, I'm glad to hear that it's being addressed by the Docker team. This isn't a pull request to fix an issue with using Docker on Mac, it's to fix a bug when someone passes an environment variable with one or more spaces in it. Passing environment variables sanely and correctly to the Selenium runtime environment is important when using it as a key component to your build infrastructure. |
|
try and specify the |
|
Apologies, I meant to include it: |
|
ok, seems also that this is a little out of date.. could you rebase please and push back up? hard to tell what's actually changing here 👍 |
10dbd5c to
c0e3a6b
Compare
|
Done @ddavison. |
|
I was just about to send out a similar PR, hope this gets in soon! |
|
Still relevant! For non-standalone version as well. |
|
Tried this on the node-chrome-debug and this fixes the issues there as well. |
|
@ddavison Is this PR a chance of being merged soon? I just ran into the same whitespace issue. |
|
The issue seems to be reproducible with macOS Sierra and not reproducible with El Capitan. |
|
@finspin I've seen it on El Capitan too. |
|
merged in! working on releasing 3.2.0-actinium as we speak |
|
Is this fix also needed in NodeChromeDebug/entry_point.sh and NodeFirefoxDebug/entry_point.sh? I'm having a problem running those nodes on Docker Swarm with SE_OPTS="-host xxx -port yyy". This adds an env variable value with spaces and causes xvfb-run to fail. |
|
@yamamoo See this comment: #227 (comment) |
Description
There is a bug in the StandaloneDebug
entry_point.shthat, when encountering an environment variable with a space in it's value, causes thexvfb-run ...step to fail. This is due to how the command inlines environment variables found in the root user's environment that are not present in the seluser's environment into thexvfb-run ...step.Notes
xvfb-run ...How to reproduce
After adding an environment variable with a space, ie:
NO_PROXY="*.local, 10.254/16"to mydocker run, the error is immediately reproducible:Testing