Move User from Client 0 throws error when no other clients present
search cancel

Move User from Client 0 throws error when no other clients present

book

Article ID: 407042

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation Automic SaaS

Issue/Introduction

Attempting to move a user when no non-client 0 is available throws a generic popup error with no further explanation

1) Create a new system that has no clients except client 0
2) Create a new user from the Administration perspective
3) Click the "Move" button either from the Users view in Administration or from within the user object-exports
4) Click "Move" in the popup (no client chosen)

Expected behavior:
A message comes up that says there is no client to move the user to

Actual behavior:
A popup window comes up that says:
Header: Move User to Client

Error
An unexpected error occurred. Further details are available in the logfiles.


Clicking the popup provides a stack trace:

An unexpected error occurred. Further details are available in the logfiles.
(Stacktrace)

java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
    at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
    at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
    at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
    at java.base/java.util.Objects.checkIndex(Objects.java:361)
    at java.base/java.util.ArrayList.get(ArrayList.java:427)
    at com.automic.ecc.plugins.usermanagement.moveuser.MoveUserDialog.createLayout(MoveUserDialog.java:69)
    ...
    Suppressed: com.uc4.ecc.framework.entrypoint.ui.MainUIErrorHandlerStack
        at com.uc4.ecc.framework.entrypoint.ui.MainUIErrorHandler.handleError(MainUIErrorHandler.java:71)
        at com.uc4.ecc.components.v14.layouts.impl.V14ErrorPanelWrapper.lambda$new$0(V14ErrorPanelWrapper.java:42)
        at com.uc4.ecc.dom.event.listener.v14.impl.V14ElementListenerWrapper.handleEvent(V14ElementListenerWrapper.java:244)
        at com.uc4.ecc.dom.event.listener.v14.impl.V14ElementListenerWrapper.lambda$listen$7b3f62d6$1(V14ElementListenerWrapper.java:222)
        at com.vaadin.flow.internal.nodefeature.ElementListenerMap.lambda$fireEvent$2(ElementListenerMap.java:475)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        ...
        ... 1 more
    Suppressed: com.uc4.ecc.framework.commons.controls.messageprovider.MessageProvider$MessageProviderStack
        ...
        ... 7 more

Environment

AWI and Automation Engine: 24.4.1 HF2 or lower

Resolution

This will be fixed in 24.4.2 and higher in such a way that the "Move" button will not be available if there is no other client than 0.