Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-107371

Javascript error in item selector when selecting an invalid type of file

    Details

      Description

      Steps to reproduce:

      Steps to reproduce:

      1. Go to Web Content
      2. Add a new structure with an Image field
      3. Add a web content with this structure
      4. Select a file that is not an image from your hard drive

      Actual result: an error is thrown in the browsers console and the view is no longer responsive

       

       Uncaught TypeError: this.closeItemSelectorPreview is not a function
       at component._onItemUploadError (:8080/o/js/resolved-module/item-selector-taglib@4.0.4/repository_entry_browser/js/ItemSelectorRepositoryEntryBrowser.es.js?languageId=en_US:450)
       at Y.Subscriber._notify (event-custom-base.js:1306)
       at Y.Subscriber.notify (event-custom-base.js:1335)
       at Y.CustomEvent._notify (event-custom-base.js:998)
       at Y.CustomEvent._procSubs (event-custom-base.js:1124)
       at Y.CustomEvent.CEProto.fireComplex (event-custom-complex.js:273)
       at Y.CustomEvent._fire (event-custom-base.js:1071)
       at component.fire (event-custom-base.js:2204)
       at component._onUploadComplete (item_selector_uploader.js:68)
       at Y.Subscriber._notify (event-custom-base.js:1306)

       

      Expected result: no error is thrown

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  35 weeks, 6 days ago

                  Packages

                  Version Package
                  7.3.0 CE GA1
                  Master