Bug 33004 - Traceback when opening the policies tab of a container
Traceback when opening the policies tab of a container
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Domain management (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-0-errata
Assigned To: Dirk Wiesenthal
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-29 15:18 CET by Alexander Kläser
Modified: 2014-01-29 11:19 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Policy 2 only sets two of the four policies (22.45 KB, image/png)
2014-01-06 14:12 CET, Dirk Wiesenthal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2013-10-29 15:18:03 CET
JavaScript error:

> TypeError {} "TypeError: Cannot read property '$linkWidget$' of null

In line 973 in DetailPage:

> var container = iwidget._rowContainers[j];
> if (!container.$linkWidget$) {
> ...

For UCR policy values, references are added to their corresponding policies. There seems to be a ready() call missing as the MultiInput does not seem to be finished:

> iwidget._rowContainers
> [Object, null, null]

This error leads to incorrectly displayed policy references for UCR policy values. Not sure whether this problem could have other side effects.
Comment 1 Alexander Kläser univentionstaff 2013-10-29 17:13:40 CET
This should be a side effect of Bug 26214.
Comment 2 Alexander Kläser univentionstaff 2013-11-01 10:15:34 CET
Maybe a duplicate of Bug 32902?
Comment 3 Alexander Kläser univentionstaff 2013-11-01 10:19:37 CET
(In reply to Alexander Kläser from comment #2)
> Maybe a duplicate of Bug 32902?

Not duplicate, but related to Bug 32902?
Comment 4 Dirk Wiesenthal univentionstaff 2013-12-13 17:32:00 CET
(In reply to Alexander Kläser from comment #0)
> There seems to be a ready() call missing

Yes, fixed that in
  univention-management-console-module-udm 4.0.97-12.428.201312131728

(In reply to Alexander Kläser from comment #3)
> Not duplicate, but related to Bug 32902?

Yes, changed behaviour of MultiInput in Bug#32902 and did not adjust UDM module accordingly.

YAML created
Comment 5 Dirk Wiesenthal univentionstaff 2014-01-06 14:10:55 CET
There was another issue in the part of the code which I fixed (bug description in YAML fitted):

UCR policies may sum up, i.e. computers-container-UCR-policy and actual-computer-UCR-policy are both active at the same time.

The UMC widget for this case is a multi input with one link per "UCR line" which can be used to edit the policy directly.

When having multiple policies active at the same time this goes wrong: There is a JS error and there are not enough links and some may be wrong.

Fixed in
  univention-management-console-module-udm 4.0.97-13.429.201401061404
Comment 6 Dirk Wiesenthal univentionstaff 2014-01-06 14:12:27 CET
Created attachment 5713 [details]
Policy 2 only sets two of the four policies

Screenshot shows the bug described above: The links get messed up when multiple UCR policies are used here.
Comment 7 Florian Best univentionstaff 2014-01-13 14:36:02 CET
OK no exception raised
OK policy values are correctly linking to the referenced policy

YAML: OK
Comment 8 Moritz Muehlenhoff univentionstaff 2014-01-29 11:19:39 CET
http://errata.univention.de/ucs/3.2/38.html