[
https://issues.apache.org/jira/browse/DIRSTUDIO-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712551#action_12712551
]
Stefan Seelmann commented on DIRSTUDIO-481:
-------------------------------------------
Emmanuel told me on IRC, that he also runs into some issues with refreshing the
DIT.
So I checked the current behaviour: When browsing the DIT and expanding some
entries, all the fetched attributes and parent-child relationships are cached
in Studio. If the DIT gets updated somehow and one refreshes a particular entry
in the LDAP browser, the following happens:
- Only the selected entry's attributes are reloaded
--> Attributes of children are not touched, they remain in the cache and when
selecting such an entry after the refresh its old attributes are shown in the
entry editor
- Only the immediate child entries are reloaded
--> Grandchild entries are not touched, they remain in the cache and remain
visible in the LDAP browser tree
So I would suggest to purge all cached parent-child relationships and
attributes on refresh, beginning from the refreshed entry, recursively down the
whole tree
The open question is: Should all expanded branches below the refreshed entry
also be reloaded? This could cause many additional search requests. The
alternative (what I would prefer) is to collapse all branches below the
entrys's immediate children. So if you have the tree below and refresh node
'b1', then only then immediate childen of 'b1' are refreshed and the 'c' nodes
are collapsed
a1
|-b1
|-c1
|-d1
|-e1
|-c2
|-c3
|-d3
> refreshing of attributes and children
> -------------------------------------
>
> Key: DIRSTUDIO-481
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-481
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-ldapbrowser
> Affects Versions: 1.3.0
> Environment: connection to ldap , happend in eclipse or stand alone
> Reporter: Wise Wolfe
>
> When nodes attributes and childred are changed through another application
> the Refresh is very inconsistant.
> First there appears to be no way to refresh the whole tree.
> You have to select the node refresh. sometimes you have to hit F5, sometimes
> Right click action update attributes and children
> and sometime I have to use the tool bar refresh icon.
> I always have to click on each individual node and refresh each child entry.
> I have to cycle through the 3 options above because when a value is updated
> out side the studio. The 3 refresh options do not always work. One of them
> usually works. but which one is always a good question.
> When you refresh it should refresh the whole tree or aleast from the node and
> all children.
> Also refresh should have an option to not only refresh the children, but also
> their attributes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.