Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52740

RejectedAccessException for java.net.URL openConnection without posibility to approve

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • script-security-plugin
    • None
    • Jenkins 2.89.2
      Script Security 1.3.9

      We configured the pipeline to be executed after checking it out from scm, in this case we don't see a posibility to approve the whole script. 

      Exception:

      Job failed with: org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method java.net.URL openConnection

      In the list of methods to approve, this method is not shown. (see screenshot) I read some other issues showing the same behaviour, but I did not find a workaround. Any thoughts on why this can occur?

            abayer Andrew Bayer
            carsten_hilber Carsten Hilber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: