Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-191

paste a data validation causes an IllegalStateException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.1.0
    • 5.0.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. import Invoice-validation.xlsx
      2. copy C11, paste at C12

      Current Result

      Feb 18, 2020 3:30:17 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError
      SEVERE:
      java.lang.IllegalStateException: doesn't has ownership io.keikai.model.impl.DataValidationImpl@7b33ab77
      at io.keikai.model.impl.SheetImpl.checkOwnership(SheetImpl.java:168)
      at io.keikai.model.impl.SheetImpl.deleteDataValidation(SheetImpl.java:1873)
      at io.keikai.model.impl.SheetImpl.deleteDataValidationRegion(SheetImpl.java:1891)
      at io.keikai.model.impl.PasteCellHelper.pasteDataValidations(PasteCellHelper.java:384)
      at io.keikai.model.impl.PasteCellHelper.pasteCell(PasteCellHelper.java:299)
      at io.keikai.model.impl.SheetImpl.pasteCell(SheetImpl.java:2002)
      at io.keikai.range.impl.RangeImpl$13.doInvoke(RangeImpl.java:886)
      at io.keikai.range.impl.RangeImpl$ModelManipulationTask.invoke(RangeImpl.java:1763)
      at io.keikai.model.util.ReadWriteTask.doInWriteLock(ReadWriteTask.java:43)
      at io.keikai.range.impl.RangeImpl.pasteSpecial0(RangeImpl.java:936)
      at io.keikai.range.impl.RangeImpl.copy(RangeImpl.java:818)
      at io.keikai.range.impl.RangeImpl.copy(RangeImpl.java:823)
      at io.keikai.api.impl.RangeImpl.paste(RangeImpl.java:208)
      at io.keikai.api.CellOperationUtil.paste(CellOperationUtil.java:70)
      at io.keikai.ui.impl.undo.PasteCellAction.applyAction(PasteCellAction.java:123)
      at io.keikai.ui.impl.undo.AbstractCellDataStyleAction.doAction(AbstractCellDataStyleAction.java:96)
      at io.keikaiex.ui.impl.UndoableActionManagerImpl.doAction(UndoableActionManagerImpl.java:51)
      at io.keikai.ui.impl.ua.PasteHandler.processAction(PasteHandler.java:107)
      at io.keikai.ui.impl.ua.AbstractHandler.process(AbstractHandler.java:63)
      at io.keikai.ui.impl.DefaultUserActionManagerCtrl.dispatchKeyAction(DefaultUserActionManagerCtrl.java:411)
      at io.keikai.ui.impl.DefaultUserActionManagerCtrl.onEvent(DefaultUserActionManagerCtrl.java:521)
      at io.keikaiex.ui.impl.UserActionManagerCtrlImpl.onEvent(UserActionManagerCtrlImpl.java:324)
      at io.keikai.ui.Spreadsheet$4.onEvent(Spreadsheet.java:466)

      Expected Result

      the source data validation is pasted

      Debug Information

      • copy another data validation like F10 and paste to C12 also produces the error

            RaymondChao RaymondChao
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: