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

FSTrigger Polling not working because of SecurityException

    XMLWordPrintable

Details

    Description

      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/

      Attachments

        Issue Links

          Activity

            chris_mh3 chris_mh3 created issue -
            chris_mh3 chris_mh3 made changes -
            Field Original Value New Value
            Description 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@692f8122: 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@692f8122: java.lang.SecurityException: Rejected: org.jenkinsci.lib.xtrigger.AbstractTrigger; see }}{{[https://jenkins.io/redirect/class-filter/]}}
            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@692f8122: 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@692f8122: java.lang.SecurityException: Rejected: org.jenkinsci.lib.xtrigger.AbstractTrigger; see }}\{\{[https://jenkins.io/redirect/class-filter/]}}
            chris_mh3 chris_mh3 made changes -
            Description 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@692f8122: 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@692f8122: java.lang.SecurityException: Rejected: org.jenkinsci.lib.xtrigger.AbstractTrigger; see }}\{\{[https://jenkins.io/redirect/class-filter/]}}
            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/
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Gregory Boissinot [ gbois ]
            oleg_nenashev 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 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 Oleg Nenashev made changes -
            Labels JEP-200 JEP-200 xtrigger-lib
            oleg_nenashev Oleg Nenashev made changes -
            Component/s xtrigger-plugin [ 15907 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue blocks JENKINS-51728 [ JENKINS-51728 ]
            edu1989 Eduard Albach added a comment -

            Is there a workaround for this problem?

            edu1989 Eduard Albach added a comment - Is there a workaround for this problem?
            oleg_nenashev Oleg Nenashev added a comment -

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

             

            oleg_nenashev Oleg Nenashev added a comment - Not that I know of. Somebody has to fix the plugin  
            achu 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

            achu 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

            People

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

              Dates

                Created:
                Updated: