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

UnsupportedOperationException with empty choice

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using File Choice Parameter with active Empty Choice setting the parameter list cannot be generated because of
      java.lang.UnsupportedOperationException
      at java.util.AbstractList.add(AbstractList.java:148)
      at jp.ikedam.jenkins.plugins.extensible_choice_parameter.FilenameChoiceListProvider.getFileList(FilenameChoiceListProvider.java:333)

      No values can be added to a list returned by Arrays.asList.

        Attachments

          Activity

          Show
          wolterhis Lars added a comment - https://github.com/jenkinsci/extensible-choice-parameter-plugin/pull/16 should fix it
          Hide
          ikedam ikedam added a comment -

          Unit tests missed this issue as it doesn't happen with "File and Directory".

          Show
          ikedam ikedam added a comment - Unit tests missed this issue as it doesn't happen with "File and Directory".
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/jp/ikedam/jenkins/plugins/extensible_choice_parameter/FilenameChoiceListProviderSimpleTest.java
          http://jenkins-ci.org/commit/extensible-choice-parameter-plugin/c798ede3186b2a1bd02a1e0d1e37f4b8e810c90a
          Log:
          JENKINS-29934 Added tests to reproduce JENKINS-29934.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/jp/ikedam/jenkins/plugins/extensible_choice_parameter/FilenameChoiceListProviderSimpleTest.java http://jenkins-ci.org/commit/extensible-choice-parameter-plugin/c798ede3186b2a1bd02a1e0d1e37f4b8e810c90a Log: JENKINS-29934 Added tests to reproduce JENKINS-29934 .
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/jp/ikedam/jenkins/plugins/extensible_choice_parameter/FilenameChoiceListProvider.java
          http://jenkins-ci.org/commit/extensible-choice-parameter-plugin/667c2076c6e96a44d6d5613b625062bb21f20adf
          Log:
          [FIXED JENKINS-29934] Prevent UnsupportedOperationException with empty choice

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/jp/ikedam/jenkins/plugins/extensible_choice_parameter/FilenameChoiceListProvider.java http://jenkins-ci.org/commit/extensible-choice-parameter-plugin/667c2076c6e96a44d6d5613b625062bb21f20adf Log: [FIXED JENKINS-29934] Prevent UnsupportedOperationException with empty choice
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/jp/ikedam/jenkins/plugins/extensible_choice_parameter/FilenameChoiceListProvider.java
          src/test/java/jp/ikedam/jenkins/plugins/extensible_choice_parameter/FilenameChoiceListProviderSimpleTest.java
          http://jenkins-ci.org/commit/extensible-choice-parameter-plugin/df170dabfb31e083d2e86630fa5b540d73012aaa
          Log:
          Merge pull request #17 from ikedam/feature/JENKINS-29934_UnsupportedOperationException

          JENKINS-29934 Fix UnsupportedOperationException with adding empty choice to file lists.

          Compare: https://github.com/jenkinsci/extensible-choice-parameter-plugin/compare/9a38eadea2c7...df170dabfb31

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/jp/ikedam/jenkins/plugins/extensible_choice_parameter/FilenameChoiceListProvider.java src/test/java/jp/ikedam/jenkins/plugins/extensible_choice_parameter/FilenameChoiceListProviderSimpleTest.java http://jenkins-ci.org/commit/extensible-choice-parameter-plugin/df170dabfb31e083d2e86630fa5b540d73012aaa Log: Merge pull request #17 from ikedam/feature/ JENKINS-29934 _UnsupportedOperationException JENKINS-29934 Fix UnsupportedOperationException with adding empty choice to file lists. Compare: https://github.com/jenkinsci/extensible-choice-parameter-plugin/compare/9a38eadea2c7...df170dabfb31
          Hide
          ikedam ikedam added a comment -

          Fixed in 1.3.2.
          It will be available in the update center in a day.

          Show
          ikedam ikedam added a comment - Fixed in 1.3.2. It will be available in the update center in a day.

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              wolterhis Lars
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: