Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-44014

Cancelling the file browser dialog after initial file was previously uploaded causes TypeError crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.18
    • Management Console
    • None
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          Cancelling the file browser dialog after initial file was previously uploaded causes TypeError crash

      Version-Release number of selected component (if applicable):

      4.18.0-0.ci-2024-10-30-043000
          

      How reproducible:

          always

      Steps to Reproduce:

      1. user logins to console 
      2. goes to Secrets -> Create Image pull secret, on the page - Secret name: test-secret - Authentication type: Upload configuration file, here we click on browse and upload some file.
      3. then when we try to browse for other file, but instead of uploading another file we cancel the file chooser dialog, the console crash with 'Cannot read properties of undefined (reading 'size')' error.     

      Actual results:

      Console crashes with 'Cannot read properties of undefined (reading 'size')' error

      Expected results:

      Console should not crash.

      Additional info:

          

              rh-ee-mziska Marek Ziska
              rh-ee-mziska Marek Ziska
              Yanping Zhang Yanping Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: