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

"Publish over FTP" plugin with version 1.9 does'nt work after Jenkins upgrade to Version 1.504

      I upgraded my Jenkins to Version 1.504, afer that "Publish over FTP" plugin with version 1.9 does'nt work. Suspecting Is it the issue after Jenkins upgrade or else issue is with the plugin.

      Please kindly investigate on "publish over ftp" plug-in with version 1.9.

      Thanks..

          [JENKINS-17165] "Publish over FTP" plugin with version 1.9 does'nt work after Jenkins upgrade to Version 1.504

          bap added a comment -

          It looks like the xstream upgrade in 1.504 has caused the issue. Until the compatability is resolved, you must use an earlier version of Jenkins

          bap added a comment - It looks like the xstream upgrade in 1.504 has caused the issue. Until the compatability is resolved, you must use an earlier version of Jenkins

          I updated from Jenkins 1.497 to Jenkins 1.510. Now the only not working plugin is the "Publish over FTP"-plugin. The configuration is lost after restart of Jenkins.
          How can we speedup the Bugfixing? Do you need some more support?

          Alexander Fischer added a comment - I updated from Jenkins 1.497 to Jenkins 1.510. Now the only not working plugin is the "Publish over FTP"-plugin. The configuration is lost after restart of Jenkins. How can we speedup the Bugfixing? Do you need some more support?

          Alexander Fischer added a comment - - edited

          I have resolved the problem for Publish-Over-FTP (I'm sure, the solution for Publish-Over-SSH is the same).
          You have to override the method readResolve() in all inherited classes, for Publish-Over-FTP this are:

          • BapFtpHostConfiguration
          • BapFtpPublisherPlugin$Descriptor

          The reason is, that the reflection-mechanism looks for the method readResolve() in the inherited class (see above) and after this in the base-class. The reflection-invoke of the method fails, if the method is declared in the base-class and call over the derived class.
          Can I check in the patched classes on GitHub?

          Alexander Fischer added a comment - - edited I have resolved the problem for Publish-Over-FTP (I'm sure, the solution for Publish-Over-SSH is the same). You have to override the method readResolve() in all inherited classes, for Publish-Over-FTP this are: BapFtpHostConfiguration BapFtpPublisherPlugin$Descriptor The reason is, that the reflection-mechanism looks for the method readResolve() in the inherited class (see above) and after this in the base-class. The reflection-invoke of the method fails, if the method is declared in the base-class and call over the derived class. Can I check in the patched classes on GitHub?

          I have added a complete patched version of the plugins "publish-over" (base) and "publish-over-ftp" on GitHub:

          Can you test it?

          Alexander Fischer added a comment - I have added a complete patched version of the plugins "publish-over" (base) and "publish-over-ftp" on GitHub: https://github.com/afischer211/publish-over-plugin https://github.com/afischer211/publish-over-ftp-plugin Can you test it?

          Ramesh Pasham added a comment -

          Hi Alexander,
          I have installed the publish-over-ftp-plugin on jenkins 1.510 which is generated with your latest sources. It is working fine.
          Thanks for fixing the issue.

          Ramesh Pasham added a comment - Hi Alexander, I have installed the publish-over-ftp-plugin on jenkins 1.510 which is generated with your latest sources. It is working fine. Thanks for fixing the issue.

          bap added a comment -

          Can everyone with this problem please provide their os, version including architecture and the full details of the JVM that the jenkins master is using?

          bap added a comment - Can everyone with this problem please provide their os, version including architecture and the full details of the JVM that the jenkins master is using?

          Ramesh Pasham added a comment - - edited

          HI bap,
          Previously we had this issue but alexander's fix it got solved.
          And for your requirement our jenkins-master info
          os Red Hat Enterprise Linux Server release 6.2 (Santiago)
          Kernel \r on an \m
          java version "1.7.0"

          Ramesh Pasham added a comment - - edited HI bap, Previously we had this issue but alexander's fix it got solved. And for your requirement our jenkins-master info os Red Hat Enterprise Linux Server release 6.2 (Santiago) Kernel \r on an \m java version "1.7.0"

          Hello bap,

          I have the problem with our productive environment: Jenkins 1.510 under CentOS5.x (64bit) with Java 1.6.0_25 (64bit).
          With a MS-Windows-testinstallation all seems to work with your old version, but the JUnit-tests have some problems...

          With my patched version the plugin is working again under the productive environment and the unit-tests are ok under MS-Windows.

          Alexander Fischer added a comment - Hello bap, I have the problem with our productive environment: Jenkins 1.510 under CentOS5.x (64bit) with Java 1.6.0_25 (64bit). With a MS-Windows-testinstallation all seems to work with your old version, but the JUnit-tests have some problems... With my patched version the plugin is working again under the productive environment and the unit-tests are ok under MS-Windows.

          bap added a comment -

          Thanks Ramesh, Alex,

          Which JVM implementation are we talking about - Sun/ Open JDK / gcj ?

          bap added a comment - Thanks Ramesh, Alex, Which JVM implementation are we talking about - Sun/ Open JDK / gcj ?

          We use the Sun/Oracle-Implementation.

          Alexander Fischer added a comment - We use the Sun/Oracle-Implementation.

          Ramakrishna Bejawar added a comment - - edited

          Hi Alexander/bap, Thanks for the Fix.

          Ramakrishna Bejawar added a comment - - edited Hi Alexander/bap, Thanks for the Fix.

          Dennis Ditte added a comment - - edited

          When this Fix will be available as an official update?
          CentOS 6.3, Jenkins 1.517

          Dennis Ditte added a comment - - edited When this Fix will be available as an official update? CentOS 6.3, Jenkins 1.517

          Code changed in jenkins
          User: Alexander Fischer
          Path:
          pom.xml
          http://jenkins-ci.org/commit/publish-over-plugin/2e849359da4a1b9baf159ab7c888c564758a456d
          Log:
          fix for jenkins-bug #JENKINS-17165

          exchange the version of JUnit to 4.9 (the same like in the other
          modules)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexander Fischer Path: pom.xml http://jenkins-ci.org/commit/publish-over-plugin/2e849359da4a1b9baf159ab7c888c564758a456d Log: fix for jenkins-bug # JENKINS-17165 exchange the version of JUnit to 4.9 (the same like in the other modules)

          Code changed in jenkins
          User: Alexander Fischer
          Path:
          src/main/java/jenkins/plugins/publish_over_ftp/BapFtpHostConfiguration.java
          src/main/java/jenkins/plugins/publish_over_ftp/BapFtpPublisherPlugin.java
          src/test/java/hudson/util/SecretHelper.java
          http://jenkins-ci.org/commit/publish-over-ftp-plugin/aa3399f7c266a9d105d63e98dda654a34d110bc7
          Log:
          fix for jenkins-bug #JENKINS-17165

          overriding method readResolve() from base-class BPHostConfiguration for
          resolving Reflection-problems with XStream

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexander Fischer Path: src/main/java/jenkins/plugins/publish_over_ftp/BapFtpHostConfiguration.java src/main/java/jenkins/plugins/publish_over_ftp/BapFtpPublisherPlugin.java src/test/java/hudson/util/SecretHelper.java http://jenkins-ci.org/commit/publish-over-ftp-plugin/aa3399f7c266a9d105d63e98dda654a34d110bc7 Log: fix for jenkins-bug # JENKINS-17165 overriding method readResolve() from base-class BPHostConfiguration for resolving Reflection-problems with XStream

          Code changed in jenkins
          User: Alexander Fischer
          Path:
          pom.xml
          http://jenkins-ci.org/commit/publish-over-ftp-plugin/33356f24624c5911f439afc6b0a411a9c2b6d21e
          Log:
          fix for jenkins-bug #JENKINS-17165

          updated pom - integrate plugin-API for Jenkins1.510 and adapt for
          Eclipse m2e

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexander Fischer Path: pom.xml http://jenkins-ci.org/commit/publish-over-ftp-plugin/33356f24624c5911f439afc6b0a411a9c2b6d21e Log: fix for jenkins-bug # JENKINS-17165 updated pom - integrate plugin-API for Jenkins1.510 and adapt for Eclipse m2e

          Code changed in jenkins
          User: Alexander Fischer
          Path:
          src/test/java/jenkins/plugins/publish_over_ftp/BapHostConfigurationTest.java
          src/test/java/jenkins/plugins/publish_over_ftp/MySecretHelper.java
          http://jenkins-ci.org/commit/publish-over-ftp-plugin/304aaaba58e3d130f3ec1e77e94ad2301452331f
          Log:
          fix for jenkins-bug #JENKINS-17165

          overriding method readResolve() from base-class BPHostConfiguration for
          resoving Reflection-problems with XStream;
          removing own SecretHelper (replacement/hiding of the API-class) and
          creating new class MySecretHelper;
          resolves some problems with unit-tests under MS-Windows

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexander Fischer Path: src/test/java/jenkins/plugins/publish_over_ftp/BapHostConfigurationTest.java src/test/java/jenkins/plugins/publish_over_ftp/MySecretHelper.java http://jenkins-ci.org/commit/publish-over-ftp-plugin/304aaaba58e3d130f3ec1e77e94ad2301452331f Log: fix for jenkins-bug # JENKINS-17165 overriding method readResolve() from base-class BPHostConfiguration for resoving Reflection-problems with XStream; removing own SecretHelper (replacement/hiding of the API-class) and creating new class MySecretHelper; resolves some problems with unit-tests under MS-Windows

          Alex Earl added a comment -

          Looks like this was already resolved.

          Alex Earl added a comment - Looks like this was already resolved.

          For your information, all publish-over-ftp component type JENKINS issues related to the Publish Over FTP plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ftp-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ftp-plugin/issues/45
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ftp-plugin/issues?q=%22JENKINS-17165%22

          (Note: this is an automated bulk comment)

          Gavin McDonald added a comment - For your information, all publish-over-ftp component type JENKINS issues related to the Publish Over FTP plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ftp-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ftp-plugin/issues/45 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ftp-plugin/issues?q=%22JENKINS-17165%22 (Note: this is an automated bulk comment)

          This Resolved Issue has now been Closed. If you wish to follow up please see the Corresponding Github Issue

          Gavin McDonald added a comment - This Resolved Issue has now been Closed. If you wish to follow up please see the Corresponding Github Issue

            bap bap
            rkbejawar Ramakrishna Bejawar
            Votes:
            3 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: