Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26313

Ctrl-V paste circumvents safeguards and allows pasting non-text into text field causing error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.0 (Release)
    • None
    • mx: TextInput
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Create an MXFTETextInput (which uses RichEditableText)
      2. Copy a file to the system clipboard
      3. Ctrl-V paste the file in a text field

      Actual Results:
      In Linux, it pastes the file path
      In Windows,

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at spark.components::RichEditableText/handlePasteOperation()
      at spark.components::RichEditableText/textContainerManager_flowOperationEndHandler()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flashx.textLayout.container::TextContainerManager/dispatchEvent()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flashx.textLayout.elements::TextFlow/dispatchEvent()
      at flashx.textLayout.edit::EditManager/doInternal()
      at flashx.textLayout.edit::EditManager/doOperation()
      at flashx.textLayout.edit::EditManager/pasteTextScrap()
      at flashx.textLayout.edit::EditManager/editHandler()
      at flashx.textLayout.container::ContainerController/editHandler()
      at flashx.textLayout.container::TextContainerManager/editHandler()

      Expected Results:
      Paste file path or nothing

      Workaround (if any):

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: