Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-639

Exception when navigation history contains bookmarks of an deleted connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.2
    • 1.5.3
    • studio-ldapbrowser
    • None

    Description

      When deleting an connection the previously opened entries and bookmarks remain in the navigation history. When navigation back to an bookmark of an deleted connection an exception is throws.

      Steps to reprduce:

      • create and open a connection
      • create a bookmark, browse some entries and the bookmark
      • note that the navigation history contains the bookmark and entries
      • delete the connection
      • note that the navigation history still contains the bookmark and entries
      • when navigation back to the bookmark an Exception is thrown

      java.lang.IllegalStateException: Connection 252a7980-3d2a-44a2-b6f4-ec3496cd8708 does not exist.
      at org.apache.directory.studio.ldapbrowser.core.model.impl.DelegateEntry.getDelegate(DelegateEntry.java:101)
      at org.apache.directory.studio.ldapbrowser.core.model.impl.DelegateEntry.getBrowserConnection(DelegateEntry.java:134)
      at org.apache.directory.studio.entryeditors.EntryEditorInput.getResolvedEntry(EntryEditorInput.java:235)
      at org.apache.directory.studio.entryeditors.EntryEditorInput.getName(EntryEditorInput.java:135)
      at org.eclipse.ui.internal.EditorManager.findEditors(EditorManager.java:515)
      at org.eclipse.ui.internal.EditorManager.findEditors(EditorManager.java:434)
      at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:399)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2799)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)
      at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)
      at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2676)
      at org.eclipse.ui.internal.NavigationHistoryEntry.restoreLocation(NavigationHistoryEntry.java:66)
      at org.eclipse.ui.internal.NavigationHistory.gotoEntry(NavigationHistory.java:455)
      at org.eclipse.ui.internal.NavigationHistory.shiftEntry(NavigationHistory.java:520)
      at org.eclipse.ui.internal.NavigationHistory.backward(NavigationHistory.java:504)
      at org.eclipse.ui.internal.NavigationHistoryAction.run(NavigationHistoryAction.java:242)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

      Attachments

        Activity

          People

            seelmann Stefan Seelmann
            seelmann Stefan Seelmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: