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

Re-built plugin does not work: webhook - No valid crumb

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: ghprb-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.8, ghprb 1.32.4, JDK 1.8
    • Similar Issues:

      Description

      To be able to do some research on ghprb, I've cloned https://github.com/jenkinsci/ghprb-plugin.git, checked out ghprb-1.32.4, and built it with mvn clean package. Tests go through w/o any problem (Tests run: 53, Failures: 0, Errors: 0, Skipped: 0).

      Now the odd thing: With the original version installed via jenkins update center (which is 1.32.4 as well), webhook delivery via GitHub work. But as soon as I "scp ${BUILD_DIR}/target/ghprb.jar ${JENKINS_HOST}:${JENKINS_HOME}/plugins/ghprb/WEB-INF/lib/ghprb.jar" and restart jenkins on this host, webhook delivery fails with

      Jun 13, 2016 8:10:55 AM hudson.security.csrf.CrumbFilter doFilter
      WARNING: No valid crumb was included in request for /ghprbhook/. Returning 403.

      As soon as I copy back the original jar file and restart jenkins, webhook delivery works again (veryfied by clicking the Redliver button on GitHub).

      So I wonder, what's going wrong here.

        Attachments

          Activity

          Hide
          jelmd Jens Elkner added a comment -

          Hmmm, switching from JDK 1.8.0_77-b03 to 1.8.0_92-b14 seems to solve the problem - really strange.

          Show
          jelmd Jens Elkner added a comment - Hmmm, switching from JDK 1.8.0_77-b03 to 1.8.0_92-b14 seems to solve the problem - really strange.
          Hide
          jelmd Jens Elkner added a comment -

          JDK related

          Show
          jelmd Jens Elkner added a comment - JDK related

            People

            • Assignee:
              janinko Honza Brázdil
              Reporter:
              jelmd Jens Elkner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: