Good day!I have recently upgraded to 1.7.4 our review server and after solving the issue I am writing about I must admit there's a bunch of changes I love! Great work!Now back to the issue.We are using an old and buggy (especially in respect to mod_wsgi, see: http://stackoverflow.com/a/8310359/15165 / http://bugs.python.org/issue13156) version of Python. Why? It is actually a case of not having enough time to spend on re-installing RB on newer Python. The problem was with the subprocess.Popen which did not work well in clearcase module (stdout/err were empty). On 1.6.4 everything worked fine so I've checked the difference and it appears that removing the Shell option from the Popen invocations fixed the issue on 1.7.4. I have not created a patch for this change but it is rather straightforward. I believe the Popen calls do not require running the commands through a shell. I wonder if Jan K. could comment on that and check if it is possible to remove this. It would make future upgrades less painful for me and people who are stuck on that buggy version of Python.Regards,Bart--
---
You received this message because you are subscribed to the Google Groups "reviewboard-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi everyone,
I'm found such issue (popen +shell=true) on ubuntu 12.04 python 2.7.3
When I look at python 2.x or 3.x documentation, it is writtenIf passing a single string, either shell must be True (see below) or else the string must simply name the program to be executed without specifying any arguments.http://docs.python.org/2/library/subprocess.html#frequently-used-arguments
http://docs.python.org/3/library/subprocess.html#frequently-used-arguments
So shell=true is more a workaround for windows 7 system only because all calls to popen are using multiple string
Could this change be reverted please until someone propose a conditionnal to enable sheel=true only for windows7 ?
I have no windows 7 to test but some conditionnals proposed here can do this job
http://stackoverflow.com/questions/196930/how-to-check-if-os-is-vista-in-python
best regards,
Nicolas
I've not tested this fix in clearcase context but Windows 7 and python 2.7.3 + a test script and check conditionnals were rights
Does this answer match your question?
Nicolas