Script contents should URL quoted

Bug #1605075 reported by Victor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Jenkins
Fix Committed
Undecided
Unassigned

Bug Description

    def run_script(self, script):
        return self.jenkins_open(Request(self._build_url(SCRIPT_TEXT),
                                         "script=".encode('utf-8') + script.encode('utf-8')))

If script contains '&' symbol, the server receives split strings -- garbage.
The code should be URL quoted in the URL.

Revision history for this message
Khai Do (zaro0508) wrote :

I believe this is fixed with change https://review.openstack.org/#/c/407479/

Changed in python-jenkins:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.