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

FSTrigger Polling not working because of SecurityException

      Polling from a slave does not seem to work anymore because of a SecurityException (Probably JEP-200).

      ...

      Polling remotely on BuildSlave

      Trying to monitor the folder '//server/builds/libs'
      [ERROR] - Polling error...
      [ERROR] - Error message: java.io.IOException: remote file operation failed: C:\jenkins at hudson.remoting.Channel@ffce84:JNLP4-connect connection from atfkjb01/10.10.250.142:3413: java.io.IOException: Failed to deserialize response to UserRequest:org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger$1@57dea97f: java.lang.SecurityException: Rejected: org.jenkinsci.lib.xtrigger.AbstractTrigger; see https://jenkins.io/redirect/class-filter/
      [ERROR] - Error cause: remote file operation failed: C:\jenkins at hudson.remoting.Channel@ffce84:JNLP4-connect connection from atfkjb01/10.10.250.142:3413: java.io.IOException: Failed to deserialize response to UserRequest:org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger$1@57dea97f: java.lang.SecurityException: Rejected: org.jenkinsci.lib.xtrigger.AbstractTrigger; see https://jenkins.io/redirect/class-filter/

          [JENKINS-51211] FSTrigger Polling not working because of SecurityException

          Oleg Nenashev added a comment -

          I confirm the issue. Ideally XTrigger Lib should be refactored to the plugin so that the classes get whitelisted automatically. CC colmelvin who was considering taking ownership of the lib.

          I will add the issue to https://wiki.jenkins.io/display/JENKINS/Plugins+affected+by+fix+for+JEP-200, but I have no plans to work on it so far

          Oleg Nenashev added a comment - I confirm the issue. Ideally XTrigger Lib should be refactored to the plugin so that the classes get whitelisted automatically. CC colmelvin who was considering taking ownership of the lib. I will add the issue to https://wiki.jenkins.io/display/JENKINS/Plugins+affected+by+fix+for+JEP-200 , but I have no plans to work on it so far

          Eduard Albach added a comment -

          Is there a workaround for this problem?

          Eduard Albach added a comment - Is there a workaround for this problem?

          Oleg Nenashev added a comment -

          Not that I know of. Somebody has to fix the plugin

           

          Oleg Nenashev added a comment - Not that I know of. Somebody has to fix the plugin  

          Andy chu added a comment - - edited

          according to this post

          https://jenkins.io/blog/2018/03/15/jep-200-lts/#applying-workarounds

          You can "work around" the issue by providing the following JAVA opts and restart you Jenkins

          -Dhudson.remoting.ClassFilter=org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger,

          org.jenkinsci.lib.xtrigger.AbstractTrigger

           

          I try it on Plugin 0.39 and it seem to work for me. Hope this help

          Andy chu added a comment - - edited according to this post https://jenkins.io/blog/2018/03/15/jep-200-lts/#applying-workarounds You can "work around" the issue by providing the following JAVA opts and restart you Jenkins -Dhudson.remoting.ClassFilter=org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger, org.jenkinsci.lib.xtrigger.AbstractTrigger   I try it on Plugin 0.39 and it seem to work for me. Hope this help

            Unassigned Unassigned
            chris_mh3 chris_mh3
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: