Bug #6161
closedRule details and Directive not accessible if technique version is missing
Description
I get errors (no page for Directive, and Server cannot be contacted at this time) When I tried to display a Directive tree where one Directive use a Technique in a missing version :(
The error in logs is:
java.util.NoSuchElementException: key not found: 7.0
I found that in 3.0, but it may be present in older versions
Updated by Vincent MEMBRÉ almost 10 years ago
I found the origin of the problem in DisplayDirectiveTree... we are getting directly on a Map, which can fail ...
We have several possibilities:- Display The directive in the tree, even if some information are missing
- Display an error in place of the directive
- Display the directive in Error (so it can be unselected)
- Display nothing in the tree, but have an error
What do you think Francois?
Updated by François ARMAND almost 10 years ago
The good solution is to have the directive in error, so that the user can either delete it or migrate toward a new version. The directive should be disabled, to.
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 3.0.0 to 2.10.9
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.10.9 to 2.11.6
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.11.6 to 3.0.0
Updated by Vincent MEMBRÉ almost 10 years ago
- Status changed from 8 to Pending technical review
- Pull Request set to https://github.com/Normation/rudder/pull/803
Updated by Vincent MEMBRÉ almost 10 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset 344a60653642957407ea1316fd0accea58d10e4b.
Updated by François ARMAND almost 10 years ago
Applied in changeset ee16f0dd0a816cd9c71f50f474fa012ea3ea192b.
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.0.0, which was released on 2015/02/16
- Announcement 3.0
- Changelog 3.0
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/