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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          ioannis 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.

          Show
          ioannis 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.
          Hide
          kinow 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.

          Show
          kinow 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.
          Hide
          ioannis 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

          Show
          ioannis 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

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              ioannis Ioannis Moutsatsos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: