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

Active Choice Reactive Reference parameter value rendered as File Selector not cascaded

      When an Active Choice reactive reference is rendered as a Jenkins File Chooser, the name of the selected file is not cascaded to other active choices that reference it.

          [JENKINS-38893] Active Choice Reactive Reference parameter value rendered as File Selector not cascaded

          Ioannis Moutsatsos created issue -
          Bruno P. Kinoshita made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          After investigating a bit more, the issue is as follows:

          When the AC-RefParam is rendered as:

          <input name="file" type="file" jsonaware="true">
          
          • we render a file button that we can use to choose a file.
          • the name of the file is NOT cascaded
          • the file is uploaded.

          When the AC-RefParam is rendered as:

          <input name="value" type="file" jsonaware="true">
          
          • we render a file button that we can use to choose a file
          • the name of the file is cascaded
          • the file however, is NOT uploaded

          This is expected as we need to render a parameter with name="value". It's just not useful for us to propagate the name of the selected file.

          Ioannis Moutsatsos added a comment - After investigating a bit more, the issue is as follows: When the AC-RefParam is rendered as: <input name= "file" type= "file" jsonaware= " true " > we render a file button that we can use to choose a file. the name of the file is NOT cascaded the file is uploaded. When the AC-RefParam is rendered as: <input name= "value" type= "file" jsonaware= " true " > we render a file button that we can use to choose a file the name of the file is cascaded the file however, is NOT uploaded This is expected as we need to render a parameter with name="value". It's just not useful for us to propagate the name of the selected file.
          Ioannis Moutsatsos made changes -
          Attachment New: config[1].xml [ 38753 ]
          Bruno P. Kinoshita made changes -
          Attachment New: Screenshot_2017-07-06_22-42-10.png [ 38766 ]
          Attachment New: Screenshot_2017-07-06_22-42-25.png [ 38767 ]
          Attachment New: Screenshot_2017-07-06_22-42-47.png [ 38768 ]

          Hi Ioannis,

          Thanks for attaching the config.xml file. That is extremely helpful.

          Here are some screen shots.

           

          I am not sure if I can reproduce it or not... I suspect it is working in my environment? Could be because I am running within Eclipse, locally, with no security policies, HTTP server, etc.

           

          But at least when I choose a file from my desktop, the input fields are updated, and the values are both submitted to Jenkins.

          Bruno P. Kinoshita added a comment - Hi Ioannis, Thanks for attaching the config.xml file. That is extremely helpful. Here are some screen shots.   I am not sure if I can reproduce it or not... I suspect it is working in my environment? Could be because I am running within Eclipse, locally, with no security policies, HTTP server, etc.   But at least when I choose a file from my desktop, the input fields are updated, and the values are both submitted to Jenkins.

          Maybe the example is confusing. But you have actually reproduced the issue as described in my comment.
          Your screenshot shows that the Krita.desktop file, attached using the AC_RENDERED file button was NOT uploaded. And this is exactly my issue.
          I want an Active Choice rendered 'Choose File' button that both cascades its value AND uploads the file

          Ioannis Moutsatsos added a comment - Maybe the example is confusing. But you have actually reproduced the issue as described in my comment. Your screenshot shows that the Krita.desktop file, attached using the AC_RENDERED file button was NOT uploaded. And this is exactly my issue. I want an Active Choice rendered 'Choose File' button that both cascades its value AND uploads the file
          Ioannis Moutsatsos made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

          Changed the severity, as this is directly affecting the expected behavior of the AC control

          Ioannis Moutsatsos added a comment - Changed the severity, as this is directly affecting the expected behavior of the AC control
          Bruno P. Kinoshita made changes -
          Attachment New: screenshot-1.png [ 46970 ]

            kinow Bruno P. Kinoshita
            ioannis Ioannis Moutsatsos
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: