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

FolderTest#copyJob is failing for 2.32 and 2.46

    Details

    • Similar Issues:

      Description

      FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.

      copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
      

      It seems like a timing/focus issue, but I have tested different approaches (putting focus into the input field, clicking on it, adding a generous wait time) and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth (see attached screenshot).

      PS: I am using this profile to execute the test:

      <profile>
          <id>jenkins-2.32</id>
          <properties>
              <jenkins.version>2.32.3</jenkins.version>
              <hpi-plugin.version>1.120</hpi-plugin.version>
              <stapler-plugin.version>1.17</stapler-plugin.version>
              <java.level>7</java.level>
          </properties>
      </profile>
      

        Attachments

          Issue Links

            Activity

            egutierrez Evaristo Gutierrez created issue -
            egutierrez Evaristo Gutierrez made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            egutierrez Evaristo Gutierrez made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            egutierrez Evaristo Gutierrez made changes -
            Remote Link This issue links to "cloudbees-folder plugin PR #84 (Web Link)" [ 15311 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Evaristo Gutiérrez
            Path:
            pom.xml
            src/main/java/com/cloudbees/hudson/plugins/folder/properties/FolderCredentialsProvider.java
            src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/c50a97de75b658f0b6199af16ccb8f3d7bdb4e6f
            Log:
            JENKINS-41370 Fix test which was failing for 2.32.1 version. Bump parent POM and jenkins test harness versions.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Evaristo Gutiérrez Path: pom.xml src/main/java/com/cloudbees/hudson/plugins/folder/properties/FolderCredentialsProvider.java src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/c50a97de75b658f0b6199af16ccb8f3d7bdb4e6f Log: JENKINS-41370 Fix test which was failing for 2.32.1 version. Bump parent POM and jenkins test harness versions.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/main/java/com/cloudbees/hudson/plugins/folder/properties/FolderCredentialsProvider.java
            src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/304c051e6da33715d029f13a6570b439a2045082
            Log:
            Merge pull request #84 from varyvol/JENKINS-41370

            JENKINS-41370 Fix PCT for 2.32.1

            Compare: https://github.com/jenkinsci/cloudbees-folder-plugin/compare/4e64cfcf7541...304c051e6da3

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/main/java/com/cloudbees/hudson/plugins/folder/properties/FolderCredentialsProvider.java src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/304c051e6da33715d029f13a6570b439a2045082 Log: Merge pull request #84 from varyvol/ JENKINS-41370 JENKINS-41370 Fix PCT for 2.32.1 Compare: https://github.com/jenkinsci/cloudbees-folder-plugin/compare/4e64cfcf7541...304c051e6da3
            egutierrez Evaristo Gutierrez made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            rarabaolaza Raul Arabaolaza added a comment -

            Reopening as this is still failling with 2.46.1 with the same error

            Show
            rarabaolaza Raul Arabaolaza added a comment - Reopening as this is still failling with 2.46.1 with the same error
            rarabaolaza Raul Arabaolaza made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            Assignee Evaristo Gutierrez [ egutierrez ] Raul Arabaolaza [ rarabaolaza ]
            egutierrez Evaristo Gutierrez made changes -
            Summary Fix PCT for 2.32.1 FolderTest#copyJob is failing for 2.32 and 2.46
            egutierrez Evaristo Gutierrez made changes -
            Description FolderTest#copyJob is failing with a NullPointerException when jenkins.version=2.32.1


            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR!
            java.lang.NullPointerException
            at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.
            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            It seems like a timing/focus issue, but I have tested different approaches and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth.

             
            egutierrez Evaristo Gutierrez made changes -
            egutierrez Evaristo Gutierrez made changes -
            Description FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.
            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            It seems like a timing/focus issue, but I have tested different approaches and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth.

             
            FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.
            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            It seems like a timing/focus issue, but I have tested different approaches and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth (see attached screenshot).

             

             
            egutierrez Evaristo Gutierrez made changes -
            Description FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.
            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            It seems like a timing/focus issue, but I have tested different approaches and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth (see attached screenshot).

             

             
            FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.
            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            It seems like a timing/focus issue, but I have tested different approaches (putting focus into the input field, clicking on it, adding a generous wait time) and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth (see attached screenshot).

             

             
            Hide
            egutierrez Evaristo Gutierrez added a comment -

            Stephen Connolly Jesse Glick Oleg Nenashev maybe you could have a look at this? Specially to discard this is not an issue in the plugin or Jenkins core.

            Show
            egutierrez Evaristo Gutierrez added a comment - Stephen Connolly Jesse Glick Oleg Nenashev maybe you could have a look at this? Specially to discard this is not an issue in the plugin or Jenkins core.
            egutierrez Evaristo Gutierrez made changes -
            Description FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.
            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            It seems like a timing/focus issue, but I have tested different approaches (putting focus into the input field, clicking on it, adding a generous wait time) and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth (see attached screenshot).

             

             
            FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.
            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            It seems like a timing/focus issue, but I have tested different approaches (putting focus into the input field, clicking on it, adding a generous wait time) and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth (see attached screenshot).

            PS: I am using this profile to execute the test:
            {code:java}
            <profile>
                <id>jenkins-2.32</id>
                <properties>
                    <jenkins.version>2.32.3</jenkins.version>
                    <hpi-plugin.version>1.120</hpi-plugin.version>
                    <stapler-plugin.version>1.17</stapler-plugin.version>
                    <java.level>7</java.level>
                </properties>
            </profile>
            {code}
             

             
            egutierrez Evaristo Gutierrez made changes -
            Description FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.
            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            It seems like a timing/focus issue, but I have tested different approaches (putting focus into the input field, clicking on it, adding a generous wait time) and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth (see attached screenshot).

            PS: I am using this profile to execute the test:
            {code:java}
            <profile>
                <id>jenkins-2.32</id>
                <properties>
                    <jenkins.version>2.32.3</jenkins.version>
                    <hpi-plugin.version>1.120</hpi-plugin.version>
                    <stapler-plugin.version>1.17</stapler-plugin.version>
                    <java.level>7</java.level>
                </properties>
            </profile>
            {code}
             

             
            FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.
            {code:java}
            copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
            {code}
            It seems like a timing/focus issue, but I have tested different approaches (putting focus into the input field, clicking on it, adding a generous wait time) and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth (see attached screenshot).

            PS: I am using this profile to execute the test:
            {code:java}
            <profile>
                <id>jenkins-2.32</id>
                <properties>
                    <jenkins.version>2.32.3</jenkins.version>
                    <hpi-plugin.version>1.120</hpi-plugin.version>
                    <stapler-plugin.version>1.17</stapler-plugin.version>
                    <java.level>7</java.level>
                </properties>
            </profile>
            {code}
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            I have no capacity to work on it in short-term. Jesse Glick could be the best starting point since he is a plgin maintainer

            Show
            oleg_nenashev Oleg Nenashev added a comment - I have no capacity to work on it in short-term. Jesse Glick could be the best starting point since he is a plgin maintainer
            rarabaolaza Raul Arabaolaza made changes -
            Assignee Raul Arabaolaza [ rarabaolaza ]
            rarabaolaza Raul Arabaolaza made changes -
            Link This issue is related to JENKINS-45501 [ JENKINS-45501 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Raul Arabaolaza
            Path:
            src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/c17a394bf4afeea0bf05bc033c305d93db6c5ead
            Log:
            JENKINS-45501 Fixes for JENKINS-9774 and JENKINS-41370

            • Now `hudson.security.ProjectMatrixAuthorizationStrategy` can be deserialized
            • Bypassing the GUI on `copyJob` and issuing the proper Http request directly
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Raul Arabaolaza Path: src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/c17a394bf4afeea0bf05bc033c305d93db6c5ead Log: JENKINS-45501 Fixes for JENKINS-9774 and JENKINS-41370 Now `hudson.security.ProjectMatrixAuthorizationStrategy` can be deserialized Bypassing the GUI on `copyJob` and issuing the proper Http request directly
            Hide
            rarabaolaza Raul Arabaolaza added a comment -

            This is solved in JENKINS-45501

            Show
            rarabaolaza Raul Arabaolaza added a comment - This is solved in JENKINS-45501
            rarabaolaza Raul Arabaolaza made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Assignee Raul Arabaolaza [ rarabaolaza ]
            Resolution Done [ 10000 ]

              People

              • Assignee:
                rarabaolaza Raul Arabaolaza
                Reporter:
                egutierrez Evaristo Gutierrez
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: