Project

General

Profile

Actions

Feature #2550

closed

Export+import of a virtual system - empty additional attributes in virtual requests, error when using the "rights" attribute

Added by Alena Peterová about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondrej Husník
Category:
Export Import
Target version:
Start date:
11/02/2020
Due date:
% Done:

100%

Estimated time:
24.00 h
Owner:

Description

Tested on the version 10.4.7

Export + import of a virtual system doesn't create the virtual system with the same attributes (in VsAccount form definition), which leads to some issues when using this imported system.

A) "rights" attribute causes errors when implementing the virtual requests
  • Create a virtual system
  • Export the system
  • Import the system
  • Create 2 roles which assign the system and set some value to the "rights" attribute
  • Assign the roles to a user
  • Mark the virtual request as implemented - not possible, red message "Some error occured on server" appears
    2020-11-02 19:01:58.887 ERROR 4184054 --- [http-nio-8080-exec-2] e.b.i.c.e.ExceptionControllerAdvice.handle : [65338c09-0303-4028-8124-0e5b7883a858] 
    java.lang.IllegalArgumentException: Form attribute [czechidm:virtual-system-basic:eu.bcvsolutions.idm.vs.connector.basic.BasicVirtualConnector:1.0.1:systemId=e88a55cf-f62d-4cb6-92e1-29e904873d19:rights] does not support multivalue, sent [2] values.
            at eu.bcvsolutions.idm.core.eav.service.impl.DefaultFormService.saveAttributeValues(DefaultFormService.java:592)
            at eu.bcvsolutions.idm.core.eav.service.impl.DefaultFormService.saveValues(DefaultFormService.java:543)
    

Note: Maybe connected to this #2398?

B) additional empty attributes in virtual requests

Workaround: Delete the additional attributes from the VsAccount form definition of the imported system

Attached is the exported ZIP file and the screenshots of the form definition "VsAccount" from both instances. We can see the additional attributes in the imported instance that shouldn't be there.

Note: If we add some new singlevalued attributes different from the default attributes, they are imported correctly


Files

update_vs_request.png (16.8 KB) update_vs_request.png Virtual request on the imported system Alena Peterová, 11/02/2020 05:46 PM
imported_system.png (50.8 KB) imported_system.png VsAccount form definition of the imported system Alena Peterová, 11/02/2020 05:47 PM
virtual_removed_exported.png (43.8 KB) virtual_removed_exported.png VsAccount form definition of the exported system Alena Peterová, 11/02/2020 05:47 PM
virtual-system-with-different.zip (31.7 KB) virtual-system-with-different.zip Alena Peterová, 11/02/2020 05:47 PM

Related issues

Related to IdStory Identity Manager - Feature #2398: When copying default virtual system, multivalued attribute 'rights' is not created as multivalued in its form definitionClosedOndrej Husník07/22/2020

Actions
Actions

Also available in: Atom PDF