Project

General

Profile

Actions

Defect #2496

closed

Importing the role with changed code fails

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


Description

Version 10.4.4

  • The roles in the IdM and in the export have same UUID
  • The role code in the test IdM changed (lower to upper case)
  • When trying to import the role to the production IdM, the import fails:
    2020-09-20 16:21:19.733 ERROR 7198318 --- [base-task-executor-6] e.b.i.c.s.a.s.AbstractLongRunningTaskExecutor.end : [core:ROLE_CODE_ENVIRONMENT_CONFLICT:acf23dc8-18dd-42aa-bfb4-9a3859e9372f] Role code [IT - Správce uživatelů] cannot be combined with environment [IT - Správce uživatelů]. Use base code with environment instead. ({code=IT - Správce uživatelů, baseCode=IT - Správce uživatelů, environment=null})
    eu.bcvsolutions.idm.core.api.exception.ResultCodeException: Role code [IT - Správce uživatelů] cannot be combined with environment [IT - Správce uživatelů]. Use base code with environment instead.
            at eu.bcvsolutions.idm.core.model.event.processor.role.RoleCodeEnvironmentProcessor.process(RoleCodeEnvironmentProcessor.java:87)
    

The environment of the role is null in both IdMs

Actions #1

Updated by Radek Tomiška over 3 years ago

  • Tracker changed from Task to Defect
  • Status changed from New to In Progress
  • Assignee changed from Vít Švanda to Radek Tomiška
  • Target version set to 10.6.0
  • Affected versions Onyx (9.3.0), Onyx (9.3.1), Opal (9.4.0-rc.1), Onyx (9.3.2), Onyx (9.3.3), Opal (9.4.0-rc.2), Onyx (9.3.4), Opal (9.4.0), Pyrite (9.5.0), Pyrite (9.5.1), Pyrite (9.5.2), Pyrite (9.5.3), Pyrite (9.5.4), Quartz (9.6.0), Quartz (9.6.1), Quartz (9.6.2), Quartz (9.6.3), Quartz (9.6.4), Quartz (9.6.5), Pyrite (9.5.1.2), Quartz (9.6.6), Rhyolite (9.7.0), Rhyolite (9.7.2), Rhyolite (9.7.3), Rhyolite (9.7.4), Rhyolite (9.7.5), Rhyolite (9.7.6), Rhyolite (9.7.7), Rhyolite (9.7.8), Rhyolite (9.7.9), Rhyolite (9.7.10), Rhyolite (9.7.11), Rhyolite (9.7.12), Rhyolite (9.7.13), 10.0.0, Rhyolite (9.7.14), 10.0.1, 10.1.0, Rhyolite (9.7.15), Rhyolite (9.7.16), 10.2.0, 10.0.2, 10.3.0, 10.3.1, 10.3.2, Rhyolite (9.7.17), 10.3.3, 10.4.0, 10.4.1, 10.4.2, 10.4.3, 10.4.4, 10.5.0, 10.5.1, 10.4.7 added

RoleCodeEnvironmentProcessor check changes in code <=> baseCode + environment. The one side can be changed only => I'll improve check, when both sides are changed, but the same way, then validation will pass.

Actions #2

Updated by Radek Tomiška over 3 years ago

  • Category changed from Export Import to Roles
  • Status changed from In Progress to Needs feedback
  • Assignee changed from Radek Tomiška to Vít Švanda
  • % Done changed from 0 to 90

Validation is improved, commit:
https://github.com/bcvsolutions/CzechIdMng/commit/9ee3491862d2b8f2b14c105b59a60dccad2b5319

Could you provide me a feedback, please?

Actions #3

Updated by Vít Švanda over 3 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Radek Tomiška
  • % Done changed from 90 to 100

I did reivew and tested it. Import a role with same UUID but changed name and code is possible now. Thanks for this fix.

Actions #4

Updated by Radek Tomiška over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF