Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-639

Exception when navigation history contains bookmarks of an deleted connection

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.5.3
    • Component/s: studio-ldapbrowser
    • Labels:
      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)

        Activity

        Stefan Seelmann created issue -
        Hide
        Stefan Seelmann added a comment -

        Fixed in trunk: http://svn.apache.org/viewvc?rev=926136&view=rev

        Unfortunately it's not possible to remove items from the navigation history.

        Show
        Stefan Seelmann added a comment - Fixed in trunk: http://svn.apache.org/viewvc?rev=926136&view=rev Unfortunately it's not possible to remove items from the navigation history.
        Stefan Seelmann made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Version 1.5.3 has been release.
        Let's close this issue.

        Show
        Pierre-Arnaud Marcelot added a comment - Version 1.5.3 has been release. Let's close this issue.
        Pierre-Arnaud Marcelot made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Stefan Seelmann
            Reporter:
            Stefan Seelmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development