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

"java.lang.IllegalArgumentException: User cannot be blank or null" when using auth token

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rundeck-plugin
    • None
    • Jenkins 2.375.1
      Rundeck Plugin 3.6.13

      Hello,

      We use Rundeck Plugin for a long time, everything was fine before 3.6.13.

      We have a token configured to access to Rundeck, no user / pwd. It worked very well with previous versions until 3.6.11 included, but when we upgrade to 3.6.13 :

      • the plugin configuration is deleted, we have to set it again in the manage/configure page.
      • when the plugin configuration is set back, we have this error when we use the plugin : "java.lang.IllegalArgumentException: User cannot be blank or null"

      So we had to downgrade back to 3.6.11.

      Thanks for your help

          [JENKINS-70276] "java.lang.IllegalArgumentException: User cannot be blank or null" when using auth token

          Janis Balodis added a comment -

          I had exactly the same scenario with the same core and plugin versions.

          Janis Balodis added a comment - I had exactly the same scenario with the same core and plugin versions.

          Tiffany added a comment -

          Hi,

          The same for me ! No problem with version 3.6.11 but when we upgrade to 3.6.13 we've got this error : 
          [Pipeline] echoError detected during config: User cannot be blank or null
          We use authent by token too, without user/password

          Thanks for your help

          Tiffany added a comment - Hi, The same for me ! No problem with version 3.6.11 but when we upgrade to 3.6.13 we've got this error :  [Pipeline] echoError detected during config: User cannot be blank or null We use authent by token too, without user/password Thanks for your help

          Rahul added a comment -

          Same here. Had to rollback plugin version 3.6.11.

          Rahul added a comment - Same here. Had to rollback plugin version 3.6.11.

          Tiffany added a comment -

          Hi, 

          Does anyone have any updates on the subject ? 

          Thanks

          Tiffany added a comment - Hi,  Does anyone have any updates on the subject ?  Thanks

          AB S added a comment -

          Sorry folks, I am assigning this issue to myself since its my change(3.6.13) that broke it and I am responsible(morally).
          Can someone confirm if during upgrade, all rundeck settings in jenkins configure vanished or not?

          AB S added a comment - Sorry folks, I am assigning this issue to myself since its my change(3.6.13) that broke it and I am responsible(morally). Can someone confirm if during upgrade, all rundeck settings in jenkins configure vanished or not?

          Fabian added a comment -

          Hi,

          Thnks for your feedback abmaster !

          I work in the same team that the submitter of this issue ( Hi Charlie !).
          So I can confirm that all the plugin settings vanished during the 3.6.11 to 3.6.13 update process.

          Best Regards,

          Fabian added a comment - Hi, Thnks for your feedback abmaster ! I work in the same team that the submitter of this issue ( Hi Charlie !). So I can confirm that all the plugin settings vanished during the 3.6.11 to 3.6.13 update process. Best Regards,

          AB S added a comment - - edited

          Sorry I have been quite busy lately. Guys could you give this a try?
          https://ci.jenkins.io/job/Plugins/job/rundeck-plugin/job/PR-55/1/artifact/org/jenkins-ci/plugins/rundeck/3.6.14-rc402.97ee067df727/rundeck-3.6.14-rc402.97ee067df727.hpi
          Meanwhile I am trying to get this corresponding PR merged.
          https://github.com/jenkinsci/rundeck-plugin/pull/55
          ltoledocould you merge this PR?

          AB S added a comment - - edited Sorry I have been quite busy lately. Guys could you give this a try? https://ci.jenkins.io/job/Plugins/job/rundeck-plugin/job/PR-55/1/artifact/org/jenkins-ci/plugins/rundeck/3.6.14-rc402.97ee067df727/rundeck-3.6.14-rc402.97ee067df727.hpi Meanwhile I am trying to get this corresponding PR merged. https://github.com/jenkinsci/rundeck-plugin/pull/55 ltoledo could you merge this PR?

          Tiffany added a comment -

          Thanks AB S for your answer, I'll try this  

          Tiffany added a comment - Thanks AB S for your answer, I'll try this  

          Fabian added a comment -

          Hello, 

          Thank you for this RC, it works like a charm !
          After the hpi installation, we had to wait the weekly restart.
          During the restart and the plugin update, the plugin configuration vanished as expected ( your [pull request|https://github.com/jenkinsci/rundeck-plugin/pull/55] doesn't seem to fix this problem, so no surprise on it ).
          We put the configuration back on the plugin, and it started to work as our previous version (3.6.11) used to.

          If the configuration vanishing could be fixed for later versions, it would be very helpfull for us.
          We'll wait the next(s) official release(s) using this given release candidate.

          Thanks ! 

          Fabian added a comment - Hello,  Thank you for this RC, it works like a charm ! After the hpi installation, we had to wait the weekly restart. During the restart and the plugin update, the plugin configuration vanished as expected ( your [pull request| https://github.com/jenkinsci/rundeck-plugin/pull/55 ] doesn't seem to fix this problem, so no surprise on it ). We put the configuration back on the plugin, and it started to work as our previous version (3.6.11) used to. If the configuration vanishing could be fixed for later versions, it would be very helpfull for us. We'll wait the next(s) official release(s) using this given release candidate. Thanks ! 

          AB S added a comment -

          Hey sihm_fabian, good to know it fixed the the main problem, as for fixing vanishing config is concerned I think this can not be fixed and the reason is, the xml that is generated to make it compatible with Casc is different what 3.6.11 and before produced, here you can see the difference https://github.com/jenkinsci/rundeck-plugin/pull/49/files#diff-5593c07f15665050dd19a28b209657a2442abd33452d37fb2f04992573682280L60-R80
          Earlier the element <rundeckInstances> had an attribute called class, and the child was <entry> under which element <org.jenkinsci.plugins.rundeck.RundeckInstance> was put, now 3.6.13 makes it <rundeckInstances> no attribute called class then child <org.jenkinsci.plugins.rundeck.RundeckInstance> with a new tag <name>, and these changes make old config incompatible with new one. I had tried to work it out then but could not find a way without completely re-writing the plugin and had to give up.

          I think it was another mistake to release this change as a minor version, when it should have been 4.x.x as its breaking previous config, not sure what I can do now.
          Let me know if you have any suggestions.

          AB S added a comment - Hey sihm_fabian , good to know it fixed the the main problem, as for fixing vanishing config is concerned I think this can not be fixed and the reason is, the xml that is generated to make it compatible with Casc is different what 3.6.11 and before produced, here you can see the difference https://github.com/jenkinsci/rundeck-plugin/pull/49/files#diff-5593c07f15665050dd19a28b209657a2442abd33452d37fb2f04992573682280L60-R80 Earlier the element <rundeckInstances> had an attribute called class, and the child was <entry> under which element <org.jenkinsci.plugins.rundeck.RundeckInstance> was put, now 3.6.13 makes it <rundeckInstances> no attribute called class then child <org.jenkinsci.plugins.rundeck.RundeckInstance> with a new tag <name>, and these changes make old config incompatible with new one. I had tried to work it out then but could not find a way without completely re-writing the plugin and had to give up. I think it was another mistake to release this change as a minor version, when it should have been 4.x.x as its breaking previous config, not sure what I can do now. Let me know if you have any suggestions.

            abmaster AB S
            martinet_c Charlie Martinet
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: