← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1605075] [NEW] Script contents should URL quoted

 

Public bug reported:

    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.

** Affects: python-jenkins
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Python
Jenkins Developers, which is subscribed to Python Jenkins.
https://bugs.launchpad.net/bugs/1605075

Title:
  Script contents should URL quoted

Status in Python Jenkins:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1605075/+subscriptions


Follow ups